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

#include "Unit.h"

Public Member Functions

 HealInfo (Unit *_healer, Unit *_target, uint32 _heal, SpellInfo const *_spellInfo, SpellSchoolMask _schoolMask)
 
void AbsorbHeal (uint32 amount)
 
void SetHeal (uint32 amount)
 
void SetHealBeforeTakenMods (uint32 amount)
 
void SetEffectiveHeal (uint32 amount)
 
UnitGetHealer () const
 
UnitGetTarget () const
 
uint32 GetHeal () const
 
uint32 GetHealBeforeTakenMods () const
 
uint32 GetEffectiveHeal () const
 
uint32 GetAbsorb () const
 
SpellInfo const * GetSpellInfo () const
 
SpellSchoolMask GetSchoolMask () const
 
uint32 GetHitMask () const
 
void AddHitMask (uint32 hitMask)
 

Private Attributes

Unit *const m_healer
 
Unit *const m_target
 
uint32 m_heal
 
uint32 m_healBeforeTakenMods
 
uint32 m_effectiveHeal
 
uint32 m_absorb
 
SpellInfo const *const m_spellInfo
 
SpellSchoolMask const m_schoolMask
 
uint32 m_hitMask
 

Detailed Description

Constructor & Destructor Documentation

◆ HealInfo()

HealInfo::HealInfo ( Unit _healer,
Unit _target,
uint32  _heal,
SpellInfo const *  _spellInfo,
SpellSchoolMask  _schoolMask 
)
inlineexplicit
396 : m_healer(_healer), m_target(_target), m_heal(_heal), m_healBeforeTakenMods(0), m_spellInfo(_spellInfo), m_schoolMask(_schoolMask), m_hitMask(0)
397 {
398 m_absorb = 0;
399 m_effectiveHeal = 0;
400 }
uint32 m_effectiveHeal
Definition Unit.h:389
uint32 m_absorb
Definition Unit.h:390
Unit *const m_target
Definition Unit.h:386
SpellInfo const *const m_spellInfo
Definition Unit.h:391
uint32 m_healBeforeTakenMods
Definition Unit.h:388
uint32 m_hitMask
Definition Unit.h:393
Unit *const m_healer
Definition Unit.h:385
uint32 m_heal
Definition Unit.h:387
SpellSchoolMask const m_schoolMask
Definition Unit.h:392

References m_absorb, and m_effectiveHeal.

Member Function Documentation

◆ AbsorbHeal()

void HealInfo::AbsorbHeal ( uint32  amount)
inline
403 {
404 amount = std::min(amount, GetHeal());
405 m_absorb += amount;
406 m_heal -= amount;
407
408 amount = std::min(amount, GetEffectiveHeal());
409 m_effectiveHeal -= amount;
410 }
uint32 GetEffectiveHeal() const
Definition Unit.h:431
uint32 GetHeal() const
Definition Unit.h:429

References GetEffectiveHeal(), GetHeal(), m_absorb, m_effectiveHeal, and m_heal.

Referenced by Unit::CalcHealAbsorb().

◆ AddHitMask()

void HealInfo::AddHitMask ( uint32  hitMask)
inline
436{ m_hitMask |= hitMask; }

References m_hitMask.

Referenced by Spell::DoAllEffectOnTarget().

◆ GetAbsorb()

uint32 HealInfo::GetAbsorb ( ) const
inline

◆ GetEffectiveHeal()

◆ GetHeal()

uint32 HealInfo::GetHeal ( ) const
inline
429{ return m_heal; }

References m_heal.

