TrinityCore
AuraScript::EffectCalcDamageAndHealingHandler Class Referencefinal

#include <SpellScript.h>

+ Inheritance diagram for AuraScript::EffectCalcDamageAndHealingHandler:

Classes

union  AuraEffectDamageAndHealingCalcFnType
 

Public Types

using SafeWrapperType = void(*)(AuraScript *auraScript, AuraEffect const *aurEff, Unit *victim, int32 &damageOrHealing, int32 &flatMod, float &pctMod, AuraEffectDamageAndHealingCalcFnType callImpl)
 

Public Member Functions

template<typename ScriptFunc >
 EffectCalcDamageAndHealingHandler (ScriptFunc handler, uint8 effIndex, uint16 auraType)
 
void Call (AuraScript *auraScript, AuraEffect const *aurEff, Unit *victim, int32 &damageOrHealing, int32 &flatMod, float &pctMod) const
 
- Public Member Functions inherited from AuraScript::EffectBase
 EffectBase (uint8 effIndex, uint16 auraType)
 
 EffectBase (EffectBase const &right)=delete
 
 EffectBase (EffectBase &&right) noexcept
 
EffectBaseoperator= (EffectBase const &right)=delete
 
EffectBaseoperator= (EffectBase &&right) noexcept
 
virtual ~EffectBase ()
 
std::string ToString () const
 
bool CheckEffect (SpellInfo const *spellInfo, uint8 effIndex) const override
 
- Public Member Functions inherited from SpellScriptBase::EffectHook
 EffectHook (uint8 effIndex)
 
 EffectHook (EffectHook const &right)=delete
 
 EffectHook (EffectHook &&right) noexcept
 
EffectHookoperator= (EffectHook const &right)=delete
 
EffectHookoperator= (EffectHook &&right) noexcept
 
virtual ~EffectHook ()
 
uint32 GetAffectedEffectsMask (SpellInfo const *spellInfo) const
 
bool IsEffectAffected (SpellInfo const *spellInfo, uint8 effIndex) const
 
virtual bool CheckEffect (SpellInfo const *spellInfo, uint8 effIndex) const =0
 
std::string EffIndexToString () const
 

Private Attributes

AuraEffectDamageAndHealingCalcFnType _callImpl
 
SafeWrapperType _safeWrapper
 

Additional Inherited Members

- Protected Attributes inherited from SpellScriptBase::EffectHook
uint8 _effIndex
 

Detailed Description

Definition at line 1510 of file SpellScript.h.

Member Typedef Documentation

◆ SafeWrapperType

using AuraScript::EffectCalcDamageAndHealingHandler::SafeWrapperType = void(*)(AuraScript* auraScript, AuraEffect const* aurEff, Unit* victim, int32& damageOrHealing, int32& flatMod, float& pctMod, AuraEffectDamageAndHealingCalcFnType callImpl)

Definition at line 1519 of file SpellScript.h.

Constructor & Destructor Documentation

◆ EffectCalcDamageAndHealingHandler()

template<typename ScriptFunc >
AuraScript::EffectCalcDamageAndHealingHandler::EffectCalcDamageAndHealingHandler ( ScriptFunc  handler,
uint8  effIndex,
uint16  auraType 
)
inlineexplicit

Definition at line 1522 of file SpellScript.h.

Member Function Documentation

◆ Call()

void AuraScript::EffectCalcDamageAndHealingHandler::Call ( AuraScript auraScript,
AuraEffect const *  aurEff,
Unit victim,
int32 damageOrHealing,
int32 flatMod,
float &  pctMod 
) const
inline

Definition at line 1554 of file SpellScript.h.

+ Here is the caller graph for this function:

Member Data Documentation

◆ _callImpl

AuraEffectDamageAndHealingCalcFnType AuraScript::EffectCalcDamageAndHealingHandler::_callImpl
private

Definition at line 1559 of file SpellScript.h.

◆ _safeWrapper

SafeWrapperType AuraScript::EffectCalcDamageAndHealingHandler::_safeWrapper
private

Definition at line 1560 of file SpellScript.h.


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