![]() |
TrinityCore
|
#include <CreatureGroups.h>
Public Member Functions | |
| FormationMgr (FormationMgr const &)=delete | |
| FormationMgr (FormationMgr &&)=delete | |
| FormationMgr & | operator= (FormationMgr const &)=delete |
| FormationMgr & | operator= (FormationMgr &&)=delete |
| 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 () |
| 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 |
Definition at line 48 of file CreatureGroups.h.
|
privatedefault |
|
privatedefault |
|
delete |
|
delete |
|
static |
Definition at line 39 of file CreatureGroups.cpp.
References Map::CreatureGroupHolder, Map::GetCreatureBySpawnIdStore(), BaseEntity::GetGUID(), WorldObject::GetInstanceId(), WorldObject::GetMap(), Creature::GetSpawnId(), Trinity::Containers::MapEqualRange(), and TC_LOG_DEBUG.
Referenced by Creature::SearchFormation().
| void FormationMgr::AddFormationMember | ( | ObjectGuid::LowType | spawnId, |
| float | followAng, | ||
| float | followDist, | ||
| ObjectGuid::LowType | leaderSpawnId, | ||
| uint32 | groupAI | ||
| ) |
Definition at line 182 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 177 of file CreatureGroups.cpp.
References _creatureGroupMap, and Trinity::Containers::MapGetValuePtr().
|
static |
| void FormationMgr::LoadCreatureFormations | ( | ) |
Definition at line 98 of file CreatureGroups.cpp.
References _creatureGroupMap, FormationInfo::FollowAngle, FormationInfo::FollowDist, Field::GetFloat(), getMSTime(), GetMSTimeDiffToNow(), Field::GetUInt16(), Field::GetUInt32(), Field::GetUInt64(), FormationInfo::GroupAI, FormationInfo::LeaderSpawnId, FormationInfo::LeaderWaypointIDs, M_PI, sObjectMgr, TC_LOG_ERROR, TC_LOG_INFO, and WorldDatabase.
|
delete |
|
delete |
|
static |
Definition at line 71 of file CreatureGroups.cpp.
References ASSERT, Map::CreatureGroupHolder, Map::GetId(), Map::GetInstanceId(), CreatureGroup::GetLeaderSpawnId(), WorldObject::GetMap(), Creature::GetSpawnId(), WorldObject::GetZoneScript(), CreatureGroup::HasAliveMembers(), Unit::IsAlive(), CreatureGroup::IsEmpty(), CreatureGroup::RemoveMember(), TC_LOG_DEBUG, and UI64FMTD.
Referenced by Unit::_EnterVehicle(), npc_cameron::MoveTheChildren(), and Creature::RemoveFromWorld().
|
private |
Definition at line 54 of file CreatureGroups.h.
Referenced by AddFormationMember(), GetFormationInfo(), and LoadCreatureFormations().