![]() |
AzerothCore 3.3.5a
OpenSource WoW Emulator
|
Protected Member Functions | |
| void | SetUp () override |
| void | TearDown () override |
| ProcFlagScenario const * | FindMatchingScenario (uint32 procFlags) |
| Find the first matching proc flag scenario for given flags. | |
| uint32 | GetEffectiveHitMask (SpellProcTestEntry const &entry, ProcFlagScenario const *scenario) |
| Get effective hit mask for an entry. | |
| uint32 | GetEffectiveSpellTypeMask (SpellProcTestEntry const &entry, ProcFlagScenario const *scenario) |
| Get effective spell type mask. | |
| uint32 | GetEffectiveSpellPhaseMask (SpellProcTestEntry const &entry, ProcFlagScenario const *scenario) |
| Get effective spell phase mask. | |
| bool | RequiresSpellFamilyMatch (SpellProcTestEntry const &entry) |
| Check if entry requires SpellFamily matching (which we can't test without SpellInfo) Any entry with SpellFamilyName > 0 will cause CanSpellTriggerProcOnEvent to access eventInfo.GetSpellInfo() which returns null in our test, causing a crash. | |
| bool | IsSpellTypeProc (uint32 procFlags) |
| Check if the proc flags indicate a spell-type event that needs SpellInfo. | |
| ProcEventInfo | CreateEventInfo (uint32 typeMask, uint32 hitMask, uint32 spellTypeMask, uint32 spellPhaseMask) |
| Create a ProcEventInfo with proper DamageInfo/HealInfo for spell-type procs. | |
Protected Attributes | |
| IWorld * | _originalWorld = nullptr |
| NiceMock< WorldMock > * | _worldMock = nullptr |
| SpellInfo * | _defaultSpellInfo = nullptr |
| DamageInfo * | _damageInfo = nullptr |
| HealInfo * | _healInfo = nullptr |
| std::vector< SpellProcTestEntry > | _allEntries |
|
inlineprotected |
Create a ProcEventInfo with proper DamageInfo/HealInfo for spell-type procs.
References _damageInfo, _defaultSpellInfo, _healInfo, IsSpellTypeProc(), PROC_SPELL_TYPE_HEAL, SPELL_DIRECT_DAMAGE, SPELL_SCHOOL_MASK_FIRE, SPELL_SCHOOL_MASK_HOLY, spellTypeMask, ProcEventInfoBuilder::WithHitMask(), ProcEventInfoBuilder::WithSpellPhaseMask(), ProcEventInfoBuilder::WithSpellTypeMask(), and ProcEventInfoBuilder::WithTypeMask().
|
inlineprotected |
Find the first matching proc flag scenario for given flags.
References PROC_FLAG_SCENARIOS.
|
inlineprotected |
Get effective hit mask for an entry.
References ProcFlagScenario::defaultHitMask, HIT_MASK_SCENARIOS, SpellProcTestEntry::HitMask, and PROC_HIT_NORMAL.
|
inlineprotected |
Get effective spell phase mask.
References ProcFlagScenario::defaultSpellPhaseMask, PROC_SPELL_PHASE_HIT, ProcFlagScenario::requiresSpellPhase, and SpellProcTestEntry::SpellPhaseMask.
|
inlineprotected |
Get effective spell type mask.
References ProcFlagScenario::defaultSpellTypeMask, PROC_SPELL_TYPE_DAMAGE, PROC_SPELL_TYPE_HEAL, PROC_SPELL_TYPE_MASK_ALL, PROC_SPELL_TYPE_NO_DMG_HEAL, and SpellProcTestEntry::SpellTypeMask.
|
inlineprotected |
Check if the proc flags indicate a spell-type event that needs SpellInfo.
References PERIODIC_PROC_FLAG_MASK, PROC_FLAG_DONE_TRAP_ACTIVATION, and SPELL_PROC_FLAG_MASK.
Referenced by CreateEventInfo().
|
inlineprotected |
Check if entry requires SpellFamily matching (which we can't test without SpellInfo) Any entry with SpellFamilyName > 0 will cause CanSpellTriggerProcOnEvent to access eventInfo.GetSpellInfo() which returns null in our test, causing a crash.
References SpellProcTestEntry::SpellFamilyName.
|
inlineoverrideprotected |
References _allEntries, _defaultSpellInfo, _originalWorld, _worldMock, SpellInfoBuilder::Build(), GetAllSpellProcTestEntries(), sWorld, SpellInfoBuilder::WithId(), and SpellInfoBuilder::WithSpellFamilyName().
|
inlineoverrideprotected |
References _damageInfo, _defaultSpellInfo, _healInfo, _originalWorld, _worldMock, and sWorld.
|
protected |
Referenced by SetUp().
|
protected |
Referenced by CreateEventInfo(), and TearDown().
|
protected |
Referenced by CreateEventInfo(), SetUp(), and TearDown().
|
protected |
Referenced by CreateEventInfo(), and TearDown().
|
protected |
Referenced by SetUp(), and TearDown().
|
protected |
Referenced by SetUp(), and TearDown().