23#include <unordered_map>
63 void LoadCreatureFormations();
73 std::unordered_map<Creature*, FormationInfo*>
_members;
86 bool IsEmpty()
const {
return _members.empty(); }
93 void FormationReset(
bool dismiss);
95 void LeaderStartedMoving();
96 void MemberEngagingTarget(
Creature* member,
Unit* target);
97 bool CanLeaderStartMoving()
const;
100#define sFormationMgr FormationMgr::instance()
@ FLAG_MEMBERS_ASSIST_MEMBER
@ FLAG_LEADER_ASSISTS_MEMBER
@ FLAG_MEMBERS_ASSIST_LEADER
Creature * GetLeader() const
ObjectGuid::LowType GetLeaderSpawnId() const
bool IsLeader(Creature const *creature) const
std::unordered_map< Creature *, FormationInfo * > _members
ObjectGuid::LowType _leaderSpawnId
bool HasMember(Creature *member) const