◆ HealthPctOrderPred()
Acore::HealthPctOrderPred::HealthPctOrderPred |
( |
bool |
ascending = true | ) |
|
|
inline |
bool const _ascending
Definition Unit.h:2231
◆ operator()() [1/2]
bool Acore::HealthPctOrderPred::operator() |
( |
Unit const * |
a, |
|
|
Unit const * |
b |
|
) |
| const |
|
inline |
2224 {
2225 float rA = a->GetMaxHealth() ? float(a->GetHealth()) / float(a->GetMaxHealth()) : 0.0f;
2226 float rB = b->GetMaxHealth() ? float(b->GetHealth()) / float(b->GetMaxHealth()) : 0.0f;
2228 }
References _ascending, Unit::GetHealth(), and Unit::GetMaxHealth().
◆ operator()() [2/2]
◆ _ascending
bool const Acore::HealthPctOrderPred::_ascending |
|
private |
The documentation for this class was generated from the following file:
- azerothcore-wotlk/src/server/game/Entities/Unit/Unit.h