|
| virtual | ~IRoom ()=default |
| |
| virtual bool | join (uint32_t playerId)=0 |
| | Join a player to the room.
|
| |
| virtual bool | joinAsSpectator (uint32_t playerId)=0 |
| | Join a player to the room as a spectator.
|
| |
| virtual bool | leave (uint32_t playerId)=0 |
| | Remove a player from the room.
|
| |
| virtual std::string | getId () const =0 |
| | Get the room's unique identifier.
|
| |
| virtual std::string | getName () const =0 |
| | Get the room's display name.
|
| |
| virtual RoomState | getState () const =0 |
| | Get current state of the room.
|
| |
| virtual void | setState (RoomState state)=0 |
| | Set the state of the room.
|
| |
| virtual size_t | getPlayerCount () const =0 |
| | Get number of players currently in room.
|
| |
| virtual size_t | getMaxPlayers () const =0 |
| | Get maximum number of players allowed.
|
| |
| virtual bool | isFull () const =0 |
| | Check if room is full.
|
| |
| virtual std::vector< uint32_t > | getPlayers () const =0 |
| | Get list of player IDs in this room.
|
| |
| virtual std::vector< uint32_t > | getSpectators () const =0 |
| | Get list of spectator IDs in this room.
|
| |
| virtual bool | hasPlayer (uint32_t playerId) const =0 |
| | Check if a player is in this room.
|
| |
| virtual bool | hasSpectator (uint32_t playerId) const =0 |
| | Check if a spectator is in this room.
|
| |
| virtual RoomInfo | getInfo () const =0 |
| | Get room information.
|
| |
Interface for a game room.
Defines basic operations for a game room like joining, leaving, and retrieving information.
Definition at line 47 of file IRoom.hpp.