Pyrogenesis
trunk
|
Public Member Functions | |
virtual int | GetComponentTypeId () const |
virtual void | Init (const CParamNode ¶mNode) |
virtual void | Deinit () |
virtual void | Serialize (ISerializer &serialize) |
virtual void | Deserialize (const CParamNode ¶mNode, IDeserializer &deserialize) |
virtual void | PushLocalCommand (player_id_t player, JS::HandleValue cmd) |
Pushes a new command onto the local queue. More... | |
virtual void | PostNetworkCommand (JS::HandleValue cmd1) |
Send a command associated with the current player to the networking system. More... | |
virtual void | FlushTurn (const std::vector< SimulationCommand > &commands) |
Calls the ProcessCommand(player, cmd) global script function for each command in the local queue and in commands , and empties the local queue. More... | |
Public Member Functions inherited from IComponent | |
virtual | ~IComponent () |
virtual void | HandleMessage (const CMessage &msg, bool global) |
CEntityHandle | GetEntityHandle () const |
void | SetEntityHandle (CEntityHandle ent) |
entity_id_t | GetEntityId () const |
CEntityHandle | GetSystemEntity () const |
const CSimContext & | GetSimContext () const |
void | SetSimContext (const CSimContext &context) |
virtual bool | NewJSObject (ScriptInterface &scriptInterface, JS::MutableHandleObject out) const |
Returns false by default, indicating that a scripted wrapper of this IComponent is not supported. More... | |
virtual JS::Value | GetJSInstance () const |
Static Public Member Functions | |
static void | ClassInit (CComponentManager &componentManager) |
static IComponent * | Allocate (ScriptInterface &, JS::HandleValue) |
static void | Deallocate (IComponent *cmp) |
static std::string | GetSchema () |
Static Public Member Functions inherited from IComponent | |
static std::string | GetSchema () |
static u8 | GetSerializationVersion () |
Public Attributes | |
std::vector< SimulationCommand > | m_LocalQueue |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinevirtual |
Implements IComponent.
|
inlinevirtual |
Implements IComponent.
|
inlinevirtual |
Calls the ProcessCommand(player, cmd) global script function for each command in the local queue and in commands
, and empties the local queue.
Implements ICmpCommandQueue.
|
inlinevirtual |
Implements IComponent.
|
inlinestatic |
|
inlinevirtual |
Implements IComponent.
|
inlinevirtual |
Send a command associated with the current player to the networking system.
Implements ICmpCommandQueue.
|
inlinevirtual |
Pushes a new command onto the local queue.
cmd
does not need to be rooted.
Implements ICmpCommandQueue.
|
inlinevirtual |
Implements IComponent.
std::vector<SimulationCommand> CCmpCommandQueue::m_LocalQueue |