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

Sent by CCmpPosition whenever anything has changed that will affect the return value of GetPosition2D() or GetRotation().Y. More...

#include <MessageTypes.h>

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

Public Member Functions

virtual int GetType () const
 
virtual const char * GetScriptHandlerName () const
 
virtual const char * GetScriptGlobalHandlerName () const
 
virtual JS::Value ToJSVal (ScriptInterface &scriptInterface) const
 
 CMessagePositionChanged (entity_id_t entity, bool inWorld, entity_pos_t x, entity_pos_t z, entity_angle_t a)
 
- Public Member Functions inherited from CMessage
virtual ~CMessage ()
 
JS::Value ToJSValCached (ScriptInterface &) const
 

Static Public Member Functions

static CMessageFromJSVal (ScriptInterface &, JS::HandleValue val)
 

Public Attributes

entity_id_t entity
 
bool inWorld
 
entity_pos_t x
 
entity_pos_t z
 
entity_angle_t a
 

Additional Inherited Members

- Protected Member Functions inherited from CMessage
 CMessage ()
 

Detailed Description

Sent by CCmpPosition whenever anything has changed that will affect the return value of GetPosition2D() or GetRotation().Y.

If inWorld is false, then the other fields are invalid and meaningless. Otherwise they represent the current position.

Constructor & Destructor Documentation

CMessagePositionChanged::CMessagePositionChanged ( entity_id_t  entity,
bool  inWorld,
entity_pos_t  x,
entity_pos_t  z,
entity_angle_t  a 
)
inline

Member Function Documentation

CMessage * CMessagePositionChanged::FromJSVal ( ScriptInterface scriptInterface,
JS::HandleValue  val 
)
static
virtual const char* CMessagePositionChanged::GetScriptGlobalHandlerName ( ) const
inlinevirtual

Implements CMessage.

virtual const char* CMessagePositionChanged::GetScriptHandlerName ( ) const
inlinevirtual

Implements CMessage.

virtual int CMessagePositionChanged::GetType ( void  ) const
inlinevirtual

Implements CMessage.

JS::Value CMessagePositionChanged::ToJSVal ( ScriptInterface scriptInterface) const
virtual

Implements CMessage.

Member Data Documentation

entity_angle_t CMessagePositionChanged::a
entity_id_t CMessagePositionChanged::entity
bool CMessagePositionChanged::inWorld
entity_pos_t CMessagePositionChanged::x
entity_pos_t CMessagePositionChanged::z

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