#include "GridNotifiers.h"
◆ NearestHostileUnitCheck() [1/2]
| Acore::NearestHostileUnitCheck::NearestHostileUnitCheck |
( |
Creature const * |
creature, |
|
|
float |
dist = 0, |
|
|
bool |
playerOnly = false |
|
) |
| |
|
inlineexplicit |
1219 {
1220 m_range = (dist == 0 ? 9999 : dist);
1221 }
bool i_playerOnly
Definition GridNotifiers.h:1240
Creature const * me
Definition GridNotifiers.h:1238
float m_range
Definition GridNotifiers.h:1239
References m_range.
◆ NearestHostileUnitCheck() [2/2]
◆ operator()()
| bool Acore::NearestHostileUnitCheck::operator() |
( |
Unit * |
u | ) |
|
|
inline |
1223 {
1225 return false;
1226
1228 return false;
1229
1231 return false;
1232
1234 return true;
1235 }
bool IsPlayer() const
Definition Object.h:201
bool IsValidAttackTarget(Unit const *target, SpellInfo const *bySpell=nullptr) const
Definition Unit.cpp:10761
bool IsWithinDistInMap(WorldObject const *obj, float dist2compare, bool is3D=true, bool incOwnRadius=true, bool incTargetRadius=true) const
Definition Object.cpp:1377
float GetDistance(WorldObject const *obj) const
Definition Object.cpp:1295
References WorldObject::GetDistance(), i_playerOnly, Object::IsPlayer(), Unit::IsValidAttackTarget(), WorldObject::IsWithinDistInMap(), m_range, and me.
◆ i_playerOnly
| bool Acore::NearestHostileUnitCheck::i_playerOnly |
|
private |
◆ m_range
| float Acore::NearestHostileUnitCheck::m_range |
|
private |
◆ me
| Creature const* Acore::NearestHostileUnitCheck::me |
|
private |
The documentation for this class was generated from the following file: