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

#include "SpellScript.h"

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

Public Member Functions

 DestinationTargetSelectHandler (SpellDestinationTargetSelectFnType _DestinationTargetSelectHandlerScript, uint8 _effIndex, uint16 _targetType)
 
void Call (SpellScript *spellScript, SpellDestination &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

SpellDestinationTargetSelectFnType DestinationTargetSelectHandlerScript
 

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

◆ DestinationTargetSelectHandler()

SpellScript::DestinationTargetSelectHandler::DestinationTargetSelectHandler ( SpellDestinationTargetSelectFnType  _DestinationTargetSelectHandlerScript,
uint8  _effIndex,
uint16  _targetType 
)
306 : TargetHook(_effIndex, _targetType, false, true)
307{
308 DestinationTargetSelectHandlerScript = _DestinationTargetSelectHandlerScript;
309}
TargetHook(uint8 _effectIndex, uint16 _targetType, bool _area, bool _dest)
Definition: SpellScript.cpp:227
SpellDestinationTargetSelectFnType DestinationTargetSelectHandlerScript
Definition: SpellScript.h:283

References DestinationTargetSelectHandlerScript.

Member Function Documentation

◆ Call()

void SpellScript::DestinationTargetSelectHandler::Call ( SpellScript spellScript,
SpellDestination target 
)
312{
313 (spellScript->*DestinationTargetSelectHandlerScript)(target);
314}

Member Data Documentation

◆ DestinationTargetSelectHandlerScript

SpellDestinationTargetSelectFnType SpellScript::DestinationTargetSelectHandler::DestinationTargetSelectHandlerScript
private