Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
GlobalCooldownMgr Class Reference

#include <Unit.h>

Public Member Functions

void AddGlobalCooldown (SpellInfo const *spellInfo, uint32 gcd)
void CancelGlobalCooldown (SpellInfo const *spellInfo)
 GlobalCooldownMgr ()
bool HasGlobalCooldown (SpellInfo const *spellInfo) const

Private Attributes

GlobalCooldownList m_GlobalCooldowns

Detailed Description

Definition at line 1128 of file Unit.h.

Constructor & Destructor Documentation

◆ GlobalCooldownMgr()

GlobalCooldownMgr::GlobalCooldownMgr ( )
inline

Definition at line 1131 of file Unit.h.

Member Function Documentation

◆ AddGlobalCooldown()

void GlobalCooldownMgr::AddGlobalCooldown ( SpellInfo const * spellInfo,
uint32 gcd )

Definition at line 254 of file Unit.cpp.

References getMSTime(), m_GlobalCooldowns, and SpellInfo::StartRecoveryCategory.

Referenced by Player::EquipItem().

◆ CancelGlobalCooldown()

void GlobalCooldownMgr::CancelGlobalCooldown ( SpellInfo const * spellInfo)

Definition at line 259 of file Unit.cpp.

References m_GlobalCooldowns, and SpellInfo::StartRecoveryCategory.

◆ HasGlobalCooldown()

bool GlobalCooldownMgr::HasGlobalCooldown ( SpellInfo const * spellInfo) const

Member Data Documentation

◆ m_GlobalCooldowns

GlobalCooldownList GlobalCooldownMgr::m_GlobalCooldowns
private

Definition at line 1140 of file Unit.h.

Referenced by AddGlobalCooldown(), CancelGlobalCooldown(), and HasGlobalCooldown().


The documentation for this class was generated from the following files:
  • src/server/game/Entities/Unit/Unit.h
  • src/server/game/Entities/Unit/Unit.cpp