Binary predicate for sorting Units based on percent value of health.
More...
#include <CommonPredicates.h>
Binary predicate for sorting Units based on percent value of health.
Definition at line 58 of file CommonPredicates.h.
◆ HealthPctOrderPred()
Trinity::Predicates::HealthPctOrderPred::HealthPctOrderPred |
( |
bool |
ascending = true | ) |
|
|
inline |
◆ operator()() [1/2]
bool Trinity::Predicates::HealthPctOrderPred::operator() |
( |
Unit const * |
a, |
|
|
Unit const * |
b |
|
) |
| const |
◆ operator()() [2/2]
bool Trinity::Predicates::HealthPctOrderPred::operator() |
( |
WorldObject const * |
objA, |
|
|
WorldObject const * |
objB |
|
) |
| const |
◆ _ascending
bool const Trinity::Predicates::HealthPctOrderPred::_ascending |
|
private |
The documentation for this class was generated from the following files: