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

Builder for creating DamageInfoStub instances with fluent API. More...

#include "DamageHealInfoStub.h"

Public Member Functions

 DamageInfoStubBuilder ()=default
 
DamageInfoStubBuilderWithDamage (uint32_t damage)
 
DamageInfoStubBuilderWithOriginalDamage (uint32_t damage)
 
DamageInfoStubBuilderWithSchoolMask (uint32_t schoolMask)
 
DamageInfoStubBuilderWithAttackType (uint8_t attackType)
 
DamageInfoStubBuilderWithSpellInfo (SpellInfo const *spellInfo)
 
DamageInfoStubBuilderWithAbsorb (uint32_t absorb)
 
DamageInfoStubBuilderWithResist (uint32_t resist)
 
DamageInfoStubBuilderWithBlock (uint32_t block)
 
DamageInfoStubBuilderWithHitMask (uint32_t hitMask)
 
DamageInfoStub Build ()
 

Private Attributes

DamageInfoStub _stub
 

Detailed Description

Builder for creating DamageInfoStub instances with fluent API.

Constructor & Destructor Documentation

◆ DamageInfoStubBuilder()

DamageInfoStubBuilder::DamageInfoStubBuilder ( )
default

Member Function Documentation

◆ Build()

DamageInfoStub DamageInfoStubBuilder::Build ( )
inline
197{ return _stub; }
DamageInfoStub _stub
Definition DamageHealInfoStub.h:200

References _stub.

◆ WithAbsorb()

DamageInfoStubBuilder & DamageInfoStubBuilder::WithAbsorb ( uint32_t  absorb)
inline
174 {
175 _stub.SetAbsorb(absorb);
176 return *this;
177 }
void SetAbsorb(uint32_t absorb)
Definition DamageHealInfoStub.h:57

References _stub, and DamageInfoStub::SetAbsorb().

◆ WithAttackType()

DamageInfoStubBuilder & DamageInfoStubBuilder::WithAttackType ( uint8_t  attackType)
inline
162 {
163 _stub.SetAttackType(attackType);
164 return *this;
165 }
void SetAttackType(uint8_t attackType)
Definition DamageHealInfoStub.h:66

References _stub, and DamageInfoStub::SetAttackType().

◆ WithBlock()

DamageInfoStubBuilder & DamageInfoStubBuilder::WithBlock ( uint32_t  block)
inline
186 {
187 _stub.SetBlock(block);
188 return *this;
189 }
void SetBlock(uint32_t block)
Definition DamageHealInfoStub.h:59

References _stub, and DamageInfoStub::SetBlock().

◆ WithDamage()

DamageInfoStubBuilder & DamageInfoStubBuilder::WithDamage ( uint32_t  damage)
inline
143 {
144 _stub.SetDamage(damage);
145 _stub.SetOriginalDamage(damage);
146 return *this;
147 }
void SetOriginalDamage(uint32_t damage)
Definition DamageHealInfoStub.h:56
void SetDamage(uint32_t damage)
Definition DamageHealInfoStub.h:55

References _stub, DamageInfoStub::SetDamage(), and DamageInfoStub::SetOriginalDamage().

◆ WithHitMask()

DamageInfoStubBuilder & DamageInfoStubBuilder::WithHitMask ( uint32_t  hitMask)
inline
192 {
193 _stub.SetHitMask(hitMask);
194 return *this;
195 }
void SetHitMask(uint32_t hitMask)
Definition DamageHealInfoStub.h:74

References _stub, and DamageInfoStub::SetHitMask().

◆ WithOriginalDamage()

DamageInfoStubBuilder & DamageInfoStubBuilder::WithOriginalDamage ( uint32_t  damage)
inline
150 {
151 _stub.SetOriginalDamage(damage);
152 return *this;
153 }

References _stub, and DamageInfoStub::SetOriginalDamage().

◆ WithResist()

DamageInfoStubBuilder & DamageInfoStubBuilder::WithResist ( uint32_t  resist)
inline
180 {
181 _stub.SetResist(resist);
182 return *this;
183 }
void SetResist(uint32_t resist)
Definition DamageHealInfoStub.h:58

References _stub, and DamageInfoStub::SetResist().

◆ WithSchoolMask()

DamageInfoStubBuilder & DamageInfoStubBuilder::WithSchoolMask ( uint32_t  schoolMask)
inline
156 {
157 _stub.SetSchoolMask(schoolMask);
158 return *this;
159 }
void SetSchoolMask(uint32_t schoolMask)
Definition DamageHealInfoStub.h:65

References _stub, and DamageInfoStub::SetSchoolMask().

◆ WithSpellInfo()

DamageInfoStubBuilder & DamageInfoStubBuilder::WithSpellInfo ( SpellInfo const *  spellInfo)
inline
168 {
169 _stub.SetSpellInfo(spellInfo);
170 return *this;
171 }
void SetSpellInfo(SpellInfo const *spellInfo)
Definition DamageHealInfoStub.h:70

References _stub, and DamageInfoStub::SetSpellInfo().

Member Data Documentation

◆ _stub


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