18 #ifndef INCLUDED_ICMPUNITMOTION 19 #define INCLUDED_ICMPUNITMOTION 142 #endif // INCLUDED_ICMPUNITMOTION Definition: IComponent.h:33
A simple fixed-point number class.
Definition: Fixed.h:115
virtual void StopMoving()=0
Stop moving immediately.
u16 pass_class_t
Definition: Pathfinding.h:29
virtual bool MoveToTargetRange(entity_id_t target, entity_pos_t minRange, entity_pos_t maxRange)=0
Attempt to walk into range of a given target entity, or as close as possible.
virtual fixed GetWalkSpeed() const =0
Get the default speed that this unit will have when walking, in metres per second.
virtual bool IsInPointRange(entity_pos_t x, entity_pos_t z, entity_pos_t minRange, entity_pos_t maxRange) const =0
Determine wether the givven point is within the given range, using the same measurement as MoveToPoin...
virtual bool IsMoving() const =0
Get whether the unit is moving.
virtual void SetFacePointAfterMove(bool facePointAfterMove)=0
Set whether the unit will turn to face the target point after finishing moving.
virtual bool MoveToPointRange(entity_pos_t x, entity_pos_t z, entity_pos_t minRange, entity_pos_t maxRange)=0
Attempt to walk into range of a to a given point, or as close as possible.
virtual pass_class_t GetPassabilityClass() const =0
Get the unit's passability class.
virtual fixed GetRunSpeed() const =0
Get the default speed that this unit will have when running, in metres per second.
Motion interface for entities with complex movement capabilities.
Definition: ICmpUnitMotion.h:34
virtual void MoveToFormationOffset(entity_id_t target, entity_pos_t x, entity_pos_t z)=0
Join a formation, and move towards a given offset relative to the formation controller entity...
virtual std::string GetPassabilityClassName() const =0
Get the passability class name (as defined in pathfinder.xml)
virtual void SetSpeed(fixed speed)=0
Set the current movement speed.
#define DECLARE_INTERFACE_TYPE(iname)
Definition: Interface.h:23
virtual entity_pos_t GetUnitClearance() const =0
Get the unit clearance (used by the Obstruction component)
virtual void SetDebugOverlay(bool enabled)=0
Toggle the rendering of debug info.
virtual void FaceTowardsPoint(entity_pos_t x, entity_pos_t z)=0
Turn to look towards the given point.
u32 entity_id_t
Entity ID type.
Definition: Entity.h:23
virtual bool IsInTargetRange(entity_id_t target, entity_pos_t minRange, entity_pos_t maxRange) const =0
Determine whether the target is within the given range, using the same measurement as MoveToTargetRan...
virtual fixed GetCurrentSpeed() const =0
Get the current movement speed.