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

#include <SpellScript.h>

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

Constructor & Destructor Documentation

SpellScript::ObjectTargetSelectHandler::ObjectTargetSelectHandler ( SpellObjectTargetSelectFnType  _pObjectTargetSelectHandlerScript,
uint8  _effIndex,
uint16  _targetType 
)
284  : TargetHook(_effIndex, _targetType, false, false)
285 {
286  pObjectTargetSelectHandlerScript = _pObjectTargetSelectHandlerScript;
287 }
TargetHook(uint8 _effectIndex, uint16 _targetType, bool _area, bool _dest)
Definition: SpellScript.cpp:212
SpellObjectTargetSelectFnType pObjectTargetSelectHandlerScript
Definition: SpellScript.h:234

Member Function Documentation

void SpellScript::ObjectTargetSelectHandler::Call ( SpellScript spellScript,
WorldObject *&  target 
)
290 {
291  (spellScript->*pObjectTargetSelectHandlerScript)(target);
292 }
SpellObjectTargetSelectFnType pObjectTargetSelectHandlerScript
Definition: SpellScript.h:234

Member Data Documentation

SpellObjectTargetSelectFnType SpellScript::ObjectTargetSelectHandler::pObjectTargetSelectHandlerScript
private

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