![]() |
TrinityCore
|
#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 |
Definition at line 69 of file UnitAICommon.h.
Definition at line 67 of file UnitAICommon.cpp.
References _spellInfo, and ASSERT.
| bool SpellTargetSelector::operator() | ( | Unit const * | target | ) | const |
Definition at line 73 of file UnitAICommon.cpp.
References _caster, _spellInfo, SpellInfo::CheckTarget(), SpellRangeEntry::Flags, Unit::GetCombatReach(), WorldObject::GetSpellMinMaxRangeForTarget(), BaseEntity::GetTypeId(), Position::IsInDist(), Unit::isMoving(), Unit::IsWalking(), SpellRange::Max, SpellRange::Min, NOMINAL_MELEE_RANGE, SpellInfo::RangeEntry, SPELL_CAST_OK, SPELL_RANGE_MELEE, SPELL_RANGE_RANGED, and TYPEID_PLAYER.
|
private |
Definition at line 75 of file UnitAICommon.h.
Referenced by operator()().
|
private |
Definition at line 76 of file UnitAICommon.h.
Referenced by operator()(), and SpellTargetSelector().