#include <UnitAI.h>
DefaultTargetSelector::DefaultTargetSelector |
( |
Unit const * |
unit, |
|
|
float |
dist, |
|
|
bool |
playerOnly, |
|
|
int32 |
aura |
|
) |
| |
|
inline |
const Unit * me
Definition: UnitAI.h:45
float m_dist
Definition: UnitAI.h:46
int32 m_aura
Definition: UnitAI.h:48
bool m_playerOnly
Definition: UnitAI.h:47
bool DefaultTargetSelector::operator() |
( |
Unit const * |
target | ) |
const |
|
inline |
70 if (m_dist < 0.0f && me->IsWithinCombatRange(target, -
m_dist))
77 if (!target->HasAura(
m_aura))
82 if (target->HasAura(-
m_aura))
bool IsWithinCombatRange(const Unit *obj, float dist2compare) const
Definition: Unit.cpp:492
const Unit * me
Definition: UnitAI.h:45
float m_dist
Definition: UnitAI.h:46
int32 m_aura
Definition: UnitAI.h:48
Definition: ObjectGuid.h:33
bool m_playerOnly
Definition: UnitAI.h:47
int32 DefaultTargetSelector::m_aura |
float DefaultTargetSelector::m_dist |
bool DefaultTargetSelector::m_playerOnly |
The documentation for this struct was generated from the following file: