TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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
 

Constructor & Destructor Documentation

UnitActionBarEntry::UnitActionBarEntry ( )
inline
1150 : packedData(uint32(ACT_DISABLED) << 24) { }
uint32 packedData
Definition: Unit.h:1152
uint32_t uint32
Definition: g3dmath.h:168
Definition: Unit.h:1120

Member Function Documentation

uint32 UnitActionBarEntry::GetAction ( ) const
inline
#define UNIT_ACTION_BUTTON_ACTION(X)
Definition: Unit.h:1144
uint32 packedData
Definition: Unit.h:1152

+ Here is the caller graph for this function:

ActiveStates UnitActionBarEntry::GetType ( ) const
inline
#define UNIT_ACTION_BUTTON_TYPE(X)
Definition: Unit.h:1145
uint32 packedData
Definition: Unit.h:1152
ActiveStates
Definition: Unit.h:1117

+ Here is the caller graph for this function:

bool UnitActionBarEntry::IsActionBarForSpell ( ) const
inline
1158  {
1160  return Type == ACT_DISABLED || Type == ACT_ENABLED || Type == ACT_PASSIVE;
1161  }
ActiveStates GetType() const
Definition: Unit.h:1155
Definition: Unit.h:1121
ActiveStates
Definition: Unit.h:1117
Definition: Unit.h:1119
Type
Type of JSON value.
Definition: rapidjson.h:642
Definition: Unit.h:1120

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void UnitActionBarEntry::SetAction ( uint32  action)
inline
1174  {
1175  packedData = (packedData & 0xFF000000) | UNIT_ACTION_BUTTON_ACTION(action);
1176  }
#define UNIT_ACTION_BUTTON_ACTION(X)
Definition: Unit.h:1144
uint32 packedData
Definition: Unit.h:1152

+ Here is the caller graph for this function:

void UnitActionBarEntry::SetActionAndType ( uint32  action,
ActiveStates  type 
)
inline
1164  {
1165  packedData = MAKE_UNIT_ACTION_BUTTON(action, type);
1166  }
uint32 packedData
Definition: Unit.h:1152
#define MAKE_UNIT_ACTION_BUTTON(A, T)
Definition: Unit.h:1146

+ Here is the caller graph for this function:

void UnitActionBarEntry::SetType ( ActiveStates  type)
inline
1169  {
1171  }
#define UNIT_ACTION_BUTTON_ACTION(X)
Definition: Unit.h:1144
uint32 packedData
Definition: Unit.h:1152
#define MAKE_UNIT_ACTION_BUTTON(A, T)
Definition: Unit.h:1146

+ Here is the caller graph for this function:

Member Data Documentation

uint32 UnitActionBarEntry::packedData

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