AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
CharmInfo.h File Reference
#include "Define.h"
#include "ObjectGuid.h"

Go to the source code of this file.

Classes

struct  GlobalCooldown
 
class  GlobalCooldownMgr
 
struct  UnitActionBarEntry
 
struct  CharmInfo
 

Macros

#define MAX_SPELL_CHARM   4
 
#define MAX_SPELL_VEHICLE   6
 
#define MAX_SPELL_POSSESS   8
 
#define MAX_SPELL_CONTROL_BAR   10
 
#define MAX_UNIT_ACTION_BAR_INDEX   (ACTION_BAR_INDEX_END-ACTION_BAR_INDEX_START)
 
#define UNIT_ACTION_BUTTON_ACTION(X)   (uint32(X) & 0x00FFFFFF)
 
#define UNIT_ACTION_BUTTON_TYPE(X)   ((uint32(X) & 0xFF000000) >> 24)
 
#define MAKE_UNIT_ACTION_BUTTON(A, T)   (uint32(A) | (uint32(T) << 24))
 

Typedefs

typedef std::unordered_map< uint32, GlobalCooldownGlobalCooldownList
 
typedef UnitActionBarEntry CharmSpellInfo
 

Enumerations

enum  CharmType : uint8 {
  CHARM_TYPE_CHARM ,
  CHARM_TYPE_POSSESS ,
  CHARM_TYPE_VEHICLE ,
  CHARM_TYPE_CONVERT
}
 
enum  ActionBarIndex {
  ACTION_BAR_INDEX_START = 0 ,
  ACTION_BAR_INDEX_PET_SPELL_START = 3 ,
  ACTION_BAR_INDEX_PET_SPELL_END = 7 ,
  ACTION_BAR_INDEX_END = 10
}
 
enum  ActiveStates : uint8 {
  ACT_PASSIVE = 0x01 ,
  ACT_DISABLED = 0x81 ,
  ACT_ENABLED = 0xC1 ,
  ACT_COMMAND = 0x07 ,
  ACT_REACTION = 0x06 ,
  ACT_DECIDE = 0x00
}
 

Macro Definition Documentation

◆ MAKE_UNIT_ACTION_BUTTON

#define MAKE_UNIT_ACTION_BUTTON (   A,
 
)    (uint32(A) | (uint32(T) << 24))

◆ MAX_SPELL_CHARM

#define MAX_SPELL_CHARM   4

◆ MAX_SPELL_CONTROL_BAR

#define MAX_SPELL_CONTROL_BAR   10

◆ MAX_SPELL_POSSESS

#define MAX_SPELL_POSSESS   8

◆ MAX_SPELL_VEHICLE

#define MAX_SPELL_VEHICLE   6

◆ MAX_UNIT_ACTION_BAR_INDEX

#define MAX_UNIT_ACTION_BAR_INDEX   (ACTION_BAR_INDEX_END-ACTION_BAR_INDEX_START)

◆ UNIT_ACTION_BUTTON_ACTION

#define UNIT_ACTION_BUTTON_ACTION (   X)    (uint32(X) & 0x00FFFFFF)

◆ UNIT_ACTION_BUTTON_TYPE

#define UNIT_ACTION_BUTTON_TYPE (   X)    ((uint32(X) & 0xFF000000) >> 24)

Typedef Documentation

◆ CharmSpellInfo

◆ GlobalCooldownList

typedef std::unordered_map<uint32 , GlobalCooldown> GlobalCooldownList

Enumeration Type Documentation

◆ ActionBarIndex

Enumerator
ACTION_BAR_INDEX_START 
ACTION_BAR_INDEX_PET_SPELL_START 
ACTION_BAR_INDEX_PET_SPELL_END 
ACTION_BAR_INDEX_END 
52{
57};
@ ACTION_BAR_INDEX_PET_SPELL_START
Definition: CharmInfo.h:54
@ ACTION_BAR_INDEX_PET_SPELL_END
Definition: CharmInfo.h:55
@ ACTION_BAR_INDEX_END
Definition: CharmInfo.h:56
@ ACTION_BAR_INDEX_START
Definition: CharmInfo.h:53

◆ ActiveStates

Enumerator
ACT_PASSIVE 
ACT_DISABLED 
ACT_ENABLED 
ACT_COMMAND 
ACT_REACTION 
ACT_DECIDE 
60{
61 ACT_PASSIVE = 0x01, // 0x01 - passive
62 ACT_DISABLED = 0x81, // 0x80 - castable
63 ACT_ENABLED = 0xC1, // 0x40 | 0x80 - auto cast + castable
64 ACT_COMMAND = 0x07, // 0x01 | 0x02 | 0x04
65 ACT_REACTION = 0x06, // 0x02 | 0x04
66 ACT_DECIDE = 0x00 // custom
67};
@ ACT_REACTION
Definition: CharmInfo.h:65
@ ACT_DECIDE
Definition: CharmInfo.h:66
@ ACT_COMMAND
Definition: CharmInfo.h:64
@ ACT_ENABLED
Definition: CharmInfo.h:63
@ ACT_PASSIVE
Definition: CharmInfo.h:61
@ ACT_DISABLED
Definition: CharmInfo.h:62

◆ CharmType

enum CharmType : uint8
Enumerator
CHARM_TYPE_CHARM 
CHARM_TYPE_POSSESS 
CHARM_TYPE_VEHICLE 
CHARM_TYPE_CONVERT 
44{
49};
@ CHARM_TYPE_CHARM
Definition: CharmInfo.h:45
@ CHARM_TYPE_POSSESS
Definition: CharmInfo.h:46
@ CHARM_TYPE_CONVERT
Definition: CharmInfo.h:48
@ CHARM_TYPE_VEHICLE
Definition: CharmInfo.h:47