|
|
int | m_fd = -1 |
|
bool | m_closed = true |
|
std::shared_ptr< spdlog::logger > | m_log |
◆ generate_response()
| json Server::generate_response |
( |
| ) |
const |
|
nodiscard |
Generates the response for bot_b to reconstruct the game state locally.
◆ init()
| void Server::init |
( |
const std::string & | table_config_path, |
|
|
const std::string & | phase_config_path, |
|
|
const std::string & | game_state_config_path ) |
Reads in all necessary values from the config, constructs PhaseState, TableState and Config object (responsible for configuring the phase selection algorithm).
- Parameters
-
| table_config_path | path to table state config file |
| phase_config_path | path to phases config file |
| game_state_config_path | path to game state configuration files |
◆ serve()
listens for a request from bot_b, responds with an acknowledgement, await another request and send the (in init) constructed objects to bot_b
- Parameters
-
◆ validate_phase()
| void Server::validate_phase |
( |
const Phase & | phase | ) |
const |
Validates a phase by comparing key, value pairs against the table state.
- Parameters
-
The documentation for this class was generated from the following file: