private bool makeSpecialRooms() { Tile bossRoom = new Tile(); Tile startRoom = new Tile(); Tile treasureRoom = new Tile(); bossRoom.setTag ("B"); startRoom.setTag ("S"); treasureRoom.setTag ("T"); if (!placeSpecialRoom(bossRoom) || !placeSpecialRoom(startRoom) || !placeSpecialRoom(treasureRoom)) { return false; } return true; }
private bool placeDeadEnds() { for (int i = 0; i < Math.Sqrt (floorNumber); ++i) { Tile endRoom = new Tile(); endRoom.setTag("E"); if (!placeSpecialRoom (endRoom)) { return false; } } return true; }