18#ifndef INCLUDED_SIMULATIONCOMMAND
19#define INCLUDED_SIMULATIONCOMMAND
23#include <js/RootingAPI.h>
24#include <js/TypeDecls.h>
54 this->
player = other.player;
55 this->
data = other.data;
60 JS::PersistentRootedValue
data;
int32_t player_id_t
valid player IDs are non-negative (see ICmpOwnership)
Definition: Player.h:26
std::int32_t turn_id_t
At 1000 turns/second, a 32-bit counter would overflow in ~49 days.
Definition: SimulationCommand.h:31
Simulation command, typically received over the network in multiplayer games.
Definition: SimulationCommand.h:39
JS::PersistentRootedValue data
Definition: SimulationCommand.h:60
player_id_t player
Definition: SimulationCommand.h:59
SimulationCommand & operator=(SimulationCommand &&other)
Definition: SimulationCommand.h:52
SimulationCommand(player_id_t player, JSContext *cx, JS::HandleValue val)
Definition: SimulationCommand.h:40
SimulationCommand(SimulationCommand &&cmd)
Definition: SimulationCommand.h:45