TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
AuraScript::EffectCalcAmountHandler Class Reference

#include <SpellScript.h>

Public Member Functions

 EffectCalcAmountHandler (AuraEffectCalcAmountFnType _pEffectHandlerScript, uint8 _effIndex, uint16 _effName)
 
void Call (AuraScript *auraScript, AuraEffect const *aurEff, int32 &amount, bool &canBeRecalculated)
 
- Public Member Functions inherited from AuraScript::EffectBase
 EffectBase (uint8 _effIndex, uint16 _effName)
 
std::string ToString ()
 
bool CheckEffect (SpellInfo const *spellInfo, uint8 effIndex) override
 
- Public Member Functions inherited from _SpellScript::EffectAuraNameCheck
 EffectAuraNameCheck (uint16 _effAurName)
 
bool Check (SpellInfo const *spellInfo, uint8 effIndex)
 
std::string ToString ()
 
- Public Member Functions inherited from _SpellScript::EffectHook
 EffectHook (uint8 _effIndex)
 
virtual ~EffectHook ()
 
uint32 GetAffectedEffectsMask (SpellInfo const *spellInfo)
 
bool IsEffectAffected (SpellInfo const *spellInfo, uint8 effIndex)
 
std::string EffIndexToString ()
 

Private Attributes

AuraEffectCalcAmountFnType pEffectHandlerScript
 

Additional Inherited Members

- Protected Attributes inherited from _SpellScript::EffectHook
uint8 effIndex
 

Constructor & Destructor Documentation

AuraScript::EffectCalcAmountHandler::EffectCalcAmountHandler ( AuraEffectCalcAmountFnType  _pEffectHandlerScript,
uint8  _effIndex,
uint16  _effName 
)
817  : AuraScript::EffectBase(_effIndex, _effName)
818 {
819  pEffectHandlerScript = _pEffectHandlerScript;
820 }
Definition: SpellScript.h:514
AuraEffectCalcAmountFnType pEffectHandlerScript
Definition: SpellScript.h:543

Member Function Documentation

void AuraScript::EffectCalcAmountHandler::Call ( AuraScript auraScript,
AuraEffect const aurEff,
int32 amount,
bool canBeRecalculated 
)
823 {
824  (auraScript->*pEffectHandlerScript)(aurEff, amount, canBeRecalculated);
825 }
AuraEffectCalcAmountFnType pEffectHandlerScript
Definition: SpellScript.h:543

Member Data Documentation

AuraEffectCalcAmountFnType AuraScript::EffectCalcAmountHandler::pEffectHandlerScript
private

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