Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
CCmpCommandQueue Class Reference
Inheritance diagram for CCmpCommandQueue:
ICmpCommandQueue IComponent

Public Member Functions

virtual void Init (const CParamNode &paramNode)
 
virtual void Deinit ()
 
virtual void Serialize (ISerializer &serialize)
 
virtual void Deserialize (const CParamNode &paramNode, IDeserializer &deserialize)
 
virtual void PushLocalCommand (player_id_t player, CScriptVal cmd)
 Pushes a new command onto the local queue. More...
 
virtual void PostNetworkCommand (CScriptVal cmd)
 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 CSimContextGetSimContext () const
 
void SetSimContext (const CSimContext &context)
 
virtual JSClass * GetJSClass () const
 
virtual jsval GetJSInstance () const
 

Static Public Member Functions

static void ClassInit (CComponentManager &componentManager)
 
static IComponentAllocate (ScriptInterface &, jsval)
 
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< SimulationCommandm_LocalQueue
 

Detailed Description

Definition at line 27 of file CCmpCommandQueue.cpp.

Member Function Documentation

static IComponent* CCmpCommandQueue::Allocate ( ScriptInterface ,
jsval   
)
inlinestatic

Definition at line 34 of file CCmpCommandQueue.cpp.

static void CCmpCommandQueue::ClassInit ( CComponentManager componentManager)
inlinestatic

Definition at line 30 of file CCmpCommandQueue.cpp.

static void CCmpCommandQueue::Deallocate ( IComponent cmp)
inlinestatic

Definition at line 34 of file CCmpCommandQueue.cpp.

virtual void CCmpCommandQueue::Deinit ( )
inlinevirtual

Implements IComponent.

Definition at line 47 of file CCmpCommandQueue.cpp.

virtual void CCmpCommandQueue::Deserialize ( const CParamNode paramNode,
IDeserializer deserialize 
)
inlinevirtual

Implements IComponent.

Definition at line 61 of file CCmpCommandQueue.cpp.

virtual void CCmpCommandQueue::FlushTurn ( const std::vector< SimulationCommand > &  commands)
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.

Definition at line 96 of file CCmpCommandQueue.cpp.

static std::string CCmpCommandQueue::GetSchema ( )
inlinestatic

Definition at line 38 of file CCmpCommandQueue.cpp.

virtual void CCmpCommandQueue::Init ( const CParamNode paramNode)
inlinevirtual

Implements IComponent.

Definition at line 43 of file CCmpCommandQueue.cpp.

virtual void CCmpCommandQueue::PostNetworkCommand ( CScriptVal  cmd)
inlinevirtual

Send a command associated with the current player to the networking system.

Implements ICmpCommandQueue.

Definition at line 84 of file CCmpCommandQueue.cpp.

virtual void CCmpCommandQueue::PushLocalCommand ( player_id_t  player,
CScriptVal  cmd 
)
inlinevirtual

Pushes a new command onto the local queue.

cmd does not need to be rooted.

Implements ICmpCommandQueue.

Definition at line 76 of file CCmpCommandQueue.cpp.

virtual void CCmpCommandQueue::Serialize ( ISerializer serialize)
inlinevirtual

Implements IComponent.

Definition at line 51 of file CCmpCommandQueue.cpp.

Member Data Documentation

std::vector<SimulationCommand> CCmpCommandQueue::m_LocalQueue

Definition at line 36 of file CCmpCommandQueue.cpp.


The documentation for this class was generated from the following file: