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

#include <SpellScript.h>

Public Member Functions

 EffectHandler (SpellEffectFnType _pEffectHandlerScript, uint8 _effIndex, uint16 _effName)
 
std::string ToString ()
 
bool CheckEffect (SpellInfo const *spellInfo, uint8 effIndex) override
 
void Call (SpellScript *spellScript, SpellEffIndex effIndex)
 
- Public Member Functions inherited from _SpellScript::EffectNameCheck
 EffectNameCheck (uint16 _effName)
 
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

SpellEffectFnType pEffectHandlerScript
 

Additional Inherited Members

- Protected Attributes inherited from _SpellScript::EffectHook
uint8 effIndex
 

Constructor & Destructor Documentation

SpellScript::EffectHandler::EffectHandler ( SpellEffectFnType  _pEffectHandlerScript,
uint8  _effIndex,
uint16  _effName 
)
183 {
184  pEffectHandlerScript = _pEffectHandlerScript;
185 }
SpellEffectFnType pEffectHandlerScript
Definition: SpellScript.h:194
Definition: SpellScript.h:71
Definition: SpellScript.h:85

Member Function Documentation

void SpellScript::EffectHandler::Call ( SpellScript spellScript,
SpellEffIndex  effIndex 
)
198 {
199  (spellScript->*pEffectHandlerScript)(effIndexToHandle);
200 }
SpellEffectFnType pEffectHandlerScript
Definition: SpellScript.h:194
bool SpellScript::EffectHandler::CheckEffect ( SpellInfo const spellInfo,
uint8  effIndex 
)
overridevirtual

Implements _SpellScript::EffectHook.

193 {
194  return _SpellScript::EffectNameCheck::Check(spellEntry, effIndexToCheck);
195 }
bool Check(SpellInfo const *spellInfo, uint8 effIndex)
Definition: SpellScript.cpp:111

+ Here is the call graph for this function:

std::string SpellScript::EffectHandler::ToString ( )
188 {
189  return "Index: " + EffIndexToString() + " Name: " +_SpellScript::EffectNameCheck::ToString();
190 }
std::string EffIndexToString()
Definition: SpellScript.cpp:93
std::string ToString()
Definition: SpellScript.cpp:123

+ Here is the call graph for this function:

Member Data Documentation

SpellEffectFnType SpellScript::EffectHandler::pEffectHandlerScript
private

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