TrinityCore
SpellScript::TargetHook Class Reference

#include <SpellScript.h>

+ Inheritance diagram for SpellScript::TargetHook:

Public Member Functions

 TargetHook (uint8 effectIndex, uint16 targetType, bool area, bool dest)
 
 TargetHook (TargetHook const &right)=delete
 
 TargetHook (TargetHook &&right) noexcept
 
TargetHookoperator= (TargetHook const &right)=delete
 
TargetHookoperator= (TargetHook &&right) noexcept
 
virtual ~TargetHook ()
 
bool CheckEffect (SpellInfo const *spellInfo, uint8 effIndex) const override
 
std::string ToString () const
 
uint16 GetTarget () const
 
- Public Member Functions inherited from SpellScriptBase::EffectHook
 EffectHook (uint8 effIndex)
 
 EffectHook (EffectHook const &right)=delete
 
 EffectHook (EffectHook &&right) noexcept
 
EffectHookoperator= (EffectHook const &right)=delete
 
EffectHookoperator= (EffectHook &&right) noexcept
 
virtual ~EffectHook ()
 
uint32 GetAffectedEffectsMask (SpellInfo const *spellInfo) const
 
bool IsEffectAffected (SpellInfo const *spellInfo, uint8 effIndex) const
 
virtual bool CheckEffect (SpellInfo const *spellInfo, uint8 effIndex) const =0
 
std::string EffIndexToString () const
 

Protected Attributes

uint16 _targetType
 
bool _area
 
bool _dest
 
- Protected Attributes inherited from SpellScriptBase::EffectHook
uint8 _effIndex
 

Detailed Description

Definition at line 507 of file SpellScript.h.

Constructor & Destructor Documentation

◆ TargetHook() [1/3]

SpellScript::TargetHook::TargetHook ( uint8  effectIndex,
uint16  targetType,
bool  area,
bool  dest 
)

Definition at line 185 of file SpellScript.cpp.

◆ TargetHook() [2/3]

SpellScript::TargetHook::TargetHook ( TargetHook const &  right)
delete

◆ TargetHook() [3/3]

SpellScript::TargetHook::TargetHook ( TargetHook &&  right)
defaultnoexcept

◆ ~TargetHook()

SpellScript::TargetHook::~TargetHook ( )
virtualdefault

Member Function Documentation

◆ CheckEffect()

bool SpellScript::TargetHook::CheckEffect ( SpellInfo const *  spellInfo,
uint8  effIndex 
) const
overridevirtual

Implements SpellScriptBase::EffectHook.

Definition at line 197 of file SpellScript.cpp.

+ Here is the call graph for this function:

◆ GetTarget()

uint16 SpellScript::TargetHook::GetTarget ( ) const
inline

Definition at line 518 of file SpellScript.h.

+ Here is the caller graph for this function:

◆ operator=() [1/2]

SpellScript::TargetHook & SpellScript::TargetHook::operator= ( TargetHook &&  right)
defaultnoexcept

◆ operator=() [2/2]

TargetHook & SpellScript::TargetHook::operator= ( TargetHook const &  right)
delete

◆ ToString()

std::string SpellScript::TargetHook::ToString ( ) const

Definition at line 192 of file SpellScript.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ _area

bool SpellScript::TargetHook::_area
protected

Definition at line 521 of file SpellScript.h.

◆ _dest

bool SpellScript::TargetHook::_dest
protected

Definition at line 522 of file SpellScript.h.

◆ _targetType

uint16 SpellScript::TargetHook::_targetType
protected

Definition at line 520 of file SpellScript.h.


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