#include <Unit.h>
Definition at line 2129 of file Unit.h.
◆ HealthPctOrderPred()
Trinity::HealthPctOrderPred::HealthPctOrderPred |
( |
bool |
ascending = true | ) |
|
|
inline |
◆ operator()() [1/2]
bool Trinity::HealthPctOrderPred::operator() |
( |
Unit const * |
a, |
|
|
Unit const * |
b |
|
) |
| const |
|
inline |
Definition at line 2143 of file Unit.h.
2144 {
2145 float rA = a->GetMaxHealth() ? float(a->GetHealth()) / float(a->GetMaxHealth()) : 0.0f;
2146 float rB = b->GetMaxHealth() ? float(b->GetHealth()) / float(b->GetMaxHealth()) : 0.0f;
2148 }
◆ operator()() [2/2]
Definition at line 2134 of file Unit.h.
2135 {
2141 }
static Unit * ToUnit(Object *o)
uint64 GetMaxHealth() const
◆ _ascending
bool const Trinity::HealthPctOrderPred::_ascending |
|
private |
The documentation for this class was generated from the following file:
- server/game/Entities/Unit/Unit.h