AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
ProcEventInfoBuilder Class Reference

Builder class for creating ProcEventInfo test instances. More...

#include "ProcEventInfoHelper.h"

Public Member Functions

 ProcEventInfoBuilder ()
 
ProcEventInfoBuilderWithActor (Unit *actor)
 
ProcEventInfoBuilderWithActionTarget (Unit *target)
 
ProcEventInfoBuilderWithProcTarget (Unit *target)
 
ProcEventInfoBuilderWithTypeMask (uint32 typeMask)
 
ProcEventInfoBuilderWithSpellTypeMask (uint32 spellTypeMask)
 
ProcEventInfoBuilderWithSpellPhaseMask (uint32 spellPhaseMask)
 
ProcEventInfoBuilderWithHitMask (uint32 hitMask)
 
ProcEventInfoBuilderWithSpell (Spell const *spell)
 
ProcEventInfoBuilderWithDamageInfo (DamageInfo *damageInfo)
 
ProcEventInfoBuilderWithHealInfo (HealInfo *healInfo)
 
ProcEventInfoBuilderWithTriggeredByAuraSpell (SpellInfo const *spellInfo)
 
ProcEventInfoBuilderWithProcAuraEffectIndex (int8 index)
 
ProcEventInfo Build ()
 

Private Attributes

Unit_actor
 
Unit_actionTarget
 
Unit_procTarget
 
uint32 _typeMask
 
uint32 _spellTypeMask
 
uint32 _spellPhaseMask
 
uint32 _hitMask
 
Spell const * _spell
 
DamageInfo_damageInfo
 
HealInfo_healInfo
 
SpellInfo const * _triggeredByAuraSpell
 
int8 _procAuraEffectIndex
 

Detailed Description

Builder class for creating ProcEventInfo test instances.

This helper allows easy construction of ProcEventInfo objects for unit testing the proc system without requiring full game objects.

Constructor & Destructor Documentation

◆ ProcEventInfoBuilder()

ProcEventInfoBuilder::ProcEventInfoBuilder ( )
inline
34 : _actor(nullptr), _actionTarget(nullptr), _procTarget(nullptr),
36 _spell(nullptr), _damageInfo(nullptr), _healInfo(nullptr),
Unit * _actor
Definition ProcEventInfoHelper.h:120
uint32 _hitMask
Definition ProcEventInfoHelper.h:126
int8 _procAuraEffectIndex
Definition ProcEventInfoHelper.h:131
uint32 _spellPhaseMask
Definition ProcEventInfoHelper.h:125
Spell const * _spell
Definition ProcEventInfoHelper.h:127
SpellInfo const * _triggeredByAuraSpell
Definition ProcEventInfoHelper.h:130
Unit * _actionTarget
Definition ProcEventInfoHelper.h:121
HealInfo * _healInfo
Definition ProcEventInfoHelper.h:129
uint32 _typeMask
Definition ProcEventInfoHelper.h:123
DamageInfo * _damageInfo
Definition ProcEventInfoHelper.h:128
uint32 _spellTypeMask
Definition ProcEventInfoHelper.h:124
Unit * _procTarget
Definition ProcEventInfoHelper.h:122

Member Function Documentation

◆ Build()

◆ WithActionTarget()

ProcEventInfoBuilder & ProcEventInfoBuilder::WithActionTarget ( Unit target)
inline
46 {
47 _actionTarget = target;
48 return *this;
49 }

References _actionTarget.

Referenced by TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().

◆ WithActor()

ProcEventInfoBuilder & ProcEventInfoBuilder::WithActor ( Unit actor)
inline
40 {
41 _actor = actor;
42 return *this;
43 }

References _actor.

Referenced by TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().

◆ WithDamageInfo()

ProcEventInfoBuilder & ProcEventInfoBuilder::WithDamageInfo ( DamageInfo damageInfo)
inline

◆ WithHealInfo()

ProcEventInfoBuilder & ProcEventInfoBuilder::WithHealInfo ( HealInfo healInfo)
inline
94 {
95 _healInfo = healInfo;
96 return *this;
97 }

References _healInfo.

Referenced by TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().

◆ WithHitMask()

◆ WithProcAuraEffectIndex()

ProcEventInfoBuilder & ProcEventInfoBuilder::WithProcAuraEffectIndex ( int8  index)
inline
106 {
107 _procAuraEffectIndex = index;
108 return *this;
109 }

References _procAuraEffectIndex.

◆ WithProcTarget()

ProcEventInfoBuilder & ProcEventInfoBuilder::WithProcTarget ( Unit target)
inline
52 {
53 _procTarget = target;
54 return *this;
55 }

References _procTarget.

◆ WithSpell()

ProcEventInfoBuilder & ProcEventInfoBuilder::WithSpell ( Spell const *  spell)
inline
82 {
83 _spell = spell;
84 return *this;
85 }

References _spell.

◆ WithSpellPhaseMask()

◆ WithSpellTypeMask()

ProcEventInfoBuilder & ProcEventInfoBuilder::WithSpellTypeMask ( uint32  spellTypeMask)
inline

◆ WithTriggeredByAuraSpell()

ProcEventInfoBuilder & ProcEventInfoBuilder::WithTriggeredByAuraSpell ( SpellInfo const *  spellInfo)
inline
100 {
101 _triggeredByAuraSpell = spellInfo;
102 return *this;
103 }

References _triggeredByAuraSpell.

◆ WithTypeMask()

Member Data Documentation

◆ _actionTarget

Unit* ProcEventInfoBuilder::_actionTarget
private

Referenced by Build(), and WithActionTarget().

◆ _actor

Unit* ProcEventInfoBuilder::_actor
private

Referenced by Build(), and WithActor().

◆ _damageInfo

DamageInfo* ProcEventInfoBuilder::_damageInfo
private

Referenced by Build(), and WithDamageInfo().

◆ _healInfo

HealInfo* ProcEventInfoBuilder::_healInfo
private

Referenced by Build(), and WithHealInfo().

◆ _hitMask

uint32 ProcEventInfoBuilder::_hitMask
private

Referenced by Build(), and WithHitMask().

◆ _procAuraEffectIndex

int8 ProcEventInfoBuilder::_procAuraEffectIndex
private

Referenced by Build(), and WithProcAuraEffectIndex().

◆ _procTarget

Unit* ProcEventInfoBuilder::_procTarget
private

Referenced by Build(), and WithProcTarget().

◆ _spell

Spell const* ProcEventInfoBuilder::_spell
private

Referenced by Build(), and WithSpell().

◆ _spellPhaseMask

uint32 ProcEventInfoBuilder::_spellPhaseMask
private

Referenced by Build(), and WithSpellPhaseMask().

◆ _spellTypeMask

uint32 ProcEventInfoBuilder::_spellTypeMask
private

Referenced by Build(), and WithSpellTypeMask().

◆ _triggeredByAuraSpell

SpellInfo const* ProcEventInfoBuilder::_triggeredByAuraSpell
private

Referenced by Build(), and WithTriggeredByAuraSpell().

◆ _typeMask

uint32 ProcEventInfoBuilder::_typeMask
private

Referenced by Build(), and WithTypeMask().


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