33#define UNIT_ACTION_BUTTON_ACTION(X) (uint32(X) & 0x00FFFFFF)
34#define UNIT_ACTION_BUTTON_TYPE(X) ((uint32(X) & 0xFF000000) >> 24)
35#define MAKE_UNIT_ACTION_BUTTON(A, T) (uint32(A) | (uint32(T) << 24))
86#define MAX_UNIT_ACTION_BAR_INDEX (ACTION_BAR_INDEX_END-ACTION_BAR_INDEX_START)
95 void SetPetNumber(
uint32 petnumber,
bool statwindow);
101 void InitPossessCreateSpells();
102 void InitCharmCreateSpells();
103 void InitPetActionBar();
104 void InitEmptyActionBar(
bool withAttack =
true);
108 bool RemoveSpellFromActionBar(
uint32 spell_id);
109 void LoadPetActionBar(
const std::string& data);
111 void SetSpellAutocast(
SpellInfo const* spellInfo,
bool state);
114 PetActionBar[index].SetActionAndType(spellOrAction, type);
119 void ToggleCreatureAutocast(
SpellInfo const* spellInfo,
bool apply);
123 void SetIsCommandAttack(
bool val);
124 bool IsCommandAttack();
125 void SetIsCommandFollow(
bool val);
126 bool IsCommandFollow();
127 void SetIsAtStay(
bool val);
129 void SetIsFollowing(
bool val);
131 void SetIsReturning(
bool val);
133 void SaveStayPosition();
134 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)