32#define UNIT_ACTION_BUTTON_ACTION(X) (uint32(X) & 0x00FFFFFF)
33#define UNIT_ACTION_BUTTON_TYPE(X) ((uint32(X) & 0xFF000000) >> 24)
34#define MAKE_UNIT_ACTION_BUTTON(A, T) (uint32(A) | (uint32(T) << 24))
85#define MAX_UNIT_ACTION_BAR_INDEX (ACTION_BAR_INDEX_END-ACTION_BAR_INDEX_START)
94 void SetPetNumber(
uint32 petnumber,
bool statwindow);
100 void InitPossessCreateSpells();
101 void InitCharmCreateSpells();
102 void InitPetActionBar();
103 void InitEmptyActionBar(
bool withAttack =
true);
107 bool RemoveSpellFromActionBar(
uint32 spell_id);
108 void LoadPetActionBar(
const std::string& data);
109 void SetSpellAutocast(
SpellInfo const* spellInfo,
bool state);
112 PetActionBar[index].SetActionAndType(spellOrAction, type);
117 void ToggleCreatureAutocast(
SpellInfo const* spellInfo,
bool apply);
121 void SetIsCommandAttack(
bool val);
122 bool IsCommandAttack();
123 void SetIsCommandFollow(
bool val);
124 bool IsCommandFollow();
125 void SetIsAtStay(
bool val);
127 void SetIsFollowing(
bool val);
129 void SetIsReturning(
bool val);
131 void SaveStayPosition();
132 void GetStayPosition(
float &x,
float &y,
float &z);
UnitActionBarEntry CharmSpellInfo
#define MAX_UNIT_ACTION_BAR_INDEX
constexpr uint8 MAX_SPELL_VEHICLE
#define UNIT_ACTION_BUTTON_ACTION(X)
@ ACTION_BAR_INDEX_PET_SPELL_START
@ ACTION_BAR_INDEX_PET_SPELL_END
constexpr uint8 MAX_SPELL_CHARM
#define MAKE_UNIT_ACTION_BUTTON(A, T)
#define UNIT_ACTION_BUTTON_TYPE(X)
constexpr uint8 MAX_SPELL_CONTROL_BAR
constexpr uint8 MAX_SPELL_POSSESS
uint32 GetPetNumber() const
void SetActionBar(uint8 index, uint32 spellOrAction, ActiveStates type)
CharmSpellInfo * GetCharmSpell(uint8 index)
CommandStates GetCommandState() const
CommandStates _CommandState
UnitActionBarEntry const * GetActionBarEntry(uint8 index) const
bool HasCommandState(CommandStates state) const
ReactStates _oldReactState
void SetCommandState(CommandStates st)
ActiveStates GetType() const
void SetActionAndType(uint32 action, ActiveStates type)
bool IsActionBarForSpell() const
void SetType(ActiveStates type)
void SetAction(uint32 action)