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