![]() |
TrinityCore
|
#include <UnitAI.h>
Public Member Functions | |
| SpellTargetSelector (Unit *caster, uint32 spellId) | |
| bool | operator() (Unit const *target) const |
Private Attributes | |
| Unit const * | _caster |
| SpellInfo const * | _spellInfo |
Definition at line 372 of file UnitAI.cpp.
References _spellInfo, and ASSERT.
| bool SpellTargetSelector::operator() | ( | Unit const * | target | ) | const |
Definition at line 378 of file UnitAI.cpp.
References _caster, _spellInfo, SpellInfo::CheckTarget(), SpellRangeEntry::Flags, Unit::GetCombatReach(), Position::GetExactDistSq(), WorldObject::GetSpellMaxRangeForTarget(), WorldObject::GetSpellMinRangeForTarget(), Object::GetTypeId(), Unit::isMoving(), Unit::IsWalking(), NOMINAL_MELEE_RANGE, SpellInfo::RangeEntry, SPELL_CAST_OK, SPELL_RANGE_MELEE, SPELL_RANGE_RANGED, and TYPEID_PLAYER.
|
private |
Definition at line 86 of file UnitAI.h.
Referenced by operator()().
|
private |
Definition at line 87 of file UnitAI.h.
Referenced by operator()(), and SpellTargetSelector().