AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
SpellScript::EffectHandler Class Reference

#include "SpellScript.h"

Inheritance diagram for SpellScript::EffectHandler:
_SpellScript::EffectNameCheck _SpellScript::EffectHook

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 ()
 
uint8 GetAffectedEffectsMask (SpellInfo const *spellInfo)
 
bool IsEffectAffected (SpellInfo const *spellInfo, uint8 effIndex)
 
virtual bool CheckEffect (SpellInfo const *spellInfo, uint8 effIndex)=0
 
std::string EffIndexToString ()
 

Private Attributes

SpellEffectFnType pEffectHandlerScript
 

Additional Inherited Members

- Protected Attributes inherited from _SpellScript::EffectHook
uint8 effIndex
 

Detailed Description

Constructor & Destructor Documentation

◆ EffectHandler()

SpellScript::EffectHandler::EffectHandler ( SpellEffectFnType  _pEffectHandlerScript,
uint8  _effIndex,
uint16  _effName 
)
188{
189 pEffectHandlerScript = _pEffectHandlerScript;
190}
Definition: SpellScript.h:72
Definition: SpellScript.h:86
SpellEffectFnType pEffectHandlerScript
Definition: SpellScript.h:224

References pEffectHandlerScript.

Member Function Documentation

◆ Call()

void SpellScript::EffectHandler::Call ( SpellScript spellScript,
SpellEffIndex  effIndex 
)
203{
204 (spellScript->*pEffectHandlerScript)(effIndex);
205}
uint8 effIndex
Definition: SpellScript.h:82

◆ CheckEffect()

bool SpellScript::EffectHandler::CheckEffect ( SpellInfo const *  spellInfo,
uint8  effIndex 
)
overridevirtual

Implements _SpellScript::EffectHook.

198{
200}
bool Check(SpellInfo const *spellInfo, uint8 effIndex)
Definition: SpellScript.cpp:122

References _SpellScript::EffectNameCheck::Check().

◆ ToString()

std::string SpellScript::EffectHandler::ToString ( )
193{
194 return "Index: " + EffIndexToString() + " Name: " + _SpellScript::EffectNameCheck::ToString();
195}
std::string EffIndexToString()
Definition: SpellScript.cpp:104
std::string ToString()
Definition: SpellScript.cpp:131

References _SpellScript::EffectNameCheck::ToString().

Member Data Documentation

◆ pEffectHandlerScript

SpellEffectFnType SpellScript::EffectHandler::pEffectHandlerScript
private

Referenced by EffectHandler().