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

#include <CreatureGroups.h>

Public Member Functions

void AddCreatureToGroup (ObjectGuid::LowType leaderSpawnId, Creature *creature)
 
void RemoveCreatureFromGroup (CreatureGroup *group, Creature *creature)
 
void LoadCreatureFormations ()
 
FormationInfo * GetFormationInfo (ObjectGuid::LowType spawnId)
 
void AddFormationMember (ObjectGuid::LowType spawnId, float followAng, float followDist, ObjectGuid::LowType leaderSpawnId, uint32 groupAI)
 

Static Public Member Functions

static FormationMgr * instance ()
 

Private Member Functions

 FormationMgr ()
 
 ~FormationMgr ()
 

Private Attributes

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

Detailed Description

Definition at line 49 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()

◆ AddFormationMember()

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

◆ GetFormationInfo()

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

Definition at line 174 of file CreatureGroups.cpp.

References _creatureGroupMap, and Trinity::Containers::MapGetValuePtr().

◆ instance()

FormationMgr * FormationMgr::instance ( )
static

Definition at line 39 of file CreatureGroups.cpp.

References instance().

Referenced by instance().

◆ LoadCreatureFormations()

◆ RemoveCreatureFromGroup()

Member Data Documentation

◆ _creatureGroupMap

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

Definition at line 55 of file CreatureGroups.h.

Referenced by AddFormationMember(), GetFormationInfo(), and LoadCreatureFormations().


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