KI
 All Data Structures Files Functions Variables
Public Member Functions
communication::Communicator Class Reference

#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 &)
 

Detailed Description

This module is responsible for sending and receiving messages according to the protocol defined in the standard.

Constructor & Destructor Documentation

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

Parameters
lobbyNamethe name of the lobby to join
userNamethe username to use
passwordthe password to use
difficultythe difficulty of the AI
teamConfigthe teamConfig to use
serverthe server to use for the WebSocketClient
portthe port to use for the WebSocketClient
loga log object for logging
See Also
Game, MessageHandler

The documentation for this class was generated from the following files: