Namespaces | |
| namespace | Config |
| namespace | Game |
| namespace | Path |
Classes | |
| struct | ArgsConfig |
| class | ArgsHandler |
| Class to handle command line arguments. More... | |
| class | AScene |
| Class for scene. More... | |
| class | AsioServer |
| High-performance UDP server implementation using ASIO library. More... | |
| struct | ClientSession |
| Represents an active client connection session. More... | |
| struct | EnvConfig |
| interface | INetworkServer |
| Interface for the server network. More... | |
| class | IScene |
| interface class for scene More... | |
| struct | Lobby |
| Represents a game lobby (room) where players gather before starting a game. More... | |
| struct | QueuedPacket |
| Represents a packet queued for asynchronous transmission. More... | |
| class | SceneManager |
| Class for managing scenes. More... | |
| class | Server |
| Class for the server. More... | |
Typedefs | |
| using | json = nlohmann::json |
| using | id = unsigned int |
Enumerations | |
| enum class | LobbyStatus : std::uint8_t { SUCCESS = 0 , WAITING = 1 , IN_GAME = 2 , NOT_FOUND = 3 , FULL = 4 , ALREADY_IN_LOBBY = 5 } |
| Status codes for lobby operations. More... | |
Variables | |
| constexpr size_t | MAX_CLIENTS = 16 |
| constexpr size_t | MAX_IP_LENGTH = 8 |
| constexpr size_t | MAX_LEN_RECV_BUFFER = 1024 |
| using srv::id = unsigned int |
Definition at line 16 of file IScene.hpp.
| using srv::json = nlohmann::json |
Definition at line 18 of file ArgsHandler.hpp.
|
strong |
Status codes for lobby operations.
Used to indicate the result of lobby-related operations
| Enumerator | |
|---|---|
| SUCCESS | Operation completed successfully. |
| WAITING | Lobby is waiting for players. |
| IN_GAME | Game in progress. |
| NOT_FOUND | Requested lobby does not exist. |
| FULL | Lobby has reached maximum capacity. |
| ALREADY_IN_LOBBY | Client is already in a lobby. |
Definition at line 66 of file AsioServer.hpp.
|
constexpr |
Definition at line 18 of file INetworkServer.hpp.
Referenced by srv::AsioServer::handleConnect().
|
constexpr |
Definition at line 19 of file INetworkServer.hpp.
|
constexpr |
Definition at line 20 of file INetworkServer.hpp.