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

#include "SpellScript.h"

Inheritance diagram for SpellScript::ObjectTargetSelectHandler:
SpellScript::TargetHook _SpellScript::EffectHook

Public Member Functions

 ObjectTargetSelectHandler (SpellObjectTargetSelectFnType _pObjectTargetSelectHandlerScript, uint8 _effIndex, uint16 _targetType)
 
void Call (SpellScript *spellScript, WorldObject *&target)
 
- Public Member Functions inherited from SpellScript::TargetHook
 TargetHook (uint8 _effectIndex, uint16 _targetType, bool _area, bool _dest)
 
bool CheckEffect (SpellInfo const *spellInfo, uint8 effIndex) override
 
std::string ToString ()
 
uint16 GetTarget () const
 
- 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

SpellObjectTargetSelectFnType pObjectTargetSelectHandlerScript
 

Additional Inherited Members

- Protected Attributes inherited from SpellScript::TargetHook
uint16 targetType
 
bool area
 
bool dest
 
- Protected Attributes inherited from _SpellScript::EffectHook
uint8 effIndex
 

Detailed Description

Constructor & Destructor Documentation

◆ ObjectTargetSelectHandler()

SpellScript::ObjectTargetSelectHandler::ObjectTargetSelectHandler ( SpellObjectTargetSelectFnType  _pObjectTargetSelectHandlerScript,
uint8  _effIndex,
uint16  _targetType 
)
295 : TargetHook(_effIndex, _targetType, false, false)
296{
297 pObjectTargetSelectHandlerScript = _pObjectTargetSelectHandlerScript;
298}
TargetHook(uint8 _effectIndex, uint16 _targetType, bool _area, bool _dest)
Definition: SpellScript.cpp:227
SpellObjectTargetSelectFnType pObjectTargetSelectHandlerScript
Definition: SpellScript.h:274

References pObjectTargetSelectHandlerScript.

Member Function Documentation

◆ Call()

void SpellScript::ObjectTargetSelectHandler::Call ( SpellScript spellScript,
WorldObject *&  target 
)
301{
302 (spellScript->*pObjectTargetSelectHandlerScript)(target);
303}

Member Data Documentation

◆ pObjectTargetSelectHandlerScript

SpellObjectTargetSelectFnType SpellScript::ObjectTargetSelectHandler::pObjectTargetSelectHandlerScript
private