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

Lightweight stub for HealInfo. More...

#include "DamageHealInfoStub.h"

Public Member Functions

 HealInfoStub ()=default
 
 HealInfoStub (uint32_t heal, uint32_t effectiveHeal, uint32_t absorb, SpellInfo const *spellInfo=nullptr)
 
virtual ~HealInfoStub ()=default
 
uint32_t GetHeal () const
 
uint32_t GetEffectiveHeal () const
 
uint32_t GetAbsorb () const
 
uint32_t GetOverheal () const
 
void SetHeal (uint32_t heal)
 
void SetEffectiveHeal (uint32_t effectiveHeal)
 
void SetAbsorb (uint32_t absorb)
 
SpellInfo const * GetSpellInfo () const
 
void SetSpellInfo (SpellInfo const *spellInfo)
 
uint32_t GetHitMask () const
 
void SetHitMask (uint32_t hitMask)
 

Private Attributes

uint32_t _heal = 0
 
uint32_t _effectiveHeal = 0
 
uint32_t _absorb = 0
 
uint32_t _hitMask = 0
 
SpellInfo const * _spellInfo = nullptr
 

Detailed Description

Lightweight stub for HealInfo.

Mirrors the key fields of HealInfo for proc testing.

Constructor & Destructor Documentation

◆ HealInfoStub() [1/2]

HealInfoStub::HealInfoStub ( )
default

◆ HealInfoStub() [2/2]

HealInfoStub::HealInfoStub ( uint32_t  heal,
uint32_t  effectiveHeal,
uint32_t  absorb,
SpellInfo const *  spellInfo = nullptr 
)
inline
100 : _heal(heal)
101 , _effectiveHeal(effectiveHeal)
102 , _absorb(absorb)
103 , _spellInfo(spellInfo)
104 {}
uint32_t _absorb
Definition DamageHealInfoStub.h:129
uint32_t _heal
Definition DamageHealInfoStub.h:127
SpellInfo const * _spellInfo
Definition DamageHealInfoStub.h:131
uint32_t _effectiveHeal
Definition DamageHealInfoStub.h:128

◆ ~HealInfoStub()

virtual HealInfoStub::~HealInfoStub ( )
virtualdefault

Member Function Documentation

◆ GetAbsorb()

uint32_t HealInfoStub::GetAbsorb ( ) const
inline
111{ return _absorb; }

References _absorb.

◆ GetEffectiveHeal()

uint32_t HealInfoStub::GetEffectiveHeal ( ) const
inline
110{ return _effectiveHeal; }

References _effectiveHeal.

◆ GetHeal()

uint32_t HealInfoStub::GetHeal ( ) const
inline
109{ return _heal; }

References _heal.

Referenced by HealInfoStubBuilder::WithOverheal().

◆ GetHitMask()

uint32_t HealInfoStub::GetHitMask ( ) const
inline
123{ return _hitMask; }
uint32_t _hitMask
Definition DamageHealInfoStub.h:130

References _hitMask.

◆ GetOverheal()

uint32_t HealInfoStub::GetOverheal ( ) const
inline
112{ return _heal > _effectiveHeal ? _heal - _effectiveHeal : 0; }

References _effectiveHeal, and _heal.

◆ GetSpellInfo()

SpellInfo const * HealInfoStub::GetSpellInfo ( ) const
inline
119{ return _spellInfo; }

References _spellInfo.

◆ SetAbsorb()

void HealInfoStub::SetAbsorb ( uint32_t  absorb)
inline
116{ _absorb = absorb; }

References _absorb.

Referenced by HealInfoStubBuilder::WithAbsorb().

◆ SetEffectiveHeal()

void HealInfoStub::SetEffectiveHeal ( uint32_t  effectiveHeal)
inline

◆ SetHeal()

void HealInfoStub::SetHeal ( uint32_t  heal)
inline
114{ _heal = heal; }

References _heal.

Referenced by HealInfoStubBuilder::WithHeal(), and ProcTestContext::WithHeal().

◆ SetHitMask()

void HealInfoStub::SetHitMask ( uint32_t  hitMask)
inline

◆ SetSpellInfo()

void HealInfoStub::SetSpellInfo ( SpellInfo const *  spellInfo)
inline
120{ _spellInfo = spellInfo; }

References _spellInfo.

Referenced by HealInfoStubBuilder::WithSpellInfo().

Member Data Documentation

◆ _absorb

uint32_t HealInfoStub::_absorb = 0
private

Referenced by GetAbsorb(), and SetAbsorb().

◆ _effectiveHeal

uint32_t HealInfoStub::_effectiveHeal = 0
private

◆ _heal

uint32_t HealInfoStub::_heal = 0
private

Referenced by GetHeal(), GetOverheal(), and SetHeal().

◆ _hitMask

uint32_t HealInfoStub::_hitMask = 0
private

Referenced by GetHitMask(), and SetHitMask().

◆ _spellInfo

SpellInfo const* HealInfoStub::_spellInfo = nullptr
private

Referenced by GetSpellInfo(), and SetSpellInfo().


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