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

#include <Unit.h>

Collaboration diagram for DamageInfo:

Public Member Functions

void AbsorbDamage (uint32 amount)
void BlockDamage (uint32 amount)
 DamageInfo (CalcDamageInfo &dmgInfo)
 DamageInfo (Unit *_attacker, Unit *_victim, uint32 _damage, SpellInfo const *_spellInfo, SpellSchoolMask _schoolMask, DamageEffectType _damageType)
uint32 GetAbsorb () const
Unit * GetAttacker () const
WeaponAttackType GetAttackType () const
uint32 GetBlock () const
uint32 GetDamage () const
DamageEffectType GetDamageType () const
uint32 GetResist () const
SpellSchoolMask GetSchoolMask () const
SpellInfo const * GetSpellInfo () const
Unit * GetVictim () const
void ModifyDamage (int32 amount)
void ResistDamage (uint32 amount)

Private Attributes

uint32 m_absorb
Unit *const m_attacker
WeaponAttackType m_attackType
uint32 m_block
uint32 m_damage
DamageEffectType const m_damageType
uint32 m_resist
SpellSchoolMask const m_schoolMask
SpellInfo const *const m_spellInfo
Unit *const m_victim

Detailed Description

Definition at line 877 of file Unit.h.

Constructor & Destructor Documentation

◆ DamageInfo() [1/2]

DamageInfo::DamageInfo ( Unit * _attacker,
Unit * _victim,
uint32 _damage,
SpellInfo const * _spellInfo,
SpellSchoolMask _schoolMask,
DamageEffectType _damageType )
explicit

◆ DamageInfo() [2/2]

DamageInfo::DamageInfo ( CalcDamageInfo & dmgInfo)
explicit

Member Function Documentation

◆ AbsorbDamage()

void DamageInfo::AbsorbDamage ( uint32 amount)

◆ BlockDamage()

void DamageInfo::BlockDamage ( uint32 amount)

Definition at line 119 of file Unit.cpp.

References GetDamage(), m_block, and m_damage.

◆ GetAbsorb()

uint32 DamageInfo::GetAbsorb ( ) const
inline

Definition at line 927 of file Unit.h.

References m_absorb.

Referenced by Unit::CalcAbsorbResist().

◆ GetAttacker()

◆ GetAttackType()

WeaponAttackType DamageInfo::GetAttackType ( ) const
inline

◆ GetBlock()

uint32 DamageInfo::GetBlock ( ) const
inline

Definition at line 935 of file Unit.h.

References m_block.

◆ GetDamage()

uint32 DamageInfo::GetDamage ( ) const
inline

Definition at line 923 of file Unit.h.

References m_damage.

Referenced by spell_dk_anti_magic_shell_raid::spell_dk_anti_magic_shell_raid_AuraScript::Absorb(), spell_dk_anti_magic_shell_self::spell_dk_anti_magic_shell_self_AuraScript::Absorb(), spell_dk_anti_magic_zone::spell_dk_anti_magic_zone_AuraScript::Absorb(), spell_monk_dampen_harm::spell_monk_dampen_harm_AuraScript::Absorb(), spell_rog_cheat_death::spell_rog_cheat_death_AuraScript::Absorb(), AbsorbDamage(), BlockDamage(), Unit::CalcAbsorbResist(), spell_sha_nature_guardian::spell_sha_nature_guardian_AuraScript::CheckProc(), spell_warl_fel_synergy::spell_warl_fel_synergy_AuraScript::CheckProc(), spell_pal_eye_for_an_eye::spell_pal_eye_for_an_eye_AuraScript::HandleEffectProc(), spell_pri_vampiric_embrace::spell_pri_vampiric_embrace_AuraScript::HandleEffectProc(), spell_sha_telluric_currents::spell_sha_telluric_currents_AuraScript::HandleEffectProc(), spell_ex_absorb_aura::spell_ex_absorb_auraAuraScript::HandleOnEffectAbsorb(), spell_devourer_of_souls_mirrored_soul_proc::spell_devourer_of_souls_mirrored_soul_proc_AuraScript::HandleProc(), spell_dk_blood_gorged::spell_dk_blood_gorged_AuraScript::HandleProc(), spell_dk_death_strike_enabler::spell_dk_death_strike_enabler_AuraScript::HandleProc(), spell_gen_alchemist_stone::spell_gen_alchemist_stone_AuraScript::HandleProc(), spell_item_necrotic_touch::spell_item_necrotic_touch_AuraScript::HandleProc(), spell_mage_ignite::spell_mage_ignite_AuraScript::HandleProc(), spell_rog_blade_flurry::spell_rog_blade_flurry_AuraScript::HandleProc(), spell_the_lich_king_dark_hunger::spell_the_lich_king_dark_hunger_AuraScript::HandleProc(), spell_yogg_saron_grim_reprisal::spell_yogg_saron_grim_reprisal_AuraScript::HandleProc(), ModifyDamage(), spell_monk_touch_of_karma::spell_monk_touch_of_karma_AuraScript::OnAbsorb(), spell_valanar_kinetic_bomb_absorb::spell_valanar_kinetic_bomb_absorb_AuraScript::OnAbsorb(), spell_yogg_saron_hodirs_protective_gaze::spell_yogg_saron_hodirs_protective_gaze_AuraScript::OnAbsorb(), spell_blood_queen_essence_of_the_blood_queen::spell_blood_queen_essence_of_the_blood_queen_AuraScript::OnProc(), spell_monk_serpents_zeal::spell_monk_serpents_zeal_AuraScript::OnProc(), spell_warl_fel_synergy::spell_warl_fel_synergy_AuraScript::OnProc(), and ResistDamage().

