#include "GridNotifiers.h"
◆ AnyUnfriendlyAttackableVisibleUnitInObjectRangeCheck()
Acore::AnyUnfriendlyAttackableVisibleUnitInObjectRangeCheck::AnyUnfriendlyAttackableVisibleUnitInObjectRangeCheck |
( |
Unit const * |
funit, |
|
|
float |
range |
|
) |
| |
|
inline |
Unit const * i_funit
Definition: GridNotifiers.h:971
float i_range
Definition: GridNotifiers.h:972
◆ operator()()
bool Acore::AnyUnfriendlyAttackableVisibleUnitInObjectRangeCheck::operator() |
( |
Unit const * |
u | ) |
|
|
inline |
961 {
962 return u->IsAlive()
966 && !u->IsCritter()
967 && !u->IsTotem()
968 ;
969 }
bool IsWithinDistInMap(WorldObject const *obj, float dist2compare, bool is3D=true, bool useBoundingRadius=true) const
Definition: Object.cpp:1332
bool IsFriendlyTo(Unit const *unit) const
Definition: Unit.cpp:10241
bool IsValidAttackTarget(Unit const *target, SpellInfo const *bySpell=nullptr) const
Definition: Unit.cpp:13871
References i_funit, i_range, Unit::IsAlive(), Unit::IsCritter(), Unit::IsFriendlyTo(), Unit::IsTotem(), Unit::IsValidAttackTarget(), and WorldObject::IsWithinDistInMap().
◆ i_funit
Unit const* Acore::AnyUnfriendlyAttackableVisibleUnitInObjectRangeCheck::i_funit |
|
private |
◆ i_range
float Acore::AnyUnfriendlyAttackableVisibleUnitInObjectRangeCheck::i_range |
|
private |