23#include <unordered_map>
62 void LoadCreatureFormations();
72 std::unordered_map<Creature*, FormationInfo*>
_members;
85 bool IsEmpty()
const {
return _members.empty(); }
92 void FormationReset(
bool dismiss);
94 void LeaderStartedMoving();
95 void MemberEngagingTarget(
Creature* member,
Unit* target);
96 bool CanLeaderStartMoving()
const;
99#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