#include "UnitAI.h"
◆ RangeSelector()
RangeSelector::RangeSelector |
( |
Unit const * |
unit, |
|
|
float |
maxDist, |
|
|
bool |
playerOnly, |
|
|
bool |
inLos, |
|
|
float |
minDist = 0.f |
|
) |
| |
|
inline |
Unit const * _me
Definition UnitAI.h:191
float _maxDist
Definition UnitAI.h:192
bool _inLos
Definition UnitAI.h:194
float _minDist
Definition UnitAI.h:192
bool _playerOnly
Definition UnitAI.h:193
◆ operator()()
bool RangeSelector::operator() |
( |
Unit const * |
target | ) |
const |
|
inline |
174 {
176 return false;
177
179 return false;
180
182 return false;
183
185 return false;
186
187 return true;
188 }
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 RangeSelector::_inLos |
|
private |
◆ _maxDist
float RangeSelector::_maxDist |
|
private |
◆ _me
Unit const* RangeSelector::_me |
|
private |
◆ _minDist
float RangeSelector::_minDist |
|
private |
◆ _playerOnly
bool RangeSelector::_playerOnly |
|
private |
The documentation for this struct was generated from the following file:
- azerothcore-wotlk/src/server/game/AI/CoreAI/UnitAI.h