Pyrogenesis  trunk
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
CCmpOwnership Class Reference

Basic ICmpOwnership implementation. More...

Inheritance diagram for CCmpOwnership:
Inheritance graph
[legend]
Collaboration diagram for CCmpOwnership:
Collaboration graph
[legend]

Public Member Functions

virtual int GetComponentTypeId () const
 
virtual void Init (const CParamNode &paramNode)
 
virtual void Deinit ()
 
virtual void Serialize (ISerializer &serialize)
 
virtual void Deserialize (const CParamNode &paramNode, IDeserializer &deserialize)
 
virtual void HandleMessage (const CMessage &msg, bool global)
 
virtual player_id_t GetOwner () const
 
virtual void SetOwner (player_id_t playerID)
 
virtual void SetOwnerQuiet (player_id_t playerID)
 
- Public Member Functions inherited from IComponent
virtual ~IComponent ()
 
CEntityHandle GetEntityHandle () const
 
void SetEntityHandle (CEntityHandle ent)
 
entity_id_t GetEntityId () const
 
CEntityHandle GetSystemEntity () const
 
const CSimContextGetSimContext () 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 IComponentAllocate (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

player_id_t m_Owner
 

Detailed Description

Basic ICmpOwnership implementation.

Member Function Documentation

static IComponent* CCmpOwnership::Allocate ( ScriptInterface ,
JS::HandleValue   
)
inlinestatic
static void CCmpOwnership::ClassInit ( CComponentManager componentManager)
inlinestatic
static void CCmpOwnership::Deallocate ( IComponent cmp)
inlinestatic
virtual void CCmpOwnership::Deinit ( )
inlinevirtual

Implements IComponent.

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

Implements IComponent.

virtual int CCmpOwnership::GetComponentTypeId ( ) const
inlinevirtual

Implements IComponent.

virtual player_id_t CCmpOwnership::GetOwner ( ) const
inlinevirtual

Implements ICmpOwnership.

static std::string CCmpOwnership::GetSchema ( )
inlinestatic
virtual void CCmpOwnership::HandleMessage ( const CMessage msg,
bool  global 
)
inlinevirtual

Reimplemented from IComponent.

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

Implements IComponent.

virtual void CCmpOwnership::Serialize ( ISerializer serialize)
inlinevirtual

Implements IComponent.

virtual void CCmpOwnership::SetOwner ( player_id_t  playerID)
inlinevirtual

Implements ICmpOwnership.

virtual void CCmpOwnership::SetOwnerQuiet ( player_id_t  playerID)
inlinevirtual

Implements ICmpOwnership.

Member Data Documentation

player_id_t CCmpOwnership::m_Owner

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