![]() |
AzerothCore 3.3.5a
OpenSource WoW Emulator
|
Helper class to create SpellEntry test instances. More...
#include "SpellInfoTestHelper.h"
Public Member Functions | |
| TestSpellEntryHelper () | |
| TestSpellEntryHelper & | WithId (uint32 id) |
| TestSpellEntryHelper & | WithSpellFamilyName (uint32 familyName) |
| TestSpellEntryHelper & | WithSpellFamilyFlags (uint32 flag0, uint32 flag1=0, uint32 flag2=0) |
| TestSpellEntryHelper & | WithSchoolMask (uint32 schoolMask) |
| TestSpellEntryHelper & | WithProcFlags (uint32 procFlags) |
| TestSpellEntryHelper & | WithProcChance (uint32 procChance) |
| TestSpellEntryHelper & | WithProcCharges (uint32 procCharges) |
| TestSpellEntryHelper & | WithDmgClass (uint32 dmgClass) |
| TestSpellEntryHelper & | WithAttributesEx3 (uint32 attr) |
| TestSpellEntryHelper & | WithEffect (uint8 effIndex, uint32 effect, uint32 auraType=0) |
| TestSpellEntryHelper & | WithEffectTriggerSpell (uint8 effIndex, uint32 triggerSpell) |
| TestSpellEntryHelper & | WithEffectBasePoints (uint8 effIndex, int32 basePoints) |
| TestSpellEntryHelper & | WithEffectDieSides (uint8 effIndex, int32 dieSides) |
| TestSpellEntryHelper & | WithAttributes (uint32 attr) |
| SpellEntry const * | Get () const |
Private Attributes | |
| SpellEntry | _entry |
Helper class to create SpellEntry test instances.
This creates a SpellEntry with sensible defaults for unit testing.
|
inline |
References _entry, SpellEntry::EquippedItemClass, SpellEntry::Rank, SpellEntry::SchoolMask, SPELL_SCHOOL_MASK_NORMAL, and SpellEntry::SpellName.
|
inline |
References _entry.
Referenced by SpellInfoBuilder::Build(), and SpellInfoBuilder::BuildUnique().
|
inline |
References _entry, and SpellEntry::Attributes.
Referenced by SpellInfoBuilder::WithAttributes().
|
inline |
References _entry, and SpellEntry::AttributesEx3.
Referenced by SpellInfoBuilder::WithAttributesEx3().
|
inline |
References _entry, and SpellEntry::DmgClass.
Referenced by SpellInfoBuilder::WithDmgClass().
|
inline |
References _entry, SpellEntry::Effect, SpellEntry::EffectApplyAuraName, and MAX_SPELL_EFFECTS.
Referenced by SpellInfoBuilder::WithEffect().
|
inline |
References _entry, SpellEntry::EffectBasePoints, and MAX_SPELL_EFFECTS.
Referenced by SpellInfoBuilder::WithEffectBasePoints().
|
inline |
References _entry, SpellEntry::EffectDieSides, and MAX_SPELL_EFFECTS.
Referenced by SpellInfoBuilder::WithEffectDieSides().
|
inline |
References _entry, SpellEntry::EffectTriggerSpell, and MAX_SPELL_EFFECTS.
Referenced by SpellInfoBuilder::WithEffectTriggerSpell().
|
inline |
References _entry, and SpellEntry::Id.
Referenced by SpellInfoBuilder::WithId().
|
inline |
References _entry, and SpellEntry::ProcChance.
Referenced by SpellInfoBuilder::WithProcChance().
|
inline |
References _entry, and SpellEntry::ProcCharges.
Referenced by SpellInfoBuilder::WithProcCharges().
|
inline |
References _entry, and SpellEntry::ProcFlags.
Referenced by SpellInfoBuilder::WithProcFlags().
|
inline |
References _entry, and SpellEntry::SchoolMask.
Referenced by SpellInfoBuilder::WithSchoolMask().
|
inline |
References _entry, and SpellEntry::SpellFamilyFlags.
Referenced by SpellInfoBuilder::WithSpellFamilyFlags().
|
inline |
References _entry, and SpellEntry::SpellFamilyName.
Referenced by SpellInfoBuilder::WithSpellFamilyName().
|
private |
Referenced by Get(), TestSpellEntryHelper(), WithAttributes(), WithAttributesEx3(), WithDmgClass(), WithEffect(), WithEffectBasePoints(), WithEffectDieSides(), WithEffectTriggerSpell(), WithId(), WithProcChance(), WithProcCharges(), WithProcFlags(), WithSchoolMask(), WithSpellFamilyFlags(), and WithSpellFamilyName().