public DungeonMap( ) { //map = RogueSharp.Map.Create( mapCreationStrategy ); features = new Dictionary <Point, TileFeature>(); actors = new Dictionary <Actor, Point>(); csMapbuilder b = new csMapbuilder(GameConstants.MapWidth, GameConstants.MapHeight); b.Build_OneStartRoom(); Rooms = b.GetRooms(); map = new Map(GameConstants.MapWidth, GameConstants.MapHeight); CopyMap(b); AddPlayer(); }
void buildDefaultMap() { csMapbuilder b = new csMapbuilder(mapRect.Width, mapRect.Height); b.Build_OneStartRoom(); for (int x = 0; x < mapRect.Width; x++) { for (int y = 0; y < mapRect.Height; y++) { TileType type = ( TileType )b.GetCell(x, y); SetTile(new Point(x, y), type); } } rooms = b.GetRooms(); }