The server-side counterpart to CNetClientTurnManager.
More...
#include <NetTurnManager.h>
The server-side counterpart to CNetClientTurnManager.
Records the turn state of each client, and sends turn advancement messages when all clients are ready.
Thread-safety:
Definition at line 239 of file NetTurnManager.h.
void CNetServerTurnManager::CheckClientsReady |
( |
| ) |
|
|
protected |
u32 CNetServerTurnManager::GetReadyTurn |
( |
| ) |
|
|
inline |
Returns the latest turn for which all clients are ready; they will have already been told to execute this turn.
Definition at line 266 of file NetTurnManager.h.
u32 CNetServerTurnManager::GetSavedTurnLength |
( |
u32 |
turn | ) |
|
void CNetServerTurnManager::InitialiseClient |
( |
int |
client, |
|
|
u32 |
turn |
|
) |
| |
Inform the turn manager of a new client who will be sending commands.
Definition at line 565 of file NetTurnManager.cpp.
void CNetServerTurnManager::NotifyFinishedClientCommands |
( |
int |
client, |
|
|
u32 |
turn |
|
) |
| |
void CNetServerTurnManager::NotifyFinishedClientUpdate |
( |
int |
client, |
|
|
u32 |
turn, |
|
|
const std::string & |
hash |
|
) |
| |
void CNetServerTurnManager::SetTurnLength |
( |
u32 |
msecs | ) |
|
void CNetServerTurnManager::UninitialiseClient |
( |
int |
client | ) |
|
Inform the turn manager that a previously-initialised client has left the game and will no longer be sending commands.
Definition at line 574 of file NetTurnManager.cpp.
std::map<int, u32> CNetServerTurnManager::m_ClientsReady |
|
protected |
std::map<int, u32> CNetServerTurnManager::m_ClientsSimulated |
|
protected |
std::map<u32, std::map<int, std::string> > CNetServerTurnManager::m_ClientStateHashes |
|
protected |
u32 CNetServerTurnManager::m_ReadyTurn |
|
protected |
The latest turn for which we have received all commands from all clients.
Definition at line 278 of file NetTurnManager.h.
std::vector<u32> CNetServerTurnManager::m_SavedTurnLengths |
|
protected |
u32 CNetServerTurnManager::m_TurnLength |
|
protected |
The documentation for this class was generated from the following files: