|
TheCOSCGameProject
1.0
|
Represents a room in the dungeon. More...
#include <room.h>

Public Member Functions | |
| Room () | |
| Constructor for the Room class. More... | |
| void | displayAvailableDirections () |
| Displays the available directions the player can move in. More... | |
Public Attributes | |
| Room * | north |
| Pointer to the room to the north. More... | |
| Room * | south |
| Pointer to the room to the south. More... | |
| Room * | west |
| Pointer to the room to the west. More... | |
| Room * | east |
| Pointer to the room to the east. More... | |
| RoomContent | roomContent |
| The content of the room. More... | |
Represents a room in the dungeon.
The Room class links rooms together and manages their contents, allowing the player to navigate between them.
| Room::Room | ( | ) |
Constructor for the Room class.
Initializes the room with default values and no connections to other rooms.
Initializes a Room object with null pointers for all directions and an empty RoomContent.
| void Room::displayAvailableDirections | ( | ) |
Displays the available directions the player can move in.
Display the available directions the player can move to.
Checks the neighboring rooms and lists the possible directions the player can move in.
| Room* Room::east |
Pointer to the room to the east.
| Room* Room::north |
Pointer to the room to the north.
| RoomContent Room::roomContent |
The content of the room.
| Room* Room::south |
Pointer to the room to the south.
| Room* Room::west |
Pointer to the room to the west.
1.8.13