18 #ifndef INCLUDED_ICMPOBSTRUCTION
19 #define INCLUDED_ICMPOBSTRUCTION
82 virtual std::vector<entity_id_t>
GetEntityCollisions(
bool checkStructures,
bool checkUnits) = 0;
114 #endif // INCLUDED_ICMPOBSTRUCTION
A simple fixed-point number class.
virtual void SetControlGroup2(entity_id_t group2)=0
static void out(const wchar_t *fmt,...)
virtual bool GetObstructionSquare(ICmpObstructionManager::ObstructionSquare &out)=0
Gets the square corresponding to this obstruction shape.
virtual void ResolveFoundationCollisions()=0
Detects collisions between foundation-blocking entities and tries to fix them by setting control grou...
virtual bool IsControlPersistent()=0
virtual void SetDisableBlockMovementPathfinding(bool movementDisabled, bool pathfindingDisabled, int32_t shape)=0
Flags an entity as obstructing movement for other units, and handles the processing of collision quer...
virtual void SetMovingFlag(bool enabled)=0
virtual entity_id_t GetControlGroup2()=0
#define DECLARE_INTERFACE_TYPE(iname)
virtual std::vector< entity_id_t > GetEntityCollisions(bool checkStructures, bool checkUnits)=0
Returns a list of entities that are colliding with this entity, filtered depending on type of entitie...
virtual void SetActive(bool active)=0
virtual bool CheckDuplicateFoundation()=0
Test whether this entity is colliding with any obstructions that share its control groups and block t...
virtual entity_pos_t GetUnitRadius()=0
virtual bool GetBlockMovementFlag()=0
virtual EFoundationCheck CheckFoundation(std::string className)=0
Test whether this entity is colliding with any obstruction that are set to block the creation of foun...
virtual entity_id_t GetControlGroup()=0
See SetControlGroup.
virtual void SetControlGroup(entity_id_t group)=0
Change the control group that the entity belongs to.
u32 entity_id_t
Entity ID type.
Standard representation for all types of shapes, for use with geometry processing code...
virtual std::string CheckFoundation_wrapper(std::string className, bool onlyCenterPoint)
CheckFoundation wrapper for script calls, to return friendly strings instead of an EFoundationCheck...
virtual ICmpObstructionManager::tag_t GetObstruction()=0
External identifiers for shapes.