IAIGroup

C++
struct IAIGroup {
  enum eAvPositionMode {
    AVMODE_ANY,
    AVMODE_PROPERTIES,
    AVMODE_CLASS
  };
};
File

IAIGroup.h

IAIGroup::eAvPositionMode Enumeration
C++
enum eAvPositionMode {
  AVMODE_ANY,
  AVMODE_PROPERTIES,
  AVMODE_CLASS
};
File

IAIGroup.h

IAIGroup::~IAIGroup Destructor
C++
virtual ~IAIGroup();
IAIGroup::GetAttentionTarget Method
C++
virtual IAIObject* GetAttentionTarget(bool bHostileOnly, bool bLiveOnly) const = 0;
IAIGroup::GetAveragePosition Method
C++
virtual Vec3 GetAveragePosition(eAvPositionMode mode = AVMODE_ANY, uint32 unitClass = UNIT_ALL) const = 0;
IAIGroup::GetGroupCount Method
C++
virtual int GetGroupCount(int flags) = 0;
Description

Returns the number of units in the group, see IAISystem::EGroupFlags.

IAIGroup::GetGroupId Method
C++
virtual int GetGroupId() = 0;
Description

Returns the ID of the group.

IAIGroup::GetTargetCount Method
C++
virtual int GetTargetCount(bool bHostileOnly, bool bLiveOnly) const = 0;
Description

Gets the number of attention targets in the group

IAIGroup::GetUnitCount Method
C++
virtual int GetUnitCount(uint32 unitPropMask = UPR_ALL) const = 0;
IAIGroup::IsMember Method
C++
virtual bool IsMember(const IAIObject* pAI) const = 0;
Description

Returns true if the given AIObject is in the group

IAIGroup::NotifyReinfDone Method
C++
virtual void NotifyReinfDone(const IAIObject* obj, bool isDone) = 0;
Description

triggers reinforcements state

IAIGroup::SetUnitProperties Method
C++
virtual void SetUnitProperties(const IAIObject* obj, uint32 properties) = 0;
Description

Sets specified unit's properties, see EUnitProperties.