AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
DispelInfo Class Reference

#include "Unit.h"

Public Member Functions

 DispelInfo (Unit *dispeller, uint32 dispellerSpellId, uint8 chargesRemoved)
 
UnitGetDispeller () const
 
uint32 GetDispellerSpellId () const
 
uint8 GetRemovedCharges () const
 
void SetRemovedCharges (uint8 amount)
 

Private Attributes

Unit_dispellerUnit
 
uint32 _dispellerSpell
 
uint8 _chargesRemoved
 

Detailed Description

Constructor & Destructor Documentation

◆ DispelInfo()

DispelInfo::DispelInfo ( Unit dispeller,
uint32  dispellerSpellId,
uint8  chargesRemoved 
)
inlineexplicit
729 :
730 _dispellerUnit(dispeller), _dispellerSpell(dispellerSpellId), _chargesRemoved(chargesRemoved) {}
uint32 _dispellerSpell
Definition: Unit.h:741
uint8 _chargesRemoved
Definition: Unit.h:742
Unit * _dispellerUnit
Definition: Unit.h:740

Member Function Documentation

◆ GetDispeller()

◆ GetDispellerSpellId()

uint32 DispelInfo::GetDispellerSpellId ( ) const
inline
733{ return _dispellerSpell; }

References _dispellerSpell.

◆ GetRemovedCharges()

uint8 DispelInfo::GetRemovedCharges ( ) const
inline

◆ SetRemovedCharges()

void DispelInfo::SetRemovedCharges ( uint8  amount)
inline

Member Data Documentation

◆ _chargesRemoved

uint8 DispelInfo::_chargesRemoved
private

◆ _dispellerSpell

uint32 DispelInfo::_dispellerSpell
private

Referenced by GetDispellerSpellId().

◆ _dispellerUnit

Unit* DispelInfo::_dispellerUnit
private

Referenced by GetDispeller().