#include <Communicator.hpp>
Public Member Functions | |
| Communicator (const std::string &lobbyName, const std::string &userName, const std::string &password, unsigned int difficulty, const messages::request::TeamConfig &teamConfig, const std::string &server, uint16_t port, util::Logging &log) | |
| template<> | |
| void | onPayloadReceive (const messages::unicast::JoinResponse &) |
This module is responsible for sending and receiving messages according to the protocol defined in the standard.
| communication::Communicator::Communicator | ( | const std::string & | lobbyName, |
| const std::string & | userName, | ||
| const std::string & | password, | ||
| unsigned int | difficulty, | ||
| const messages::request::TeamConfig & | teamConfig, | ||
| const std::string & | server, | ||
| uint16_t | port, | ||
| util::Logging & | log | ||
| ) |
CTor. Constructs a Game and a MessageHandler
| lobbyName | the name of the lobby to join |
| userName | the username to use |
| password | the password to use |
| difficulty | the difficulty of the AI |
| teamConfig | the teamConfig to use |
| server | the server to use for the WebSocketClient |
| port | the port to use for the WebSocketClient |
| log | a log object for logging |
1.8.6