Пример #1
0
        public static void MakeZomboAt(ZomboType type, Alliance alliance, Point at)
        {
            var zombo = new Zombo(type, alliance, at);

            FullMap.SetAt(zombo);
            zombos.Add(zombo);
        }
Пример #2
0
 public static Color ColorAtPoint(Point point)
 {
     if (FullMap.HasEntityAt(point))
     {
         return(ColorOf(FullMap.GetAt(point)));
     }
     else
     {
         return(FloorColor);
     }
 }
Пример #3
0
        static void RunLoop()
        {
            while (true)
            {
                KeyboardManager.Loop();
                Config.Loop();
                CameraControl.Loop();

                FullMap.Loop();

                EntityControl.Loop();

                Drawer.Loop();
                Sleeper.Loop();
            }
        }
Пример #4
0
 public static IEnumerable <Zombo> ZombosFromPoints(IEnumerable <Point> points) => points.Select(x => (Zombo)FullMap.GetAt(x));
Пример #5
0
 public static IEnumerable <Point> SoldierPointsAroundPoint(Point point, int rad = 1) => OccupiedPointsAroundPoint(point, rad).Where(x => FullMap.GetAt(x).IsZombo());
Пример #6
0
 public static void Kill(Zombo toKill)
 {
     FullMap.ResetAt(toKill.location);
     zombos.Remove(toKill);
 }
Пример #7
0
 public static void MoveZomboTo(Zombo zombo, Point moveTo)
 {
     FullMap.ResetAt(zombo.location);
     zombo.location = moveTo;
     FullMap.SetAt(zombo);
 }
Пример #8
0
        public static void AddEntityAt(EntityType type, Point addAt)
        {
            var entity = new Entity(type, addAt);

            FullMap.SetAt(entity);
        }