Referenced by AbsorbHeal(), Unit::CalcHealAbsorb(), SpellProcSpellTypeMaskTest::CalculateSpellTypeMask(), spell_dru_t10_restoration_4p_bonus_dummy::CheckProc(), spell_item_valanyr_hammer_of_ancient_kings::CheckProc(), spell_item_persistent_shield::CheckProc(), spell_item_sunwell_exalted_healer_neck::CheckProc(), spell_pal_sheath_of_light::CheckProc(), spell_pal_t8_2p_bonus::CheckProc(), spell_pal_glyph_of_holy_light_dummy::CheckProc(), spell_pri_aq_3p_bonus::CheckProc(), spell_pri_t10_heal_2p_bonus::CheckProc(), AuraEffect::HandlePeriodicHealAurasTick(), spell_gen_overlords_brand::HandleProc(), spell_gen_overlords_brand_dot::HandleProc(), spell_dru_living_seed::HandleProc(), spell_dru_glyph_of_rejuvenation::HandleProc(), spell_dru_t10_restoration_4p_bonus_dummy::HandleProc(), spell_item_blessing_of_ancient_kings::HandleProc(), spell_item_persistent_shield::HandleProc(), spell_pal_sheath_of_light::HandleProc(), spell_pal_infusion_of_light::HandleProc(), spell_pal_t8_2p_bonus::HandleProc(), spell_pal_glyph_of_holy_light_dummy::HandleProc(), spell_pal_light_s_beacon::HandleProc(), spell_pri_divine_aegis::HandleProc(), spell_pri_glyph_of_prayer_of_healing::HandleProc(), spell_pri_aq_3p_bonus::HandleProc(), spell_pri_t10_heal_2p_bonus::HandleProc(), spell_sha_t10_restoration_4p_bonus::HandleProc(), spell_sha_glyph_of_healing_wave::HandleProc(), spell_sha_ancestral_awakening::HandleProc(), Unit::HealBySpell(), Unit::ProcSkillsAndAuras(), and Unit::SendHealSpellLog().

◆ GetHealBeforeTakenMods()

uint32 HealInfo::GetHealBeforeTakenMods ( ) const
inline

◆ GetHealer()

Unit * HealInfo::GetHealer ( ) const
inline
427{ return m_healer; }

References m_healer.

Referenced by Unit::HealBySpell().

◆ GetHitMask()

uint32 HealInfo::GetHitMask ( ) const
inline
435{ return m_hitMask; }

References m_hitMask.

Referenced by Spell::DoAllEffectOnTarget().

◆ GetSchoolMask()

SpellSchoolMask HealInfo::GetSchoolMask ( ) const
inline
434{ return m_schoolMask; };

References m_schoolMask.

Referenced by ProcEventInfo::GetSchoolMask().

◆ GetSpellInfo()

◆ GetTarget()

Unit * HealInfo::GetTarget ( ) const
inline
428{ return m_target; }

References m_target.

Referenced by Unit::CalcHealAbsorb(), Unit::HealBySpell(), and Unit::SendHealSpellLog().

◆ SetEffectiveHeal()

void HealInfo::SetEffectiveHeal ( uint32  amount)
inline
423 {
424 m_effectiveHeal = amount;
425 }

References m_effectiveHeal.

Referenced by AuraEffect::HandlePeriodicHealAurasTick(), and Unit::HealBySpell().

◆ SetHeal()

void HealInfo::SetHeal ( uint32  amount)
inline
413 {
414 m_heal = amount;
415 }

References m_heal.

Referenced by Unit::HealBySpell().

◆ SetHealBeforeTakenMods()

void HealInfo::SetHealBeforeTakenMods ( uint32  amount)
inline
418 {
419 m_healBeforeTakenMods = amount;
420 }

References m_healBeforeTakenMods.

Referenced by Spell::DoAllEffectOnTarget().

Member Data Documentation

◆ m_absorb

uint32 HealInfo::m_absorb
private

Referenced by AbsorbHeal(), GetAbsorb(), and HealInfo().

◆ m_effectiveHeal

uint32 HealInfo::m_effectiveHeal
private

◆ m_heal

uint32 HealInfo::m_heal
private

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

◆ m_healBeforeTakenMods

uint32 HealInfo::m_healBeforeTakenMods
private

◆ m_healer

Unit* const HealInfo::m_healer
private

Referenced by GetHealer().

◆ m_hitMask

uint32 HealInfo::m_hitMask
private

Referenced by AddHitMask(), and GetHitMask().

◆ m_schoolMask

SpellSchoolMask const HealInfo::m_schoolMask
private

Referenced by GetSchoolMask().

◆ m_spellInfo

SpellInfo const* const HealInfo::m_spellInfo
private

Referenced by GetSpellInfo().

◆ m_target

Unit* const HealInfo::m_target
private

Referenced by GetTarget().


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