18 #ifndef INCLUDED_MESSAGETYPES
19 #define INCLUDED_MESSAGETYPES
30 #define DEFAULT_MESSAGE_IMPL(name) \
31 virtual int GetType() const { return MT_##name; } \
32 virtual const char* GetScriptHandlerName() const { return "On" #name; } \
33 virtual const char* GetScriptGlobalHandlerName() const { return "OnGlobal" #name; } \
34 virtual jsval ToJSVal(ScriptInterface& scriptInterface) const; \
35 static CMessage* FromJSVal(ScriptInterface&, jsval val);
230 entity(entity), from(from),
to(
to)
251 entity(entity), inWorld(inWorld), x(x), z(z),
a(
a)
288 i0(i0), j0(j0), i1(i1),
j1(
j1)
335 : tag(tag), added(added), removed(removed)
416 #endif // INCLUDED_MESSAGETYPES
A simple fixed-point number class.
Generic per-turn update message, for things that don't care much about ordering.
This is sent immediately after a new entity's components have all been created and initialised...
CMessageRangeUpdate(u32 tag, const std::vector< entity_id_t > &added, const std::vector< entity_id_t > &removed)
T Interpolate(const T &a, const T &b, float l)
Sent by CCmpVision when an entity's vision range changes.
static int ProgressiveLoad()
std::vector< entity_id_t > removed
Add renderable objects to the scene collector.
Sent by CCmpUnitMotion during Update, whenever the motion status has changed since the previous updat...
Sent when terrain (texture or elevation) has been changed.
Sent by CCmpRangeManager at most once per turn, when an active range query has had matching units ent...
Update phase for non-formation-controller unit movement.
float deltaSimTime
Elapsed simulation time since previous interpolate, in seconds.
int32_t player_id_t
valid player IDs are non-negative (see ICmpOwnership)
float deltaRealTime
Elapsed real time since previous interpolate, in seconds.
This interface accepts renderable objects.
Final update phase, after all other updates.
This is sent immediately before a destroyed entity is flushed and really destroyed.
Sent when an entity pings the minimap.
float offset
Range [0, 1] (inclusive); fractional time of current frame between previous/next simulation turns...
CMessageRangeUpdate(u32 tag)
CMessageRangeUpdate(const CMessageRangeUpdate &other)
Handle progressive loading of resources.
Sent by CCmpPathfinder after async path requests.
SceneCollector & collector
Sent by technology manager when a technology is researched that modifies a component.
#define DEFAULT_MESSAGE_IMPL(name)
CMessageRangeUpdate & operator=(const CMessageRangeUpdate &other)
ICmpPathfinder::Path path
Sent when territory assignments have changed.
Prepare for rendering a new frame (set up model positions etc).
u32 entity_id_t
Entity ID type.
std::vector< entity_id_t > added