#include "GridNotifiers.h"
◆ MostHPMissingGroupInRange()
Acore::MostHPMissingGroupInRange::MostHPMissingGroupInRange |
( |
Unit const * |
obj, |
|
|
float |
range, |
|
|
uint32 |
hp |
|
) |
| |
|
inline |
float i_range
Definition: GridNotifiers.h:1523
Unit const * i_obj
Definition: GridNotifiers.h:1522
uint32 i_hp
Definition: GridNotifiers.h:1524
◆ operator()()
bool Acore::MostHPMissingGroupInRange::operator() |
( |
Unit * |
u | ) |
|
|
inline |
1484 {
1486 {
1487 return false;
1488 }
1489
1490 Player* player =
nullptr;
1492 {
1494 }
1495
1497 {
1499 }
1500
1501 if (!player)
1502 {
1503 return false;
1504 }
1505
1508 {
1509 return false;
1510 }
1511
1513 {
1515 return true;
1516 }
1517
1518 return false;
1519 }
bool IsPlayer() const
Definition: Object.h:200
Player * ToPlayer()
Definition: Object.h:201
static ObjectGuid GetGUID(Object const *o)
Definition: Object.h:112
bool IsWithinDistInMap(WorldObject const *obj, float dist2compare, bool is3D=true, bool useBoundingRadius=true) const
Definition: Object.cpp:1332
Definition: Player.h:1081
Group * GetGroup()
Definition: Player.h:2468
Unit * GetOwner() const
Definition: Unit.cpp:10600
bool IsPet() const
Definition: Unit.h:754
uint32 GetMaxHealth() const
Definition: Unit.h:1030
bool IsAlive() const
Definition: Unit.h:1654
uint32 GetHealth() const
Definition: Unit.h:1029
ObjectGuid GetOwnerGUID() const
Definition: Unit.h:678
bool IsHostileTo(Unit const *unit) const
Definition: Unit.cpp:10236
bool IsMember(ObjectGuid guid) const
Definition: Group.cpp:2332
References Player::GetGroup(), Object::GetGUID(), Unit::GetHealth(), Unit::GetMaxHealth(), Unit::GetOwner(), Unit::GetOwnerGUID(), i_hp, i_obj, i_range, Unit::IsAlive(), Unit::IsHostileTo(), Group::IsMember(), Unit::IsPet(), Object::IsPlayer(), WorldObject::IsWithinDistInMap(), and Object::ToPlayer().
◆ i_hp
uint32 Acore::MostHPMissingGroupInRange::i_hp |
|
private |
◆ i_obj
Unit const* Acore::MostHPMissingGroupInRange::i_obj |
|
private |
◆ i_range
float Acore::MostHPMissingGroupInRange::i_range |
|
private |