◆ HealthPctOrderPred()
| Acore::HealthPctOrderPred::HealthPctOrderPred |
( |
bool |
ascending = true | ) |
|
|
inline |
bool const _ascending
Definition Unit.h:2272
◆ operator()() [1/2]
| bool Acore::HealthPctOrderPred::operator() |
( |
Unit const * |
a, |
|
|
Unit const * |
b |
|
) |
| const |
|
inline |
2265 {
2266 float rA = a->GetMaxHealth() ? float(a->GetHealth()) / float(a->GetMaxHealth()) : 0.0f;
2267 float rB = b->GetMaxHealth() ? float(b->GetHealth()) / float(b->GetMaxHealth()) : 0.0f;
2269 }
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