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

#include <Player.h>

Public Member Functions

void SetRuneState (uint8 index, bool set=true)
 

Public Attributes

RuneInfo runes [MAX_RUNES]
 
uint8 runeState
 
RuneType lastUsedRune
 

Member Function Documentation

void Runes::SetRuneState ( uint8  index,
bool  set = true 
)
inline
483  {
484  if (set)
485  runeState |= (1 << index); // usable
486  else
487  runeState &= ~(1 << index); // on cooldown
488  }
uint8 runeState
Definition: Player.h:479

Member Data Documentation

RuneType Runes::lastUsedRune
RuneInfo Runes::runes[MAX_RUNES]
uint8 Runes::runeState

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