18 #ifndef INCLUDED_ICMPOBSTRUCTION 19 #define INCLUDED_ICMPOBSTRUCTION 122 #endif // INCLUDED_ICMPOBSTRUCTION Definition: IComponent.h:33
A simple fixed-point number class.
Definition: Fixed.h:115
virtual void ResolveFoundationCollisions() const =0
Detects collisions between foundation-blocking entities and tries to fix them by setting control grou...
virtual bool GetBlockMovementFlag() const =0
virtual void SetControlGroup2(entity_id_t group2)=0
static void out(const wchar_t *fmt,...)
Definition: wdbg_sym.cpp:419
EFoundationCheck
Definition: ICmpObstruction.h:33
Definition: ICmpObstruction.h:36
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...
Definition: ICmpObstruction.h:29
virtual void SetMovingFlag(bool enabled)=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...
Definition: ICmpObstruction.cpp:26
virtual ICmpObstructionManager::tag_t GetObstruction() const =0
virtual entity_pos_t GetUnitRadius() const =0
#define DECLARE_INTERFACE_TYPE(iname)
Definition: Interface.h:23
virtual bool GetPreviousObstructionSquare(ICmpObstructionManager::ObstructionSquare &out) const =0
Same as the method above, but returns an obstruction shape for the previous turn. ...
virtual void SetActive(bool active)=0
Definition: ICmpObstruction.h:37
Definition: ICmpObstruction.h:38
Definition: ICmpObstruction.h:34
virtual entity_id_t GetControlGroup2() const =0
virtual entity_id_t GetControlGroup() const =0
See SetControlGroup.
virtual bool GetObstructionSquare(ICmpObstructionManager::ObstructionSquare &out) const =0
Gets the square corresponding to this obstruction shape.
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 foun...
virtual bool CheckDuplicateFoundation() const =0
Test whether this entity is colliding with any obstructions that share its control groups and block t...
Definition: ICmpObstruction.h:35
virtual void SetUnitClearance(const entity_pos_t &clearance)=0
virtual entity_pos_t GetSize() const =0
virtual void SetControlGroup(entity_id_t group)=0
Change the control group that the entity belongs to.
u32 entity_id_t
Entity ID type.
Definition: Entity.h:23
virtual bool IsControlPersistent() const =0
Standard representation for all types of shapes, for use with geometry processing code...
Definition: ICmpObstructionManager.h:224
virtual std::vector< entity_id_t > GetUnitCollisions() const =0
Returns a list of units that are colliding with this entity,.
External identifiers for shapes.
Definition: ICmpObstructionManager.h:60