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

#include <SpellScript.h>

Public Member Functions

 EffectApplyHandler (AuraEffectApplicationModeFnType _pEffectHandlerScript, uint8 _effIndex, uint16 _effName, AuraEffectHandleModes _mode)
 
void Call (AuraScript *auraScript, AuraEffect const *_aurEff, AuraEffectHandleModes _mode)
 
- 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

AuraEffectApplicationModeFnType pEffectHandlerScript
 
AuraEffectHandleModes mode
 

Additional Inherited Members

- Protected Attributes inherited from _SpellScript::EffectHook
uint8 effIndex
 

Constructor & Destructor Documentation

AuraScript::EffectApplyHandler::EffectApplyHandler ( AuraEffectApplicationModeFnType  _pEffectHandlerScript,
uint8  _effIndex,
uint16  _effName,
AuraEffectHandleModes  _mode 
)
850  : AuraScript::EffectBase(_effIndex, _effName)
851 {
852  pEffectHandlerScript = _pEffectHandlerScript;
853  mode = _mode;
854 }
AuraEffectHandleModes mode
Definition: SpellScript.h:568
Definition: SpellScript.h:514
AuraEffectApplicationModeFnType pEffectHandlerScript
Definition: SpellScript.h:567

Member Function Documentation

void AuraScript::EffectApplyHandler::Call ( AuraScript auraScript,
AuraEffect const _aurEff,
AuraEffectHandleModes  _mode 
)
857 {
858  if (_mode & mode)
859  (auraScript->*pEffectHandlerScript)(_aurEff, _mode);
860 }
AuraEffectHandleModes mode
Definition: SpellScript.h:568
AuraEffectApplicationModeFnType pEffectHandlerScript
Definition: SpellScript.h:567

Member Data Documentation

AuraEffectHandleModes AuraScript::EffectApplyHandler::mode
private
AuraEffectApplicationModeFnType AuraScript::EffectApplyHandler::pEffectHandlerScript
private

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