![]() |
Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
|


Public Member Functions | |
| int | GetComponentTypeId () const override |
| void | Init (const CParamNode ¶mNode) override |
| void | Deinit () override |
| template<typename S > | |
| void | SerializeCommon (S &serialize) |
| void | Serialize (ISerializer &serialize) override |
| void | Deserialize (const CParamNode ¶mNode, IDeserializer &deserialize) override |
| void | HandleMessage (const CMessage &msg, bool global) override |
| bool | GetRenderData (u8 &r, u8 &g, u8 &b, entity_pos_t &x, entity_pos_t &z) const override |
| Gets the data for rendering this entity on the minimap. More... | |
| bool | CheckPing (double currentTime, double pingDuration) override |
| Returns true if the entity is actively pinging based on the current time. More... | |
| void | UpdateColor () override |
| Updates the entity's minimap color to match the player color. More... | |
| bool | HasIcon () override |
| Returns true if a minimap should have icon of this entity. More... | |
| std::string | GetIconPath () override |
| Returns a path to icon of this entity. More... | |
| float | GetIconSize () override |
| virtual bool | GetRenderData (u8 &r, u8 &g, u8 &b, entity_pos_t &x, entity_pos_t &z) const =0 |
| Gets the data for rendering this entity on the minimap. More... | |
| virtual bool | CheckPing (double currentTime, double pingDuration)=0 |
| Returns true if the entity is actively pinging based on the current time. More... | |
| virtual void | UpdateColor ()=0 |
| Updates the entity's minimap color to match the player color. More... | |
| virtual bool | HasIcon ()=0 |
| Returns true if a minimap should have icon of this entity. More... | |
| virtual std::string | GetIconPath ()=0 |
| Returns a path to icon of this entity. More... | |
| virtual float | GetIconSize ()=0 |
Public Member Functions inherited from IComponent | |
| virtual | ~IComponent () |
| virtual void | Init (const CParamNode ¶mNode)=0 |
| virtual void | Deinit ()=0 |
| virtual void | HandleMessage (const CMessage &msg, bool global) |
| CEntityHandle | GetEntityHandle () const |
| void | SetEntityHandle (CEntityHandle ent) |
| entity_id_t | GetEntityId () const |
| CEntityHandle | GetSystemEntity () const |
| const CSimContext & | GetSimContext () const |
| void | SetSimContext (const CSimContext &context) |
| virtual void | Serialize (ISerializer &serialize)=0 |
| virtual void | Deserialize (const CParamNode ¶mNode, IDeserializer &deserialize)=0 |
| virtual bool | NewJSObject (const ScriptInterface &scriptInterface, JS::MutableHandleObject out) const |
| Returns false by default, indicating that a scripted wrapper of this IComponent is not supported. More... | |
| virtual JS::Value | GetJSInstance () const |
| virtual int | GetComponentTypeId () const =0 |
Static Public Member Functions | |
| static void | ClassInit (CComponentManager &componentManager) |
| static IComponent * | Allocate (const ScriptInterface &, JS::HandleValue) |
| static void | Deallocate (IComponent *cmp) |
| static std::string | GetSchema () |
Static Public Member Functions inherited from IComponent | |
| static std::string | GetSchema () |
| static void | RegisterComponentType (CComponentManager &mgr, EInterfaceId iid, EComponentTypeId cid, AllocFunc alloc, DeallocFunc dealloc, const char *name, const std::string &schema) |
| static void | RegisterComponentTypeScriptWrapper (CComponentManager &mgr, EInterfaceId iid, EComponentTypeId cid, AllocFunc alloc, DeallocFunc dealloc, const char *name, const std::string &schema) |
| static u8 | GetSerializationVersion () |
Public Attributes | |
| bool | m_UsePlayerColor |
| u8 | m_R |
| u8 | m_G |
| u8 | m_B |
| bool | m_Active |
| entity_pos_t | m_X |
| entity_pos_t | m_Z |
| double | m_PingEndTime |
| bool | m_IsPinging |
| bool | m_HasIcon = false |
| std::string | m_IconPath |
| float | m_IconSize = 16.0f |
Additional Inherited Members | |
Public Types inherited from IComponent | |
| using | AllocFunc = IComponent *(*)(const ScriptInterface &scriptInterface, JS::HandleValue ctor) |
| using | DeallocFunc = void(*)(IComponent *) |
|
inlinestatic |
|
inlineoverridevirtual |
Returns true if the entity is actively pinging based on the current time.
Implements ICmpMinimap.
|
inlinestatic |
|
inlinestatic |
|
inlineoverridevirtual |
Implements IComponent.
|
inlineoverridevirtual |
Implements IComponent.
|
inlineoverridevirtual |
Implements IComponent.
|
inlineoverridevirtual |
Returns a path to icon of this entity.
Implements ICmpMinimap.
|
inlineoverridevirtual |
Implements ICmpMinimap.
|
inlineoverridevirtual |
Gets the data for rendering this entity on the minimap.
If it should not be drawn, returns false; otherwise the arguments are set to the color and world position.
Implements ICmpMinimap.
|
inlinestatic |
|
inlineoverridevirtual |
Reimplemented from IComponent.
|
inlineoverridevirtual |
Returns true if a minimap should have icon of this entity.
Implements ICmpMinimap.
|
inlineoverridevirtual |
Implements IComponent.
|
inlineoverridevirtual |
Implements IComponent.
|
inline |
|
inlineoverridevirtual |
Updates the entity's minimap color to match the player color.
Implements ICmpMinimap.
| bool CCmpMinimap::m_Active |
| u8 CCmpMinimap::m_B |
| u8 CCmpMinimap::m_G |
| bool CCmpMinimap::m_HasIcon = false |
| std::string CCmpMinimap::m_IconPath |
| float CCmpMinimap::m_IconSize = 16.0f |
| bool CCmpMinimap::m_IsPinging |
| double CCmpMinimap::m_PingEndTime |
| u8 CCmpMinimap::m_R |
| bool CCmpMinimap::m_UsePlayerColor |
| entity_pos_t CCmpMinimap::m_X |
| entity_pos_t CCmpMinimap::m_Z |