![]() |
AzerothCore 3.3.5a
OpenSource WoW Emulator
|
Lightweight stub for DamageInfo. More...
#include "DamageHealInfoStub.h"
Public Member Functions | |
| DamageInfoStub ()=default | |
| DamageInfoStub (uint32_t damage, uint32_t originalDamage, uint32_t schoolMask, uint8_t attackType, SpellInfo const *spellInfo=nullptr) | |
| virtual | ~DamageInfoStub ()=default |
| uint32_t | GetDamage () const |
| uint32_t | GetOriginalDamage () const |
| uint32_t | GetAbsorb () const |
| uint32_t | GetResist () const |
| uint32_t | GetBlock () const |
| void | SetDamage (uint32_t damage) |
| void | SetOriginalDamage (uint32_t damage) |
| void | SetAbsorb (uint32_t absorb) |
| void | SetResist (uint32_t resist) |
| void | SetBlock (uint32_t block) |
| uint32_t | GetSchoolMask () const |
| uint8_t | GetAttackType () const |
| void | SetSchoolMask (uint32_t schoolMask) |
| void | SetAttackType (uint8_t attackType) |
| SpellInfo const * | GetSpellInfo () const |
| void | SetSpellInfo (SpellInfo const *spellInfo) |
| uint32_t | GetHitMask () const |
| void | SetHitMask (uint32_t hitMask) |
Private Attributes | |
| uint32_t | _damage = 0 |
| uint32_t | _originalDamage = 0 |
| uint32_t | _absorb = 0 |
| uint32_t | _resist = 0 |
| uint32_t | _block = 0 |
| uint32_t | _schoolMask = 1 |
| uint8_t | _attackType = 0 |
| uint32_t | _hitMask = 0 |
| SpellInfo const * | _spellInfo = nullptr |
Lightweight stub for DamageInfo.
Mirrors the key fields of DamageInfo for proc testing without requiring actual Unit objects.
|
default |
|
inline |
|
virtualdefault |
|
inline |
References _absorb.
|
inline |
References _attackType.
|
inline |
References _block.
|
inline |
References _hitMask.
|
inline |
References _originalDamage.
|
inline |
References _resist.
|
inline |
References _schoolMask.
|
inline |
References _spellInfo.
|
inline |
|
inline |
References _attackType.
Referenced by DamageInfoStubBuilder::WithAttackType().
|
inline |
|
inline |
References _damage.
Referenced by DamageInfoStubBuilder::WithDamage(), and ProcTestContext::WithDamage().
|
inline |
References _hitMask.
Referenced by ProcTestContext::WithCriticalHit(), DamageInfoStubBuilder::WithHitMask(), and ProcTestContext::WithNormalHit().
|
inline |
References _originalDamage.
Referenced by DamageInfoStubBuilder::WithDamage(), ProcTestContext::WithDamage(), and DamageInfoStubBuilder::WithOriginalDamage().
|
inline |
|
inline |
References _schoolMask.
Referenced by ProcTestContext::WithDamage(), and DamageInfoStubBuilder::WithSchoolMask().
|
inline |
References _spellInfo.
Referenced by DamageInfoStubBuilder::WithSpellInfo().
|
private |
Referenced by GetAbsorb(), and SetAbsorb().
|
private |
Referenced by GetAttackType(), and SetAttackType().
|
private |
Referenced by GetBlock(), and SetBlock().
|
private |
Referenced by GetDamage(), and SetDamage().
|
private |
Referenced by GetHitMask(), and SetHitMask().
|
private |
Referenced by GetOriginalDamage(), and SetOriginalDamage().
|
private |
Referenced by GetResist(), and SetResist().
|
private |
Referenced by GetSchoolMask(), and SetSchoolMask().
|
private |
Referenced by GetSpellInfo(), and SetSpellInfo().