#include "GridNotifiers.h"
◆ NearestPlayerInObjectRangeCheck() [1/2]
Acore::NearestPlayerInObjectRangeCheck::NearestPlayerInObjectRangeCheck |
( |
WorldObject const * |
obj, |
|
|
float |
range |
|
) |
| |
|
inline |
1404 {
1405 }
WorldObject const * i_obj
Definition: GridNotifiers.h:1418
float i_range
Definition: GridNotifiers.h:1419
◆ NearestPlayerInObjectRangeCheck() [2/2]
◆ operator()()
bool Acore::NearestPlayerInObjectRangeCheck::operator() |
( |
Player * |
u | ) |
|
|
inline |
1408 {
1410 {
1412 return true;
1413 }
1414
1415 return false;
1416 }
bool IsWithinDistInMap(WorldObject const *obj, float dist2compare, bool is3D=true, bool useBoundingRadius=true) const
Definition: Object.cpp:1321
float GetDistance(WorldObject const *obj) const
Definition: Object.cpp:1245
bool IsAlive() const
Definition: Unit.h:1822
References WorldObject::GetDistance(), i_obj, i_range, Unit::IsAlive(), and WorldObject::IsWithinDistInMap().
◆ i_obj
WorldObject const* Acore::NearestPlayerInObjectRangeCheck::i_obj |
|
private |
◆ i_range
float Acore::NearestPlayerInObjectRangeCheck::i_range |
|
private |