예제 #1
0
	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;
	}
예제 #2
0
	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;
	}