TrinityCore
CharmInfo.h File Reference
#include "Define.h"
#include "UnitDefines.h"
+ Include dependency graph for CharmInfo.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  UnitActionBarEntry
 
struct  CharmInfo
 

Macros

#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))
 
#define MAX_UNIT_ACTION_BAR_INDEX   (ACTION_BAR_INDEX_END-ACTION_BAR_INDEX_START)
 

Typedefs

typedef UnitActionBarEntry CharmSpellInfo
 

Enumerations

enum  CharmType : uint8 { CHARM_TYPE_CHARM = 0 , 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 }
 

Variables

constexpr uint8 MAX_SPELL_CHARM = 4
 
constexpr uint8 MAX_SPELL_VEHICLE = 6
 
constexpr uint8 MAX_SPELL_POSSESS = 8
 
constexpr uint8 MAX_SPELL_CONTROL_BAR = 10
 

Macro Definition Documentation

◆ MAKE_UNIT_ACTION_BUTTON

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

Definition at line 35 of file CharmInfo.h.

◆ MAX_UNIT_ACTION_BAR_INDEX

#define MAX_UNIT_ACTION_BAR_INDEX   (ACTION_BAR_INDEX_END-ACTION_BAR_INDEX_START)

Definition at line 86 of file CharmInfo.h.

◆ UNIT_ACTION_BUTTON_ACTION

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

Definition at line 33 of file CharmInfo.h.

◆ UNIT_ACTION_BUTTON_TYPE

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

Definition at line 34 of file CharmInfo.h.

Typedef Documentation

◆ CharmSpellInfo

Definition at line 76 of file CharmInfo.h.

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 

Definition at line 78 of file CharmInfo.h.

◆ CharmType

enum CharmType : uint8
Enumerator
CHARM_TYPE_CHARM 
CHARM_TYPE_POSSESS 
CHARM_TYPE_VEHICLE 
CHARM_TYPE_CONVERT 

Definition at line 68 of file CharmInfo.h.

Variable Documentation

◆ MAX_SPELL_CHARM

constexpr uint8 MAX_SPELL_CHARM = 4
constexpr

Definition at line 28 of file CharmInfo.h.

◆ MAX_SPELL_CONTROL_BAR

constexpr uint8 MAX_SPELL_CONTROL_BAR = 10
constexpr

Definition at line 31 of file CharmInfo.h.

◆ MAX_SPELL_POSSESS

constexpr uint8 MAX_SPELL_POSSESS = 8
constexpr

Definition at line 30 of file CharmInfo.h.

◆ MAX_SPELL_VEHICLE

constexpr uint8 MAX_SPELL_VEHICLE = 6
constexpr

Definition at line 29 of file CharmInfo.h.