18 #ifndef INCLUDED_NETCLIENTTURNMANAGER 19 #define INCLUDED_NETCLIENTTURNMANAGER 44 void OnSyncError(
u32 turn,
const CStr& expectedHash,
const std::vector<CSyncErrorMessage::S_m_PlayerNames>& playerNames);
54 #endif // INCLUDED_NETCLIENTTURNMANAGER
CNetClientTurnManager(CSimulation2 &simulation, CNetClient &client, int clientId, IReplayLogger &replay)
Definition: NetClientTurnManager.cpp:36
NONCOPYABLE(CNetClientTurnManager)
void OnDestroyConnection()
Notify the server that all commands are sent to prepare the connection for termination.
Definition: NetClientTurnManager.cpp:94
Replay log recorder interface.
Definition: Replay.h:30
void NotifyFinishedOwnCommands(u32 turn) override
Called when this client has finished sending all its commands scheduled for the given turn...
Definition: NetClientTurnManager.cpp:54
This file defines the base class of the turn managers for clients, local games and replays...
Definition: TurnManager.h:57
Public API for simulation system.
Definition: Simulation2.h:47
uint32_t u32
Definition: types.h:39
void NotifyFinishedUpdate(u32 turn) override
Called when this client has finished a simulation update.
Definition: NetClientTurnManager.cpp:70
void OnSimulationMessage(CSimulationMessage *msg) override
Called by networking code when a simulation message is received.
Definition: NetClientTurnManager.cpp:99
Network client.
Definition: NetClient.h:57
Implementation of CTurnManager for network clients.
Definition: NetClientTurnManager.h:29
CNetClient & m_NetClient
Definition: NetClientTurnManager.h:51
void OnSyncError(u32 turn, const CStr &expectedHash, const std::vector< CSyncErrorMessage::S_m_PlayerNames > &playerNames)
Definition: NetClientTurnManager.cpp:105
void PostCommand(JS::HandleValue data) override
Called by simulation code, to add a new command to be distributed to all clients and executed soon...
Definition: NetClientTurnManager.cpp:41
Special message type for simulation commands.
Definition: NetMessage.h:113