private static IEnumerable <Point> GetWalkableUnseenLocations(TerrainMap terrainMap, VisibilityMap visibilityMap, IMovementProfile movementProfile)
 {
     return(from location in visibilityMap.GetUnseenLocations()
            where movementProfile.TerrainIsTraversable(terrainMap[location])
            select location);
 }
Exemple #2
0
 /// <summary>
 /// Enumerates all the unseen locations within the dungeon and returns the location closest to the actor.
 /// </summary>
 /// <param name="actor">The actor to evaluate the locations against</param>
 /// <returns>Returns the closest unseen location within the map</returns>
 private IEnumerable <Point> GetWalkableUnseenLocations()
 {
     return(from location in VisibilityMap.GetUnseenLocations()
            where Race.MovementProfile.TerrainIsTraversable(GameInstance.Terrain[location])
            select location);
 }