TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
ActionButton Struct Reference

#include <Player.h>

Public Member Functions

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

Public Attributes

uint64 packedData
 
ActionButtonUpdateState uState
 

Constructor & Destructor Documentation

ActionButton::ActionButton ( )
inline
uint64 packedData
Definition: Player.h:341
ActionButtonUpdateState uState
Definition: Player.h:342
Definition: Player.h:306

Member Function Documentation

uint32 ActionButton::GetAction ( ) const
inline
346 { return ACTION_BUTTON_ACTION(packedData); }
uint64 packedData
Definition: Player.h:341
#define ACTION_BUTTON_ACTION(X)
Definition: Player.h:333

+ Here is the caller graph for this function:

ActionButtonType ActionButton::GetType ( ) const
inline
uint64 packedData
Definition: Player.h:341
ActionButtonType
Definition: Player.h:310
#define ACTION_BUTTON_TYPE(X)
Definition: Player.h:334

+ Here is the caller graph for this function:

void ActionButton::SetActionAndType ( uint32  action,
ActionButtonType  type 
)
inline
348  {
349  uint64 newData = uint64(action) | (uint64(type) << 56);
350  if (newData != packedData || uState == ACTIONBUTTON_DELETED)
351  {
352  packedData = newData;
353  if (uState != ACTIONBUTTON_NEW)
355  }
356  }
uint64 packedData
Definition: Player.h:341
ActionButtonUpdateState uState
Definition: Player.h:342
uint64_t uint64
Definition: g3dmath.h:170
Definition: Player.h:305
uint64_t uint64
Definition: Define.h:149
Definition: Player.h:307
Definition: Player.h:306

Member Data Documentation

uint64 ActionButton::packedData
ActionButtonUpdateState ActionButton::uState

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