Flags an entity as obstructing movement for other units, and handles the processing of collision queries.
More...
|
virtual ICmpObstructionManager::tag_t | GetObstruction () const =0 |
|
virtual bool | GetObstructionSquare (ICmpObstructionManager::ObstructionSquare &out) const =0 |
| Gets the square corresponding to this obstruction shape. More...
|
|
virtual bool | GetPreviousObstructionSquare (ICmpObstructionManager::ObstructionSquare &out) const =0 |
| Same as the method above, but returns an obstruction shape for the previous turn. More...
|
|
virtual entity_pos_t | GetSize () const =0 |
|
virtual CFixedVector2D | GetStaticSize () const =0 |
|
virtual EObstructionType | GetObstructionType () const =0 |
|
virtual void | SetUnitClearance (const entity_pos_t &clearance)=0 |
|
virtual bool | IsControlPersistent () const =0 |
|
virtual bool | CheckShorePlacement () const =0 |
| Test whether the front of the obstruction square is in the water and the back is on the shore. More...
|
|
virtual EFoundationCheck | CheckFoundation (const std::string &className) const =0 |
| Test whether this entity is colliding with any obstruction that are set to block the creation of foundations. More...
|
|
virtual EFoundationCheck | CheckFoundation (const std::string &className, bool onlyCenterPoint) const =0 |
|
virtual std::string | CheckFoundation_wrapper (const std::string &className, bool onlyCenterPoint) const |
| CheckFoundation wrapper for script calls, to return friendly strings instead of an EFoundationCheck. More...
|
|
virtual bool | CheckDuplicateFoundation () const =0 |
| Test whether this entity is colliding with any obstructions that share its control groups and block the creation of foundations. More...
|
|
virtual std::vector< entity_id_t > | GetEntitiesByFlags (ICmpObstructionManager::flags_t flags) const =0 |
| Returns a list of entities that have an obstruction matching the given flag and intersect the current obstruction. More...
|
|
virtual std::vector< entity_id_t > | GetEntitiesBlockingMovement () const =0 |
| Returns a list of entities that are blocking movement. More...
|
|
virtual std::vector< entity_id_t > | GetEntitiesBlockingConstruction () const =0 |
| Returns a list of entities that are blocking construction of a foundation. More...
|
|
virtual std::vector< entity_id_t > | GetEntitiesDeletedUponConstruction () const =0 |
| Returns a list of entities that shall be deleted when a construction on this obstruction starts, for example sheep carcasses. More...
|
|
virtual void | ResolveFoundationCollisions () const =0 |
| Detects collisions between foundation-blocking entities and tries to fix them by setting control groups, if appropriate. More...
|
|
virtual void | SetActive (bool active)=0 |
|
virtual void | SetMovingFlag (bool enabled)=0 |
|
virtual void | SetDisableBlockMovementPathfinding (bool movementDisabled, bool pathfindingDisabled, int32_t shape)=0 |
|
virtual bool | GetBlockMovementFlag (bool templateOnly) const =0 |
|
virtual void | SetControlGroup (entity_id_t group)=0 |
| Change the control group that the entity belongs to. More...
|
|
virtual entity_id_t | GetControlGroup () const =0 |
| See SetControlGroup. More...
|
|
virtual void | SetControlGroup2 (entity_id_t group2)=0 |
|
virtual entity_id_t | GetControlGroup2 () const =0 |
|
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 |
|
Flags an entity as obstructing movement for other units, and handles the processing of collision queries.