![]() |
TrinityCore
|
#include <UnitAICommon.h>
Public Member Functions | |
| FarthestTargetSelector (Unit const *unit, float dist, bool playerOnly, bool inLos) | |
| bool | operator() (Unit const *target) const |
Private Attributes | |
| Unit const * | _me |
| float | _dist |
| bool | _playerOnly |
| bool | _inLos |
Definition at line 105 of file UnitAICommon.h.
|
inline |
Definition at line 107 of file UnitAICommon.h.
| bool FarthestTargetSelector::operator() | ( | Unit const * | target | ) | const |
Definition at line 169 of file UnitAICommon.cpp.
References _dist, _inLos, _me, _playerOnly, BaseEntity::GetTypeId(), Unit::IsWithinCombatRange(), WorldObject::IsWithinLOSInMap(), and TYPEID_PLAYER.
|
private |
Definition at line 112 of file UnitAICommon.h.
Referenced by operator()().
|
private |
Definition at line 114 of file UnitAICommon.h.
Referenced by operator()().
|
private |
Definition at line 111 of file UnitAICommon.h.
Referenced by operator()().
|
private |
Definition at line 113 of file UnitAICommon.h.
Referenced by operator()().