OregonCore  revision fb2a440-git
Your Favourite TBC server
CreatureGroups.h File Reference
#include "Common.h"
#include <ace/Basic_Types.h>
#include <ace/Singleton.h>
#include <ace/Thread_Mutex.h>
#include <unordered_map>
#include <map>

Go to the source code of this file.

Classes

struct  FormationInfo
 
class  FormationMgr
 
class  CreatureGroup
 

Macros

#define sFormationMgr   Oregon::Singleton<FormationMgr>::Instance()
 

Typedefs

typedef std::unordered_map< uint32, FormationInfo * > CreatureGroupInfoType
 

Enumerations

enum  GroupAIFlags {
  FLAG_AGGRO_NONE = 0, FLAG_MEMBERS_ASSIST_LEADER = 0x00000001, FLAG_LEADER_ASSISTS_MEMBER = 0x00000002, FLAG_MEMBERS_ASSIST_MEMBER = (FLAG_MEMBERS_ASSIST_LEADER | FLAG_LEADER_ASSISTS_MEMBER),
  FLAG_IDLE_IN_FORMATION = 0x00000004
}
 

Macro Definition Documentation

Typedef Documentation

typedef std::unordered_map<uint32, FormationInfo*> CreatureGroupInfoType

Definition at line 50 of file CreatureGroups.h.

Enumeration Type Documentation

Enumerator
FLAG_AGGRO_NONE 
FLAG_MEMBERS_ASSIST_LEADER 
FLAG_LEADER_ASSISTS_MEMBER 
FLAG_MEMBERS_ASSIST_MEMBER 
FLAG_IDLE_IN_FORMATION 

Definition at line 28 of file CreatureGroups.h.

29 {
30  FLAG_AGGRO_NONE = 0, // No creature group behavior
31  FLAG_MEMBERS_ASSIST_LEADER = 0x00000001, // The member aggroes if the leader aggroes
32  FLAG_LEADER_ASSISTS_MEMBER = 0x00000002, // The leader aggroes if the member aggroes
33  FLAG_MEMBERS_ASSIST_MEMBER = (FLAG_MEMBERS_ASSIST_LEADER | FLAG_LEADER_ASSISTS_MEMBER), // every member will assist if any member is attacked
34  FLAG_IDLE_IN_FORMATION = 0x00000004, // The member will follow the leader when pathing idly
35 };