Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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:
CMessage

Public Member Functions

virtual int GetType () const
 
virtual const char * GetScriptHandlerName () const
 
virtual const char * GetScriptGlobalHandlerName () const
 
virtual jsval 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 ()
 
jsval ToJSValCached (ScriptInterface &) const
 

Static Public Member Functions

static CMessageFromJSVal (ScriptInterface &, jsval 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.

Definition at line 312 of file MessageTypes.h.

Constructor & Destructor Documentation

CMessageRangeUpdate::CMessageRangeUpdate ( )
inline

Definition at line 328 of file MessageTypes.h.

CMessageRangeUpdate::CMessageRangeUpdate ( u32  tag)
inline

Definition at line 331 of file MessageTypes.h.

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

Definition at line 334 of file MessageTypes.h.

CMessageRangeUpdate::CMessageRangeUpdate ( const CMessageRangeUpdate other)
inline

Definition at line 338 of file MessageTypes.h.

Member Function Documentation

CMessage * CMessageRangeUpdate::FromJSVal ( ScriptInterface scriptInterface,
jsval  val 
)
static

Definition at line 281 of file MessageTypeConversions.cpp.

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

Implements CMessage.

Definition at line 315 of file MessageTypes.h.

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

Implements CMessage.

Definition at line 315 of file MessageTypes.h.

virtual int CMessageRangeUpdate::GetType ( void  ) const
inlinevirtual

Implements CMessage.

Definition at line 315 of file MessageTypes.h.

CMessageRangeUpdate& CMessageRangeUpdate::operator= ( const CMessageRangeUpdate other)
inline

Definition at line 342 of file MessageTypes.h.

jsval CMessageRangeUpdate::ToJSVal ( ScriptInterface scriptInterface) const
virtual

Implements CMessage.

Definition at line 272 of file MessageTypeConversions.cpp.

Member Data Documentation

std::vector<entity_id_t> CMessageRangeUpdate::added

Definition at line 320 of file MessageTypes.h.

std::vector<entity_id_t> CMessageRangeUpdate::removed

Definition at line 321 of file MessageTypes.h.

u32 CMessageRangeUpdate::tag

Definition at line 319 of file MessageTypes.h.


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