Pyrogenesis trunk
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
CMessageVisionRangeChanged Class Referencefinal

Sent by CCmpVision when an entity's vision range changes. More...

#include <MessageTypes.h>

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

Public Member Functions

virtual int GetType () const
 
virtual const char * GetScriptHandlerName () const
 
virtual const char * GetScriptGlobalHandlerName () const
 
virtual JS::Value ToJSVal (const ScriptRequest &rq) const
 
 CMessageVisionRangeChanged (entity_id_t entity, entity_pos_t oldRange, entity_pos_t newRange)
 
- Public Member Functions inherited from CMessage
virtual ~CMessage ()
 
virtual int GetType () const =0
 
virtual const char * GetScriptHandlerName () const =0
 
virtual const char * GetScriptGlobalHandlerName () const =0
 
virtual JS::Value ToJSVal (const ScriptRequest &) const =0
 
JS::Value ToJSValCached (const ScriptRequest &) const
 

Static Public Member Functions

static CMessageFromJSVal (const ScriptRequest &, JS::HandleValue val)
 

Public Attributes

entity_id_t entity
 
entity_pos_t oldRange
 
entity_pos_t newRange
 

Additional Inherited Members

- Protected Member Functions inherited from CMessage
 CMessage ()
 

Detailed Description

Sent by CCmpVision when an entity's vision range changes.

Constructor & Destructor Documentation

◆ CMessageVisionRangeChanged()

CMessageVisionRangeChanged::CMessageVisionRangeChanged ( entity_id_t  entity,
entity_pos_t  oldRange,
entity_pos_t  newRange 
)
inline

Member Function Documentation

◆ FromJSVal()

CMessage * CMessageVisionRangeChanged::FromJSVal ( const ScriptRequest rq,
JS::HandleValue  val 
)
static

◆ GetScriptGlobalHandlerName()

virtual const char * CMessageVisionRangeChanged::GetScriptGlobalHandlerName ( ) const
inlinevirtual

Implements CMessage.

◆ GetScriptHandlerName()

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

Implements CMessage.

◆ GetType()

virtual int CMessageVisionRangeChanged::GetType ( ) const
inlinevirtual

Implements CMessage.

◆ ToJSVal()

JS::Value CMessageVisionRangeChanged::ToJSVal ( const ScriptRequest rq) const
virtual

Implements CMessage.

Member Data Documentation

◆ entity

entity_id_t CMessageVisionRangeChanged::entity

◆ newRange

entity_pos_t CMessageVisionRangeChanged::newRange

◆ oldRange

entity_pos_t CMessageVisionRangeChanged::oldRange

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