#include "GridNotifiers.h"
◆ NearestHostileUnitInAttackDistanceCheck() [1/2]
Acore::NearestHostileUnitInAttackDistanceCheck::NearestHostileUnitInAttackDistanceCheck |
( |
Creature const * |
creature, |
|
|
float |
dist |
|
) |
| |
|
inlineexplicit |
Creature const * me
Definition: GridNotifiers.h:1236
float m_range
Definition: GridNotifiers.h:1237
◆ NearestHostileUnitInAttackDistanceCheck() [2/2]
◆ operator()()
bool Acore::NearestHostileUnitInAttackDistanceCheck::operator() |
( |
Unit * |
u | ) |
|
|
inline |
1225 {
1227 return false;
1228
1230 return false;
1231
1233 return true;
1234 }
bool CanStartAttack(Unit const *u) const
Definition: Creature.cpp:1903
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
References Creature::CanStartAttack(), WorldObject::GetDistance(), WorldObject::IsWithinDistInMap(), m_range, and me.
◆ m_range
float Acore::NearestHostileUnitInAttackDistanceCheck::m_range |
|
private |
◆ me
Creature const* Acore::NearestHostileUnitInAttackDistanceCheck::me |
|
private |