Pyrogenesis
trunk
|
Public Member Functions | |
virtual int | GetComponentTypeId () const |
virtual void | Init (const CParamNode ¶mNode) |
virtual void | Deinit () |
virtual void | Serialize (ISerializer &serialize) |
virtual void | Deserialize (const CParamNode ¶mNode, IDeserializer &deserialize) |
virtual void | GetShape (EShape &shape, entity_pos_t &size0, entity_pos_t &size1, entity_pos_t &height) const |
Return the shape of this footprint. More... | |
virtual CFixedVector3D | PickSpawnPoint (entity_id_t spawned) const |
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... | |
virtual CFixedVector3D | PickSpawnPointBothPass (entity_id_t spawned) const |
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... | |
Public Member Functions inherited from ICmpFootprint | |
JS::Value | GetShape_wrapper () const |
GetShape wrapper for script calls. More... | |
Public Member Functions inherited from IComponent | |
virtual | ~IComponent () |
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 bool | NewJSObject (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 |
Static Public Member Functions | |
static void | ClassInit (CComponentManager &componentManager) |
static IComponent * | Allocate (ScriptInterface &, JS::HandleValue) |
static void | Deallocate (IComponent *cmp) |
static std::string | GetSchema () |
Static Public Member Functions inherited from IComponent | |
static std::string | GetSchema () |
static u8 | GetSerializationVersion () |
Public Attributes | |
EShape | m_Shape |
entity_pos_t | m_Size0 |
entity_pos_t | m_Size1 |
entity_pos_t | m_Height |
Additional Inherited Members | |
Public Types inherited from ICmpFootprint | |
enum | EShape { CIRCLE, SQUARE } |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinevirtual |
Implements IComponent.
|
inlinevirtual |
Implements IComponent.
|
inlinevirtual |
Implements IComponent.
|
inlinestatic |
|
inlinevirtual |
Return the shape of this footprint.
Shapes are horizontal circles or squares, extended vertically upwards to make cylinders or boxes.
[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.
|
inlinevirtual |
Implements IComponent.
|
inlinevirtual |
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.
Implements ICmpFootprint.
|
inlinevirtual |
Pick a sensible position to place a newly-spawned entity near this footprint, at the intersection between the footprint passability and the entity one.
Implements ICmpFootprint.
|
inlinevirtual |
Implements IComponent.
entity_pos_t CCmpFootprint::m_Height |
EShape CCmpFootprint::m_Shape |
entity_pos_t CCmpFootprint::m_Size0 |
entity_pos_t CCmpFootprint::m_Size1 |