TrinityCore
SpellScript::DamageAndHealingCalcHandler Class Referencefinal

#include <SpellScript.h>

Classes

union  DamageAndHealingCalcFnType
 

Public Types

using SafeWrapperType = void(*)(SpellScript *spellScript, Unit *victim, int32 &damageOrHealing, int32 &flatMod, float &pctMod, DamageAndHealingCalcFnType callImpl)
 

Public Member Functions

template<typename ScriptFunc >
 DamageAndHealingCalcHandler (ScriptFunc handler)
 
void Call (SpellScript *spellScript, Unit *victim, int32 &damageOrHealing, int32 &flatMod, float &pctMod) const
 

Private Attributes

DamageAndHealingCalcFnType _callImpl
 
SafeWrapperType _safeWrapper
 

Detailed Description

Definition at line 696 of file SpellScript.h.

Member Typedef Documentation

◆ SafeWrapperType

using SpellScript::DamageAndHealingCalcHandler::SafeWrapperType = void(*)(SpellScript* spellScript, Unit* victim, int32& damageOrHealing, int32& flatMod, float& pctMod, DamageAndHealingCalcFnType callImpl)

Definition at line 705 of file SpellScript.h.

Constructor & Destructor Documentation

◆ DamageAndHealingCalcHandler()

template<typename ScriptFunc >
SpellScript::DamageAndHealingCalcHandler::DamageAndHealingCalcHandler ( ScriptFunc  handler)
inlineexplicit

Definition at line 708 of file SpellScript.h.

Member Function Documentation

◆ Call()

void SpellScript::DamageAndHealingCalcHandler::Call ( SpellScript spellScript,
Unit victim,
int32 damageOrHealing,
int32 flatMod,
float &  pctMod 
) const
inline

Definition at line 739 of file SpellScript.h.

+ Here is the caller graph for this function:

Member Data Documentation

◆ _callImpl

DamageAndHealingCalcFnType SpellScript::DamageAndHealingCalcHandler::_callImpl
private

Definition at line 744 of file SpellScript.h.

◆ _safeWrapper

SafeWrapperType SpellScript::DamageAndHealingCalcHandler::_safeWrapper
private

Definition at line 745 of file SpellScript.h.


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