#include "UnitAI.h"
◆ FarthestTargetSelector()
FarthestTargetSelector::FarthestTargetSelector |
( |
Unit const * |
unit, |
|
|
float |
maxDist, |
|
|
bool |
playerOnly, |
|
|
bool |
inLos, |
|
|
float |
minDist = 0.f |
|
) |
| |
|
inline |
Unit const * _me
Definition UnitAI.h:186
float _maxDist
Definition UnitAI.h:187
bool _playerOnly
Definition UnitAI.h:188
bool _inLos
Definition UnitAI.h:189
float _minDist
Definition UnitAI.h:187
◆ operator()()
bool FarthestTargetSelector::operator() |
( |
Unit const * |
target | ) |
const |
|
inline |
169 {
171 return false;
172
174 return false;
175
177 return false;
178
180 return false;
181
182 return true;
183 }
bool IsWithinLOSInMap(WorldObject const *obj, VMAP::ModelIgnoreFlags ignoreFlags=VMAP::ModelIgnoreFlags::Nothing, LineOfSightChecks checks=LINEOFSIGHT_ALL_CHECKS, Optional< float > collisionHeight={ }, Optional< float > combatReach={ }) const
Definition Object.cpp:1358
bool IsInRange(WorldObject const *obj, float minRange, float maxRange, bool is3D=true) const
Definition Object.cpp:1415
References _inLos, _maxDist, _me, _minDist, _playerOnly, WorldObject::IsInRange(), Object::IsPlayer(), and WorldObject::IsWithinLOSInMap().
◆ _inLos
bool FarthestTargetSelector::_inLos |
|
private |
◆ _maxDist
float FarthestTargetSelector::_maxDist |
|
private |
◆ _me
Unit const* FarthestTargetSelector::_me |
|
private |
◆ _minDist
float FarthestTargetSelector::_minDist |
|
private |
◆ _playerOnly
bool FarthestTargetSelector::_playerOnly |
|
private |
The documentation for this struct was generated from the following file:
- azerothcore-wotlk/src/server/game/AI/CoreAI/UnitAI.h