TrinityCore
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 SetEffectiveHeal (uint32 amount)
 
UnitGetHealer () const
 
UnitGetTarget () const
 
uint32 GetHeal () const
 
uint32 GetOriginalHeal () const
 
uint32 GetEffectiveHeal () const
 
uint32 GetAbsorb () const
 
SpellInfo const * GetSpellInfo () const
 
SpellSchoolMask GetSchoolMask () const
 
uint32 GetHitMask () const
 

Private Attributes

Unit *const _healer
 
Unit *const _target
 
uint32 _heal
 
uint32 const _originalHeal
 
uint32 _effectiveHeal
 
uint32 _absorb
 
SpellInfo const *const _spellInfo
 
SpellSchoolMask const _schoolMask
 
uint32 _hitMask
 

Constructor & Destructor Documentation

◆ HealInfo()

HealInfo::HealInfo ( Unit healer,
Unit target,
uint32  heal,
SpellInfo const *  spellInfo,
SpellSchoolMask  schoolMask 
)
241  : _healer(healer), _target(target), _heal(heal), _originalHeal(heal), _effectiveHeal(0), _absorb(0), _spellInfo(spellInfo), _schoolMask(schoolMask), _hitMask(0)
242 {
243 }
uint32 _absorb
Definition: Unit.h:455
uint32 _effectiveHeal
Definition: Unit.h:454
uint32 _hitMask
Definition: Unit.h:458
uint32 const _originalHeal
Definition: Unit.h:453
SpellInfo const *const _spellInfo
Definition: Unit.h:456
SpellSchoolMask const _schoolMask
Definition: Unit.h:457
uint32 _heal
Definition: Unit.h:452
Unit *const _target
Definition: Unit.h:451
Unit *const _healer
Definition: Unit.h:450

Member Function Documentation

◆ AbsorbHeal()

void HealInfo::AbsorbHeal ( uint32  amount)
246 {
247  amount = std::min(amount, GetHeal());
248  _absorb += amount;
249  _heal -= amount;
250  amount = std::min(amount, GetEffectiveHeal());
251  _effectiveHeal -= amount;
253 }
uint32 _absorb
Definition: Unit.h:455
uint32 _effectiveHeal
Definition: Unit.h:454
uint32 _hitMask
Definition: Unit.h:458
uint32 GetEffectiveHeal() const
Definition: Unit.h:470
uint32 _heal
Definition: Unit.h:452
uint32 GetHeal() const
Definition: Unit.h:468
Definition: SpellMgr.h:256
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetAbsorb()

uint32 HealInfo::GetAbsorb ( ) const
inline
471 { return _absorb; }
uint32 _absorb
Definition: Unit.h:455
+ Here is the caller graph for this function:

◆ GetEffectiveHeal()

uint32 HealInfo::GetEffectiveHeal ( ) const
inline
470 { return _effectiveHeal; }
uint32 _effectiveHeal
Definition: Unit.h:454
+ Here is the caller graph for this function:

◆ GetHeal()

uint32 HealInfo::GetHeal ( ) const
inline
468 { return _heal; }
uint32 _heal
Definition: Unit.h:452
+ Here is the caller graph for this function:

◆ GetHealer()

Unit* HealInfo::GetHealer ( ) const
inline
466 { return _healer; }
Unit *const _healer
Definition: Unit.h:450
+ Here is the caller graph for this function:

◆ GetHitMask()

uint32 HealInfo::GetHitMask ( ) const
256 {
257  return _hitMask;
258 }
uint32 _hitMask
Definition: Unit.h:458

◆ GetOriginalHeal()

uint32 HealInfo::GetOriginalHeal ( ) const
inline
469 { return _originalHeal; }
uint32 const _originalHeal
Definition: Unit.h:453
+ Here is the caller graph for this function:

◆ GetSchoolMask()

SpellSchoolMask HealInfo::GetSchoolMask ( ) const
inline
473 { return _schoolMask; };
SpellSchoolMask const _schoolMask
Definition: Unit.h:457
+ Here is the caller graph for this function:

◆ GetSpellInfo()

SpellInfo const* HealInfo::GetSpellInfo ( ) const
inline
472 { return _spellInfo; };
SpellInfo const *const _spellInfo
Definition: Unit.h:456
+ Here is the caller graph for this function:

◆ GetTarget()

Unit* HealInfo::GetTarget ( ) const
inline
467 { return _target; }
Unit *const _target
Definition: Unit.h:451
+ Here is the caller graph for this function:

◆ SetEffectiveHeal()

void HealInfo::SetEffectiveHeal ( uint32  amount)
inline
464 { _effectiveHeal = amount; }
uint32 _effectiveHeal
Definition: Unit.h:454
+ Here is the caller graph for this function:

Member Data Documentation

◆ _absorb

uint32 HealInfo::_absorb
private

◆ _effectiveHeal

uint32 HealInfo::_effectiveHeal
private

◆ _heal

uint32 HealInfo::_heal
private

◆ _healer

Unit* const HealInfo::_healer
private

◆ _hitMask

uint32 HealInfo::_hitMask
private

◆ _originalHeal

uint32 const HealInfo::_originalHeal
private

◆ _schoolMask

SpellSchoolMask const HealInfo::_schoolMask
private

◆ _spellInfo

SpellInfo const* const HealInfo::_spellInfo
private

◆ _target

Unit* const HealInfo::_target
private

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