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

#include <SpellScript.h>

Public Member Functions

 ObjectAreaTargetSelectHandler (SpellObjectAreaTargetSelectFnType _pObjectAreaTargetSelectHandlerScript, uint8 _effIndex, uint16 _targetType)
 
void Call (SpellScript *spellScript, std::list< WorldObject * > &targets)
 
- 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

SpellObjectAreaTargetSelectFnType pObjectAreaTargetSelectHandlerScript
 

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::ObjectAreaTargetSelectHandler::ObjectAreaTargetSelectHandler ( SpellObjectAreaTargetSelectFnType  _pObjectAreaTargetSelectHandlerScript,
uint8  _effIndex,
uint16  _targetType 
)
273  : TargetHook(_effIndex, _targetType, true, false)
274 {
275  pObjectAreaTargetSelectHandlerScript = _pObjectAreaTargetSelectHandlerScript;
276 }
TargetHook(uint8 _effectIndex, uint16 _targetType, bool _area, bool _dest)
Definition: SpellScript.cpp:212
SpellObjectAreaTargetSelectFnType pObjectAreaTargetSelectHandlerScript
Definition: SpellScript.h:225

Member Function Documentation

void SpellScript::ObjectAreaTargetSelectHandler::Call ( SpellScript spellScript,
std::list< WorldObject * > &  targets 
)
279 {
280  (spellScript->*pObjectAreaTargetSelectHandlerScript)(targets);
281 }
SpellObjectAreaTargetSelectFnType pObjectAreaTargetSelectHandlerScript
Definition: SpellScript.h:225

Member Data Documentation

SpellObjectAreaTargetSelectFnType SpellScript::ObjectAreaTargetSelectHandler::pObjectAreaTargetSelectHandlerScript
private

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