TrinityCore
CreatureGroup Class Reference

#include <CreatureGroups.h>

Public Member Functions

 CreatureGroup (ObjectGuid::LowType leaderSpawnId)
 
 ~CreatureGroup ()
 
CreatureGetLeader () const
 
ObjectGuid::LowType GetLeaderSpawnId () const
 
bool IsEmpty () const
 
bool IsFormed () const
 
bool IsLeader (Creature const *creature) const
 
bool HasMember (Creature *member) const
 
void AddMember (Creature *member)
 
void RemoveMember (Creature *member)
 
void FormationReset (bool dismiss)
 
void LeaderStartedMoving ()
 
void MemberEngagingTarget (Creature *member, Unit *target)
 
bool CanLeaderStartMoving () const
 

Private Attributes

Creature_leader
 
std::unordered_map< Creature *, FormationInfo * > _members
 
ObjectGuid::LowType _leaderSpawnId
 
bool _formed
 
bool _engaging
 

Detailed Description

Definition at line 68 of file CreatureGroups.h.

Constructor & Destructor Documentation

◆ CreatureGroup()

CreatureGroup::CreatureGroup ( ObjectGuid::LowType  leaderSpawnId)
explicit

Definition at line 192 of file CreatureGroups.cpp.

◆ ~CreatureGroup()

CreatureGroup::~CreatureGroup ( )

Definition at line 196 of file CreatureGroups.cpp.

Member Function Documentation

◆ AddMember()

void CreatureGroup::AddMember ( Creature member)

Definition at line 200 of file CreatureGroups.cpp.

+ Here is the call graph for this function:

◆ CanLeaderStartMoving()

bool CreatureGroup::CanLeaderStartMoving ( ) const

Definition at line 295 of file CreatureGroups.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FormationReset()

void CreatureGroup::FormationReset ( bool  dismiss)

Definition at line 262 of file CreatureGroups.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetLeader()

Creature * CreatureGroup::GetLeader ( ) const
inline

Definition at line 83 of file CreatureGroups.h.

+ Here is the caller graph for this function:

◆ GetLeaderSpawnId()

ObjectGuid::LowType CreatureGroup::GetLeaderSpawnId ( ) const
inline

Definition at line 84 of file CreatureGroups.h.

+ Here is the caller graph for this function:

◆ HasMember()

bool CreatureGroup::HasMember ( Creature member) const
inline

Definition at line 89 of file CreatureGroups.h.

◆ IsEmpty()

bool CreatureGroup::IsEmpty ( ) const
inline

Definition at line 85 of file CreatureGroups.h.

+ Here is the caller graph for this function:

◆ IsFormed()

bool CreatureGroup::IsFormed ( ) const
inline

Definition at line 86 of file CreatureGroups.h.

+ Here is the caller graph for this function:

◆ IsLeader()

bool CreatureGroup::IsLeader ( Creature const *  creature) const
inline

Definition at line 87 of file CreatureGroups.h.

+ Here is the caller graph for this function:

◆ LeaderStartedMoving()

void CreatureGroup::LeaderStartedMoving ( )

Definition at line 276 of file CreatureGroups.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ MemberEngagingTarget()

void CreatureGroup::MemberEngagingTarget ( Creature member,
Unit target 
)

Definition at line 226 of file CreatureGroups.cpp.

+ Here is the call graph for this function:

◆ RemoveMember()

void CreatureGroup::RemoveMember ( Creature member)

Definition at line 217 of file CreatureGroups.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ _engaging

bool CreatureGroup::_engaging
private

Definition at line 76 of file CreatureGroups.h.

◆ _formed

bool CreatureGroup::_formed
private

Definition at line 75 of file CreatureGroups.h.

◆ _leader

Creature* CreatureGroup::_leader
private

Definition at line 71 of file CreatureGroups.h.

◆ _leaderSpawnId

ObjectGuid::LowType CreatureGroup::_leaderSpawnId
private

Definition at line 74 of file CreatureGroups.h.

◆ _members

std::unordered_map<Creature*, FormationInfo*> CreatureGroup::_members
private

Definition at line 72 of file CreatureGroups.h.


The documentation for this class was generated from the following files: