18 #ifndef INCLUDED_LOCALTURNMANAGER 19 #define INCLUDED_LOCALTURNMANAGER 42 #endif // INCLUDED_LOCALTURNMANAGER
Implementation of CTurnManager for offline games.
Definition: LocalTurnManager.h:26
void OnSimulationMessage(CSimulationMessage *msg) override
Called by networking code when a simulation message is received.
Definition: LocalTurnManager.cpp:54
CLocalTurnManager(CSimulation2 &simulation, IReplayLogger &replay)
Definition: LocalTurnManager.cpp:22
Replay log recorder interface.
Definition: Replay.h:35
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: LocalTurnManager.cpp:32
Common turn system (used by clients and offline games).
Definition: TurnManager.h:79
Public API for simulation system.
Definition: Simulation2.h:46
int32_t player_id_t
valid player IDs are non-negative (see ICmpOwnership)
Definition: Player.h:24
uint32_t u32
Definition: types.h:39
void NotifyFinishedOwnCommands(u32 turn) override
Called when this client has finished sending all its commands scheduled for the given turn...
Definition: LocalTurnManager.cpp:37
virtual void NotifyFinishedUpdate(u32 turn) override
Called when this client has finished a simulation update.
Definition: LocalTurnManager.cpp:42
Special message type for simulation commands.
Definition: NetMessage.h:113