![]() |
TrinityCore
|
#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 |
Definition at line 49 of file CreatureGroups.h.
|
private |
Definition at line 31 of file CreatureGroups.cpp.
|
private |
Definition at line 35 of file CreatureGroups.cpp.
| void FormationMgr::AddCreatureToGroup | ( | ObjectGuid::LowType | leaderSpawnId, |
| Creature * | creature | ||
| ) |
Definition at line 45 of file CreatureGroups.cpp.
References Map::CreatureGroupHolder, Map::GetCreatureBySpawnIdStore(), Object::GetGUID(), WorldObject::GetInstanceId(), WorldObject::GetMap(), Creature::GetSpawnId(), Trinity::Containers::MapEqualRange(), TC_LOG_DEBUG, and ObjectGuid::ToString().
| void FormationMgr::AddFormationMember | ( | ObjectGuid::LowType | spawnId, |
| float | followAng, | ||
| float | followDist, | ||
| ObjectGuid::LowType | leaderSpawnId, | ||
| uint32 | groupAI | ||
| ) |
Definition at line 179 of file CreatureGroups.cpp.
References _creatureGroupMap, FormationInfo::FollowAngle, FormationInfo::FollowDist, FormationInfo::GroupAI, FormationInfo::LeaderSpawnId, and FormationInfo::LeaderWaypointIDs.
| FormationInfo * FormationMgr::GetFormationInfo | ( | ObjectGuid::LowType | spawnId | ) |
Definition at line 174 of file CreatureGroups.cpp.
References _creatureGroupMap, and Trinity::Containers::MapGetValuePtr().
|
static |
| void FormationMgr::LoadCreatureFormations | ( | ) |
Definition at line 96 of file CreatureGroups.cpp.
References _creatureGroupMap, FormationInfo::FollowAngle, FormationInfo::FollowDist, Field::GetFloat(), getMSTime(), GetMSTimeDiffToNow(), Field::GetUInt16(), Field::GetUInt32(), FormationInfo::GroupAI, FormationInfo::LeaderSpawnId, FormationInfo::LeaderWaypointIDs, M_PI, sObjectMgr, TC_LOG_ERROR, TC_LOG_INFO, and WorldDatabase.
| void FormationMgr::RemoveCreatureFromGroup | ( | CreatureGroup * | group, |
| Creature * | creature | ||
| ) |
Definition at line 79 of file CreatureGroups.cpp.
References ASSERT, Map::CreatureGroupHolder, Map::GetId(), WorldObject::GetInstanceId(), CreatureGroup::GetLeaderSpawnId(), WorldObject::GetMap(), Creature::GetSpawnId(), CreatureGroup::IsEmpty(), CreatureGroup::RemoveMember(), and TC_LOG_DEBUG.
|
private |
Definition at line 55 of file CreatureGroups.h.
Referenced by AddFormationMember(), GetFormationInfo(), and LoadCreatureFormations().