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

Sent by CCmpRangeManager at most once per turn, when an active range query has had matching units enter/leave the range since the last RangeUpdate. More...

#include <MessageTypes.h>

Inheritance diagram for CMessageRangeUpdate:
Inheritance graph
[legend]
Collaboration diagram for CMessageRangeUpdate:
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
 
 CMessageRangeUpdate ()
 
 CMessageRangeUpdate (u32 tag)
 
 CMessageRangeUpdate (u32 tag, const std::vector< entity_id_t > &added, const std::vector< entity_id_t > &removed)
 
 CMessageRangeUpdate (const CMessageRangeUpdate &other)
 
CMessageRangeUpdateoperator= (const CMessageRangeUpdate &other)
 
- 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

u32 tag
 
std::vector< entity_id_tadded
 
std::vector< entity_id_tremoved
 

Additional Inherited Members

- Protected Member Functions inherited from CMessage
 CMessage ()
 

Detailed Description

Sent by CCmpRangeManager at most once per turn, when an active range query has had matching units enter/leave the range since the last RangeUpdate.

Constructor & Destructor Documentation

CMessageRangeUpdate::CMessageRangeUpdate ( )
inline
CMessageRangeUpdate::CMessageRangeUpdate ( u32  tag)
inline
CMessageRangeUpdate::CMessageRangeUpdate ( u32  tag,
const std::vector< entity_id_t > &  added,
const std::vector< entity_id_t > &  removed 
)
inline
CMessageRangeUpdate::CMessageRangeUpdate ( const CMessageRangeUpdate other)
inline

Member Function Documentation

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

Implements CMessage.

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

Implements CMessage.

virtual int CMessageRangeUpdate::GetType ( void  ) const
inlinevirtual

Implements CMessage.

CMessageRangeUpdate& CMessageRangeUpdate::operator= ( const CMessageRangeUpdate other)
inline
JS::Value CMessageRangeUpdate::ToJSVal ( ScriptInterface scriptInterface) const
virtual

Implements CMessage.

Member Data Documentation

std::vector<entity_id_t> CMessageRangeUpdate::added
std::vector<entity_id_t> CMessageRangeUpdate::removed
u32 CMessageRangeUpdate::tag

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