|
int | GetComponentTypeId () const override |
|
void | Init (const CParamNode ¶mNode) override |
|
void | Deinit () override |
|
void | Serialize (ISerializer &serialize) override |
|
void | Deserialize (const CParamNode ¶mNode, IDeserializer &deserialize) override |
|
void | GetShape (EShape &shape, entity_pos_t &size0, entity_pos_t &size1, entity_pos_t &height) const override |
| Return the shape of this footprint. More...
|
|
CFixedVector3D | PickSpawnPoint (entity_id_t spawned) const override |
| Pick a sensible position to place a newly-spawned entity near this footprint, such that it won't be in an invalid (obstructed) location regardless of the spawned unit's orientation. More...
|
|
CFixedVector3D | PickSpawnPointBothPass (entity_id_t spawned) const override |
| Pick a sensible position to place a newly-spawned entity near this footprint, at the intersection between the footprint passability and the entity one. More...
|
|
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 void | ClassInit (CComponentManager &componentManager) |
|
static IComponent * | Allocate (const ScriptInterface &, JS::HandleValue) |
|
static void | Deallocate (IComponent *cmp) |
|
static std::string | GetSchema () |
|
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 () |
|
◆ Allocate()
◆ ClassInit()
◆ Deallocate()
static void CCmpFootprint::Deallocate |
( |
IComponent * |
cmp | ) |
|
|
inlinestatic |
◆ Deinit()
void CCmpFootprint::Deinit |
( |
| ) |
|
|
inlineoverridevirtual |
◆ Deserialize()
◆ GetComponentTypeId()
int CCmpFootprint::GetComponentTypeId |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ GetSchema()
static std::string CCmpFootprint::GetSchema |
( |
| ) |
|
|
inlinestatic |
◆ GetShape()
Return the shape of this footprint.
Shapes are horizontal circles or squares, extended vertically upwards to make cylinders or boxes.
- Parameters
-
[out] | shape | either CIRCLE or SQUARE |
[out] | size0 | if CIRCLE then radius, else width (size in X axis) |
[out] | size1 | if CIRCLE then radius, else depth (size in Z axis) |
[out] | height | size in Y axis |
Implements ICmpFootprint.
◆ Init()
void CCmpFootprint::Init |
( |
const CParamNode & |
paramNode | ) |
|
|
inlineoverridevirtual |
◆ PickSpawnPoint()
Pick a sensible position to place a newly-spawned entity near this footprint, such that it won't be in an invalid (obstructed) location regardless of the spawned unit's orientation.
- Returns
- the X and Z coordinates of the spawn point, with Y = 0; or the special value (-1, -1, -1) if there's no space
Implements ICmpFootprint.
◆ PickSpawnPointBothPass()
Pick a sensible position to place a newly-spawned entity near this footprint, at the intersection between the footprint passability and the entity one.
- Returns
- the X and Z coordinates of the spawn point, with Y = 0; or the special value (-1, -1, -1) if there's no space
Implements ICmpFootprint.
◆ Serialize()
void CCmpFootprint::Serialize |
( |
ISerializer & |
serialize | ) |
|
|
inlineoverridevirtual |
◆ m_Height
◆ m_MaxSpawnDistance
◆ m_Shape
◆ m_Size0
◆ m_Size1
The documentation for this class was generated from the following file:
- /home/docker/jenkins/workspace/technical-docs/source/simulation2/components/CCmpFootprint.cpp