TrinityCore
SpellTargetSelector Struct Reference

#include <UnitAICommon.h>

Public Member Functions

 SpellTargetSelector (Unit *caster, uint32 spellId)
 
bool operator() (Unit const *target) const
 

Private Attributes

Unit const * _caster
 
SpellInfo const * _spellInfo
 

Detailed Description

Todo:
Add more checks from Spell::CheckCast

Definition at line 69 of file UnitAICommon.h.

Constructor & Destructor Documentation

◆ SpellTargetSelector()

SpellTargetSelector::SpellTargetSelector ( Unit caster,
uint32  spellId 
)

Definition at line 67 of file UnitAICommon.cpp.

Member Function Documentation

◆ operator()()

bool SpellTargetSelector::operator() ( Unit const *  target) const

Definition at line 73 of file UnitAICommon.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ _caster

Unit const* SpellTargetSelector::_caster
private

Definition at line 75 of file UnitAICommon.h.

◆ _spellInfo

SpellInfo const* SpellTargetSelector::_spellInfo
private

Definition at line 76 of file UnitAICommon.h.


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