struct IAIGroup { enum eAvPositionMode { AVMODE_ANY, AVMODE_PROPERTIES, AVMODE_CLASS }; };
IAIGroup.h
enum eAvPositionMode { AVMODE_ANY, AVMODE_PROPERTIES, AVMODE_CLASS };
IAIGroup.h
virtual ~IAIGroup();
virtual IAIObject* GetAttentionTarget(bool bHostileOnly, bool bLiveOnly) const = 0;
virtual Vec3 GetAveragePosition(eAvPositionMode mode = AVMODE_ANY, uint32 unitClass = UNIT_ALL) const = 0;
virtual int GetGroupCount(int flags) = 0;
Returns the number of units in the group, see IAISystem::EGroupFlags.
virtual int GetGroupId() = 0;
Returns the ID of the group.
virtual int GetTargetCount(bool bHostileOnly, bool bLiveOnly) const = 0;
Gets the number of attention targets in the group
virtual int GetUnitCount(uint32 unitPropMask = UPR_ALL) const = 0;
virtual bool IsMember(const IAIObject* pAI) const = 0;
Returns true if the given AIObject is in the group
virtual void NotifyReinfDone(const IAIObject* obj, bool isDone) = 0;
triggers reinforcements state
virtual void SetUnitProperties(const IAIObject* obj, uint32 properties) = 0;
Sets specified unit's properties, see EUnitProperties.