15 #include "../lib/room.h" 63 std::vector<Room *> rooms;
70 Room *generateRoom(
int x,
int y);
79 void checkAndLink(
Room *newRoom,
int x,
int y, std::map<std::pair<int, int>,
Room *> &roomMap);
Dungeon()
Constructor for the Dungeon class.
Definition: dungeon.cpp:16
std::string getMap(Room *room)
Get a string representation of the dungeon map centered on a specific room.
Definition: dungeon.cpp:110
Manages the generation and traversal of dungeon floors.
Definition: dungeon.h:23
~Dungeon()
Destructor for the Dungeon class.
Definition: dungeon.cpp:22
Room * generateFloor(int numRooms)
Generates a dungeon floor with a specified number of rooms.
Definition: dungeon.cpp:209
int numRooms(Room *startRoom)
Counts the number of rooms in the dungeon starting from a given room.
Definition: dungeon.cpp:274
void linkRooms(Room *room1, Room *room2, int direction)
Links two rooms together in a specified direction.
Definition: dungeon.cpp:50
Represents a room in the dungeon.
Definition: room.h:174