◆ GetDamageType()

DamageEffectType DamageInfo::GetDamageType ( ) const
inline

Definition at line 915 of file Unit.h.

References m_damageType.

◆ GetResist()

uint32 DamageInfo::GetResist ( ) const
inline

Definition at line 931 of file Unit.h.

References m_resist.

Referenced by Unit::CalcAbsorbResist().

◆ GetSchoolMask()

SpellSchoolMask DamageInfo::GetSchoolMask ( ) const
inline

Definition at line 911 of file Unit.h.

References m_schoolMask.

◆ GetSpellInfo()

◆ GetVictim()

◆ ModifyDamage()

void DamageInfo::ModifyDamage ( int32 amount)

Definition at line 99 of file Unit.cpp.

References GetDamage(), and m_damage.

◆ ResistDamage()

void DamageInfo::ResistDamage ( uint32 amount)

Definition at line 112 of file Unit.cpp.

References GetDamage(), m_damage, and m_resist.

Referenced by Unit::CalcAbsorbResist().

Member Data Documentation

◆ m_absorb

uint32 DamageInfo::m_absorb
private

Definition at line 887 of file Unit.h.

Referenced by AbsorbDamage(), DamageInfo(), DamageInfo(), and GetAbsorb().

◆ m_attacker

Unit* const DamageInfo::m_attacker
private

Definition at line 880 of file Unit.h.

Referenced by DamageInfo(), DamageInfo(), and GetAttacker().

◆ m_attackType

WeaponAttackType DamageInfo::m_attackType
private

Definition at line 886 of file Unit.h.

Referenced by DamageInfo(), DamageInfo(), and GetAttackType().

◆ m_block

uint32 DamageInfo::m_block
private

Definition at line 889 of file Unit.h.

Referenced by BlockDamage(), DamageInfo(), DamageInfo(), and GetBlock().

◆ m_damage

uint32 DamageInfo::m_damage
private

◆ m_damageType

DamageEffectType const DamageInfo::m_damageType
private

Definition at line 885 of file Unit.h.

Referenced by DamageInfo(), DamageInfo(), and GetDamageType().

◆ m_resist

uint32 DamageInfo::m_resist
private

Definition at line 888 of file Unit.h.

Referenced by DamageInfo(), DamageInfo(), GetResist(), and ResistDamage().

◆ m_schoolMask

SpellSchoolMask const DamageInfo::m_schoolMask
private

Definition at line 884 of file Unit.h.

Referenced by DamageInfo(), DamageInfo(), and GetSchoolMask().

◆ m_spellInfo

SpellInfo const* const DamageInfo::m_spellInfo
private

Definition at line 883 of file Unit.h.

Referenced by DamageInfo(), DamageInfo(), and GetSpellInfo().

◆ m_victim

Unit* const DamageInfo::m_victim
private

Definition at line 881 of file Unit.h.

Referenced by DamageInfo(), DamageInfo(), and GetVictim().


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