#include "GridNotifiers.h"
◆ MostHPMissingGroupInRange()
Acore::MostHPMissingGroupInRange::MostHPMissingGroupInRange |
( |
Unit const * |
obj, |
|
|
float |
range, |
|
|
uint32 |
hp |
|
) |
| |
|
inline |
float i_range
Definition GridNotifiers.h:1550
Unit const * i_obj
Definition GridNotifiers.h:1549
uint32 i_hp
Definition GridNotifiers.h:1551
◆ operator()()
bool Acore::MostHPMissingGroupInRange::operator() |
( |
Unit * |
u | ) |
|
|
inline |
1511 {
1513 {
1514 return false;
1515 }
1516
1517 Player* player =
nullptr;
1519 {
1521 }
1522
1524 {
1526 }
1527
1528 if (!player)
1529 {
1530 return false;
1531 }
1532
1535 {
1536 return false;
1537 }
1538
1540 {
1542 return true;
1543 }
1544
1545 return false;
1546 }
bool IsMember(ObjectGuid guid) const
Definition Group.cpp:2346
bool IsPlayer() const
Definition Object.h:201
Player * ToPlayer()
Definition Object.h:202
Group * GetGroup()
Definition Player.h:2478
Unit * GetOwner() const
Definition Unit.cpp:10696
bool IsPet() const
Definition Unit.h:747
uint32 GetMaxHealth() const
Definition Unit.h:1032
bool IsAlive() const
Definition Unit.h:1707
uint32 GetHealth() const
Definition Unit.h:1031
ObjectGuid GetOwnerGUID() const
Definition Unit.h:668
bool IsHostileTo(Unit const *unit) const
Definition Unit.cpp:10307
bool IsWithinDistInMap(WorldObject const *obj, float dist2compare, bool is3D=true, bool useBoundingRadius=true) const
Definition Object.cpp:1326
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 |
The documentation for this class was generated from the following file: