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

#include <SpellScript.h>

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 ()
 
uint32 GetAffectedEffectsMask (SpellInfo const *spellInfo)
 
bool IsEffectAffected (SpellInfo const *spellInfo, uint8 effIndex)
 
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
 

Constructor & Destructor Documentation

SpellScript::DestinationTargetSelectHandler::DestinationTargetSelectHandler ( SpellDestinationTargetSelectFnType  _DestinationTargetSelectHandlerScript,
uint8  _effIndex,
uint16  _targetType 
)
295  : TargetHook(_effIndex, _targetType, false, true)
296 {
297  DestinationTargetSelectHandlerScript = _DestinationTargetSelectHandlerScript;
298 }
TargetHook(uint8 _effectIndex, uint16 _targetType, bool _area, bool _dest)
Definition: SpellScript.cpp:212
SpellDestinationTargetSelectFnType DestinationTargetSelectHandlerScript
Definition: SpellScript.h:243

Member Function Documentation

void SpellScript::DestinationTargetSelectHandler::Call ( SpellScript spellScript,
SpellDestination target 
)
301 {
302  (spellScript->*DestinationTargetSelectHandlerScript)(target);
303 }
SpellDestinationTargetSelectFnType DestinationTargetSelectHandlerScript
Definition: SpellScript.h:243

Member Data Documentation

SpellDestinationTargetSelectFnType SpellScript::DestinationTargetSelectHandler::DestinationTargetSelectHandlerScript
private

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