public RoomView(Room room, BoardView boardView, GraphicsDevice graphicsDevice) : base(graphicsDevice) { this.room = room; rectangle = new Rectangle(room.RoomPoint(), new Point(RoomViewExtensions.roomSquareWidth)); listener = boardView; vertices = room.GetVerts(boardView.board.random).ToList(); borderVertices = room.GetBorder(); Init(graphicsDevice); }
public static void DrawText(this BoardView view, GraphicsBatch graphicsBatch) { foreach (var room in view.board.rooms.Values) { room.DrawText(graphicsBatch); var targets = view.board.targets.All.Where(x => x.roomId == room.id).ToList(); for (var i = 0; i < targets.Count(); i++) { targets[i].DrawTargetText(i, room, graphicsBatch); } } view.nemesisConsole.DrawText(graphicsBatch); }