AzeorthCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
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
 

Detailed Description

Member Function Documentation

◆ SetRuneState()

void Runes::SetRuneState ( uint8  index,
bool  set = true 
)
inline
433 {
434 if (set)
435 runeState |= (1 << index); // usable
436 else
437 runeState &= ~(1 << index); // on cooldown
438 }
uint8 runeState
Definition: Player.h:429

References runeState.

Referenced by Player::InitRunes(), and Player::SetRuneCooldown().

Member Data Documentation

◆ lastUsedRune

◆ runes

◆ runeState

uint8 Runes::runeState