Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
 public static Color ColorAtPoint(Point point)
 {
     if (FullMap.HasEntityAt(point))
     {
         return(ColorOf(FullMap.GetAt(point)));
     }
     else
     {
         return(FloorColor);
     }
 }
Ejemplo n.º 3
0
        static void RunLoop()
        {
            while (true)
            {
                KeyboardManager.Loop();
                Config.Loop();
                CameraControl.Loop();

                FullMap.Loop();

                EntityControl.Loop();

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

            FullMap.SetAt(entity);
        }