Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
CMessageVisionSharingChanged Class Referencefinal

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

#include <MessageTypes.h>

Inheritance diagram for CMessageVisionSharingChanged:
Collaboration diagram for CMessageVisionSharingChanged:

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
 
 CMessageVisionSharingChanged (entity_id_t entity, player_id_t player, bool add)
 
- 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
 
player_id_t player
 
bool add
 

Additional Inherited Members

- Protected Member Functions inherited from CMessage
 CMessage ()
 

Detailed Description

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

Constructor & Destructor Documentation

◆ CMessageVisionSharingChanged()

CMessageVisionSharingChanged::CMessageVisionSharingChanged ( entity_id_t  entity,
player_id_t  player,
bool  add 
)
inline

Member Function Documentation

◆ FromJSVal()

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

◆ GetScriptGlobalHandlerName()

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

Implements CMessage.

◆ GetScriptHandlerName()

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

Implements CMessage.

◆ GetType()

virtual int CMessageVisionSharingChanged::GetType ( ) const
inlinevirtual

Implements CMessage.

◆ ToJSVal()

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

Implements CMessage.

Member Data Documentation

◆ add

bool CMessageVisionSharingChanged::add

◆ entity

entity_id_t CMessageVisionSharingChanged::entity

◆ player

player_id_t CMessageVisionSharingChanged::player

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