18#ifndef INCLUDED_ICMPCOMMANDQUEUE
19#define INCLUDED_ICMPCOMMANDQUEUE
56 virtual void FlushTurn(
const std::vector<SimulationCommand>& commands) = 0;
#define DECLARE_INTERFACE_TYPE(iname)
Definition: Interface.h:23
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:40
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 PushLocalCommand(player_id_t player, JS::HandleValue cmd)=0
Pushes a new command onto the local queue.
virtual void PostNetworkCommand(JS::HandleValue cmd)=0
Send a command associated with the current player to the networking system.
Definition: IComponent.h:33