public static void MakeZomboAt(ZomboType type, Alliance alliance, Point at) { var zombo = new Zombo(type, alliance, at); FullMap.SetAt(zombo); zombos.Add(zombo); }
public static Color ColorAtPoint(Point point) { if (FullMap.HasEntityAt(point)) { return(ColorOf(FullMap.GetAt(point))); } else { return(FloorColor); } }
static void RunLoop() { while (true) { KeyboardManager.Loop(); Config.Loop(); CameraControl.Loop(); FullMap.Loop(); EntityControl.Loop(); Drawer.Loop(); Sleeper.Loop(); } }
public static IEnumerable <Zombo> ZombosFromPoints(IEnumerable <Point> points) => points.Select(x => (Zombo)FullMap.GetAt(x));
public static IEnumerable <Point> SoldierPointsAroundPoint(Point point, int rad = 1) => OccupiedPointsAroundPoint(point, rad).Where(x => FullMap.GetAt(x).IsZombo());
public static void Kill(Zombo toKill) { FullMap.ResetAt(toKill.location); zombos.Remove(toKill); }
public static void MoveZomboTo(Zombo zombo, Point moveTo) { FullMap.ResetAt(zombo.location); zombo.location = moveTo; FullMap.SetAt(zombo); }
public static void AddEntityAt(EntityType type, Point addAt) { var entity = new Entity(type, addAt); FullMap.SetAt(entity); }