TrinityCore
FormationMgr Class Reference

#include <CreatureGroups.h>

Public Member Functions

void AddCreatureToGroup (ObjectGuid::LowType leaderSpawnId, Creature *creature)
 
void RemoveCreatureFromGroup (CreatureGroup *group, Creature *creature)
 
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 ()
 

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()

FormationMgr::FormationMgr ( )
private

Definition at line 31 of file CreatureGroups.cpp.

◆ ~FormationMgr()

FormationMgr::~FormationMgr ( )
private

Definition at line 35 of file CreatureGroups.cpp.

Member Function Documentation

◆ AddCreatureToGroup()

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

Definition at line 45 of file CreatureGroups.cpp.

+ Here is the call graph for this function:

◆ AddFormationMember()

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

Definition at line 179 of file CreatureGroups.cpp.

◆ GetFormationInfo()

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

Definition at line 174 of file CreatureGroups.cpp.

+ Here is the call graph for this function:

◆ instance()

FormationMgr * FormationMgr::instance ( )
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:

◆ LoadCreatureFormations()

void FormationMgr::LoadCreatureFormations ( )

Definition at line 96 of file CreatureGroups.cpp.

+ Here is the call graph for this function:

◆ RemoveCreatureFromGroup()

void FormationMgr::RemoveCreatureFromGroup ( CreatureGroup group,
Creature creature 
)

Definition at line 79 of file CreatureGroups.cpp.

+ Here is the call 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: