Pyrogenesis  trunk
Classes | Macros
MessageTypes.h File Reference
#include "simulation2/system/Components.h"
#include "simulation2/system/Entity.h"
#include "simulation2/system/Message.h"
#include "simulation2/helpers/Player.h"
#include "simulation2/helpers/Position.h"
#include "simulation2/components/ICmpPathfinder.h"
#include "maths/Vector3D.h"
#include "ps/CStr.h"
Include dependency graph for MessageTypes.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CMessageTurnStart
 
class  CMessageUpdate
 Generic per-turn update message, for things that don't care much about ordering. More...
 
class  CMessageUpdate_MotionFormation
 Update phase for formation controller movement (must happen before individual units move to follow their formation). More...
 
class  CMessageUpdate_MotionUnit
 Update phase for non-formation-controller unit movement. More...
 
class  CMessageUpdate_Final
 Final update phase, after all other updates. More...
 
class  CMessageInterpolate
 Prepare for rendering a new frame (set up model positions etc). More...
 
class  CMessageRenderSubmit
 Add renderable objects to the scene collector. More...
 
class  CMessageProgressiveLoad
 Handle progressive loading of resources. More...
 
class  CMessageDeserialized
 Broadcast after the entire simulation state has been deserialized. More...
 
class  CMessageCreate
 This is sent immediately after a new entity's components have all been created and initialised. More...
 
class  CMessageDestroy
 This is sent immediately before a destroyed entity is flushed and really destroyed. More...
 
class  CMessageOwnershipChanged
 
class  CMessagePositionChanged
 Sent by CCmpPosition whenever anything has changed that will affect the return value of GetPosition2D() or GetRotation().Y. More...
 
class  CMessageInterpolatedPositionChanged
 Sent by CCmpPosition whenever anything has changed that will affect the return value of GetInterpolatedTransform() More...
 
class  CMessageTerritoryPositionChanged
 
class  CMessageMotionChanged
 Sent by CCmpUnitMotion during Update, whenever the motion status has changed since the previous update. More...
 
class  CMessageWaterChanged
 Sent when water height has been changed. More...
 
class  CMessageTerrainChanged
 Sent when terrain (texture or elevation) has been changed. More...
 
class  CMessageVisibilityChanged
 Sent, at most once per turn, when the visibility of an entity changed. More...
 
class  CMessageObstructionMapShapeChanged
 Sent when ObstructionManager's view of the shape of the world has changed (changing the TILE_OUTOFBOUNDS tiles returned by Rasterise). More...
 
class  CMessageTerritoriesChanged
 Sent when territory assignments have changed. More...
 
class  CMessageRangeUpdate
 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...
 
class  CMessagePathResult
 Sent by CCmpPathfinder after async path requests. More...
 
class  CMessageValueModification
 Sent by aura manager when a value of a certain entity's component is changed. More...
 
class  CMessageTemplateModification
 Sent by aura and tech managers when a value of a certain template's component is changed. More...
 
class  CMessageVisionRangeChanged
 Sent by CCmpVision when an entity's vision range changes. More...
 
class  CMessageVisionSharingChanged
 Sent by CCmpVision when an entity's vision sharing changes. More...
 
class  CMessageMinimapPing
 Sent when an entity pings the minimap. More...
 
class  CMessageCinemaPathEnded
 Cinematics events. More...
 
class  CMessageCinemaQueueEnded
 

Macros

#define DEFAULT_MESSAGE_IMPL(name)
 

Macro Definition Documentation

#define DEFAULT_MESSAGE_IMPL (   name)
Value:
virtual int GetType() const { return MT_##name; } \
virtual const char* GetScriptHandlerName() const { return "On" #name; } \
virtual const char* GetScriptGlobalHandlerName() const { return "OnGlobal" #name; } \
virtual JS::Value ToJSVal(ScriptInterface& scriptInterface) const; \
static CMessage* FromJSVal(ScriptInterface&, JS::HandleValue val);
Config::Value_type Value
Definition: json_spirit_value.h:181
Abstraction around a SpiderMonkey JSContext.
Definition: ScriptInterface.h:71
Definition: Message.h:24