TrinityCore
Loading...
Searching...
No Matches
FormationMgr Class Reference

#include <CreatureGroups.h>

Public Member Functions

 FormationMgr (FormationMgr const &)=delete
 
 FormationMgr (FormationMgr &&)=delete
 
FormationMgroperator= (FormationMgr const &)=delete
 
FormationMgroperator= (FormationMgr &&)=delete
 
void LoadCreatureFormations ()
 
FormationInfoGetFormationInfo (ObjectGuid::LowType spawnId)
 
void AddFormationMember (ObjectGuid::LowType spawnId, float followAng, float followDist, ObjectGuid::LowType leaderSpawnId, uint32 groupAI)
 

Static Public Member Functions

static FormationMgrinstance ()
 
static void AddCreatureToGroup (ObjectGuid::LowType leaderSpawnId, Creature *creature)
 
static void RemoveCreatureFromGroup (CreatureGroup *group, Creature *member)
 

Private Member Functions

 FormationMgr ()
 
 ~FormationMgr ()
 

Private Attributes

std::unordered_map< ObjectGuid::LowType, FormationInfo_creatureGroupMap
 

Detailed Description

Definition at line 48 of file CreatureGroups.h.

Constructor & Destructor Documentation

◆ FormationMgr() [1/3]

FormationMgr::FormationMgr ( )
privatedefault

◆ ~FormationMgr()

FormationMgr::~FormationMgr ( )
privatedefault

◆ FormationMgr() [2/3]

FormationMgr::FormationMgr ( FormationMgr const &  )
delete

◆ FormationMgr() [3/3]

FormationMgr::FormationMgr ( FormationMgr &&  )
delete

Member Function Documentation

◆ AddCreatureToGroup()

void FormationMgr::AddCreatureToGroup ( ObjectGuid::LowType  leaderSpawnId,
Creature creature 
)
static

Definition at line 39 of file CreatureGroups.cpp.

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

◆ AddFormationMember()

void FormationMgr::AddFormationMember ( ObjectGuid::LowType  spawnId,
float  followAng,
float  followDist,
ObjectGuid::LowType  leaderSpawnId,
uint32  groupAI 
)

Definition at line 182 of file CreatureGroups.cpp.

◆ GetFormationInfo()

FormationInfo * FormationMgr::GetFormationInfo ( ObjectGuid::LowType  spawnId)

Definition at line 177 of file CreatureGroups.cpp.

+ Here is the call graph for this function:

◆ instance()

FormationMgr * FormationMgr::instance ( )
static

Definition at line 33 of file CreatureGroups.cpp.

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

◆ LoadCreatureFormations()

void FormationMgr::LoadCreatureFormations ( )

Definition at line 98 of file CreatureGroups.cpp.

+ Here is the call graph for this function:

◆ operator=() [1/2]

FormationMgr & FormationMgr::operator= ( FormationMgr &&  )
delete

◆ operator=() [2/2]

FormationMgr & FormationMgr::operator= ( FormationMgr const &  )
delete

◆ RemoveCreatureFromGroup()

void FormationMgr::RemoveCreatureFromGroup ( CreatureGroup group,
Creature member 
)
static

Definition at line 71 of file CreatureGroups.cpp.

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

Member Data Documentation

◆ _creatureGroupMap

std::unordered_map<ObjectGuid::LowType , FormationInfo> FormationMgr::_creatureGroupMap
private

Definition at line 54 of file CreatureGroups.h.


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