AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
ActionButton Struct Reference

#include "Player.h"

Public Member Functions

 ActionButton ()=default
 
ActionButtonType GetType () const
 
uint32 GetAction () const
 
void SetActionAndType (uint32 action, ActionButtonType type)
 

Public Attributes

uint32 packedData {0}
 
ActionButtonUpdateState uState {ACTIONBUTTON_NEW}
 

Detailed Description

Constructor & Destructor Documentation

◆ ActionButton()

ActionButton::ActionButton ( )
default

Member Function Documentation

◆ GetAction()

uint32 ActionButton::GetAction ( ) const
inline
#define ACTION_BUTTON_ACTION(X)
Definition Player.h:235
uint32 packedData
Definition Player.h:243

References ACTION_BUTTON_ACTION, and packedData.

Referenced by Spell::EffectCastButtons().

◆ GetType()

ActionButtonType ActionButton::GetType ( ) const
inline
ActionButtonType
Definition Player.h:221
#define ACTION_BUTTON_TYPE(X)
Definition Player.h:236

References ACTION_BUTTON_TYPE, and packedData.

Referenced by Spell::EffectCastButtons().

◆ SetActionAndType()

void ActionButton::SetActionAndType ( uint32  action,
ActionButtonType  type 
)
inline
250 {
251 uint32 newData = action | (uint32(type) << 24);
252 if (newData != packedData || uState == ACTIONBUTTON_DELETED)
253 {
254 packedData = newData;
257 }
258 }
std::uint32_t uint32
Definition Define.h:107
@ ACTIONBUTTON_NEW
Definition Player.h:216
@ ACTIONBUTTON_DELETED
Definition Player.h:217
@ ACTIONBUTTON_CHANGED
Definition Player.h:215
ActionButtonUpdateState uState
Definition Player.h:244

References ACTIONBUTTON_CHANGED, ACTIONBUTTON_DELETED, ACTIONBUTTON_NEW, packedData, and uState.

Referenced by Player::addActionButton().

Member Data Documentation

◆ packedData

uint32 ActionButton::packedData {0}
243{0};

Referenced by GetAction(), GetType(), and SetActionAndType().

◆ uState


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