18 #ifndef INCLUDED_ICMPCOMMANDQUEUE 19 #define INCLUDED_ICMPCOMMANDQUEUE 54 virtual void FlushTurn(
const std::vector<SimulationCommand>& commands) = 0;
59 #endif // INCLUDED_ICMPCOMMANDQUEUE Definition: IComponent.h:33
virtual void FlushTurn(const std::vector< SimulationCommand > &commands)=0
Calls the ProcessCommand(player, cmd) global script function for each command in the local queue and ...
virtual void PostNetworkCommand(JS::HandleValue cmd)=0
Send a command associated with the current player to the networking system.
int32_t player_id_t
valid player IDs are non-negative (see ICmpOwnership)
Definition: Player.h:24
Command queue, for sending orders to entities.
Definition: ICmpCommandQueue.h:37
#define DECLARE_INTERFACE_TYPE(iname)
Definition: Interface.h:23
virtual void PushLocalCommand(player_id_t player, JS::HandleValue cmd)=0
Pushes a new command onto the local queue.