18#ifndef INCLUDED_ICMPCOMMANDQUEUE
19#define INCLUDED_ICMPCOMMANDQUEUE
25#include <js/TypeDecls.h>
60 virtual void FlushTurn(
const std::vector<SimulationCommand>& commands) = 0;
int32_t player_id_t
valid player IDs are non-negative (see ICmpOwnership)
Definition: Player.h:26
Command queue, for sending orders to entities.
Definition: ICmpCommandQueue.h:44
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
#define DECLARE_INTERFACE_TYPE(iname)
Definition: Interface.h:23
Simulation command, typically received over the network in multiplayer games.
Definition: SimulationCommand.h:39