TrinityCore
Loading...
Searching...
No Matches
UnitActionBarEntry Struct Reference

#include <Unit.h>

Public Member Functions

 UnitActionBarEntry ()
 
ActiveStates GetType () const
 
uint32 GetAction () const
 
bool IsActionBarForSpell () const
 
void SetActionAndType (uint32 action, ActiveStates type)
 
void SetType (ActiveStates type)
 
void SetAction (uint32 action)
 

Public Attributes

uint32 packedData
 

Detailed Description

Definition at line 633 of file Unit.h.

Constructor & Destructor Documentation

◆ UnitActionBarEntry()

UnitActionBarEntry::UnitActionBarEntry ( )
inline

Definition at line 635 of file Unit.h.

Member Function Documentation

◆ GetAction()

◆ GetType()

ActiveStates UnitActionBarEntry::GetType ( ) const
inline

◆ IsActionBarForSpell()

bool UnitActionBarEntry::IsActionBarForSpell ( ) const
inline

Definition at line 642 of file Unit.h.

References ACT_DISABLED, ACT_ENABLED, ACT_PASSIVE, and GetType().

Referenced by CharmInfo::AddSpellToActionBar(), and CharmInfo::SetSpellAutocast().

◆ SetAction()

void UnitActionBarEntry::SetAction ( uint32  action)
inline

Definition at line 658 of file Unit.h.

References packedData, and UNIT_ACTION_BUTTON_ACTION.

Referenced by CharmInfo::AddSpellToActionBar().

◆ SetActionAndType()

void UnitActionBarEntry::SetActionAndType ( uint32  action,
ActiveStates  type 
)
inline

Definition at line 648 of file Unit.h.

References MAKE_UNIT_ACTION_BUTTON, and packedData.

Referenced by CharmInfo::InitCharmCreateSpells(), and CharmInfo::LoadPetActionBar().

◆ SetType()

void UnitActionBarEntry::SetType ( ActiveStates  type)
inline

Member Data Documentation

◆ packedData

uint32 UnitActionBarEntry::packedData

The documentation for this struct was generated from the following file: