Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
CMessageVisibilityChanged Class Referencefinal

Sent, at most once per turn, when the visibility of an entity changed. More...

#include <MessageTypes.h>

Inheritance diagram for CMessageVisibilityChanged:
Collaboration diagram for CMessageVisibilityChanged:

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
 
 CMessageVisibilityChanged (player_id_t player, entity_id_t ent, int oldVisibility, int newVisibility)
 
- 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

player_id_t player
 
entity_id_t ent
 
int oldVisibility
 
int newVisibility
 

Additional Inherited Members

- Protected Member Functions inherited from CMessage
 CMessage ()
 

Detailed Description

Sent, at most once per turn, when the visibility of an entity changed.

Constructor & Destructor Documentation

◆ CMessageVisibilityChanged()

CMessageVisibilityChanged::CMessageVisibilityChanged ( player_id_t  player,
entity_id_t  ent,
int  oldVisibility,
int  newVisibility 
)
inline

Member Function Documentation

◆ FromJSVal()

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

◆ GetScriptGlobalHandlerName()

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

Implements CMessage.

◆ GetScriptHandlerName()

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

Implements CMessage.

◆ GetType()

virtual int CMessageVisibilityChanged::GetType ( ) const
inlinevirtual

Implements CMessage.

◆ ToJSVal()

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

Implements CMessage.

Member Data Documentation

◆ ent

entity_id_t CMessageVisibilityChanged::ent

◆ newVisibility

int CMessageVisibilityChanged::newVisibility

◆ oldVisibility

int CMessageVisibilityChanged::oldVisibility

◆ player

player_id_t CMessageVisibilityChanged::player

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