コード例 #1
0
 public static Color ColorAtPoint(Point point)
 {
     if (FullMap.HasEntityAt(point))
     {
         return(ColorOf(FullMap.GetAt(point)));
     }
     else
     {
         return(FloorColor);
     }
 }
コード例 #2
0
 public static IEnumerable <Zombo> ZombosFromPoints(IEnumerable <Point> points) => points.Select(x => (Zombo)FullMap.GetAt(x));
コード例 #3
0
 public static IEnumerable <Point> SoldierPointsAroundPoint(Point point, int rad = 1) => OccupiedPointsAroundPoint(point, rad).Where(x => FullMap.GetAt(x).IsZombo());