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

#include "SpellScript.h"

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

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 ()
 
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

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
 

Detailed Description

Constructor & Destructor Documentation

◆ ObjectAreaTargetSelectHandler()

SpellScript::ObjectAreaTargetSelectHandler::ObjectAreaTargetSelectHandler ( SpellObjectAreaTargetSelectFnType  _pObjectAreaTargetSelectHandlerScript,
uint8  _effIndex,
uint16  _targetType 
)
284 : TargetHook(_effIndex, _targetType, true, false)
285{
286 pObjectAreaTargetSelectHandlerScript = _pObjectAreaTargetSelectHandlerScript;
287}
TargetHook(uint8 _effectIndex, uint16 _targetType, bool _area, bool _dest)
Definition: SpellScript.cpp:227
SpellObjectAreaTargetSelectFnType pObjectAreaTargetSelectHandlerScript
Definition: SpellScript.h:265

References pObjectAreaTargetSelectHandlerScript.

Member Function Documentation

◆ Call()

void SpellScript::ObjectAreaTargetSelectHandler::Call ( SpellScript spellScript,
std::list< WorldObject * > &  targets 
)
290{
291 (spellScript->*pObjectAreaTargetSelectHandlerScript)(targets);
292}

Member Data Documentation

◆ pObjectAreaTargetSelectHandlerScript

SpellObjectAreaTargetSelectFnType SpellScript::ObjectAreaTargetSelectHandler::pObjectAreaTargetSelectHandlerScript
private