#include "GridNotifiers.h"
◆ MostHPMissingGroupInRange()
Acore::MostHPMissingGroupInRange::MostHPMissingGroupInRange |
( |
Unit const * |
obj, |
|
|
float |
range, |
|
|
uint32 |
hp |
|
) |
| |
|
inline |
float i_range
Definition: GridNotifiers.h:1519
Unit const * i_obj
Definition: GridNotifiers.h:1518
uint32 i_hp
Definition: GridNotifiers.h:1520
◆ operator()()
bool Acore::MostHPMissingGroupInRange::operator() |
( |
Unit * |
u | ) |
|
|
inline |
1480 {
1482 {
1483 return false;
1484 }
1485
1486 Player* player =
nullptr;
1488 {
1490 }
1491
1493 {
1495 }
1496
1497 if (!player)
1498 {
1499 return false;
1500 }
1501
1504 {
1505 return false;
1506 }
1507
1509 {
1511 return true;
1512 }
1513
1514 return false;
1515 }
@ TYPEID_PLAYER
Definition: ObjectGuid.h:38
Player * ToPlayer()
Definition: Object.h:195
TypeID GetTypeId() const
Definition: Object.h:121
static ObjectGuid GetGUID(Object const *o)
Definition: Object.h:106
bool IsWithinDistInMap(WorldObject const *obj, float dist2compare, bool is3D=true, bool useBoundingRadius=true) const
Definition: Object.cpp:1321
Definition: Player.h:1056
Group * GetGroup()
Definition: Player.h:2431
Unit * GetOwner() const
Definition: Unit.cpp:10599
bool IsPet() const
Definition: Unit.h:1425
uint32 GetMaxHealth() const
Definition: Unit.h:1455
bool IsAlive() const
Definition: Unit.h:1822
uint32 GetHealth() const
Definition: Unit.h:1454
ObjectGuid GetOwnerGUID() const
Definition: Unit.h:1828
bool IsHostileTo(Unit const *unit) const
Definition: Unit.cpp:10244
bool IsMember(ObjectGuid guid) const
Definition: Group.cpp:2275
References Player::GetGroup(), Object::GetGUID(), Unit::GetHealth(), Unit::GetMaxHealth(), Unit::GetOwner(), Unit::GetOwnerGUID(), Object::GetTypeId(), i_hp, i_obj, i_range, Unit::IsAlive(), Unit::IsHostileTo(), Group::IsMember(), Unit::IsPet(), WorldObject::IsWithinDistInMap(), Object::ToPlayer(), and TYPEID_PLAYER.
◆ 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 |