![]() |
TrinityCore
|
Binary predicate for sorting Units based on percent value of a power. More...
#include <CommonPredicates.h>
Public Member Functions | |
| PowerPctOrderPred (Powers power, bool ascending=true) | |
| bool | operator() (WorldObject const *objA, WorldObject const *objB) const |
| bool | operator() (Unit const *a, Unit const *b) const |
Private Attributes | |
| Powers const | _power |
| bool const | _ascending |
Binary predicate for sorting Units based on percent value of a power.
Definition at line 44 of file CommonPredicates.h.
|
inline |
Definition at line 47 of file CommonPredicates.h.
Definition at line 32 of file CommonPredicates.cpp.
References Unit::GetPowerPct().
| bool Trinity::Predicates::PowerPctOrderPred::operator() | ( | WorldObject const * | objA, |
| WorldObject const * | objB | ||
| ) | const |
Definition at line 23 of file CommonPredicates.cpp.
References Unit::GetPowerPct(), and Object::ToUnit().
|
private |
Definition at line 54 of file CommonPredicates.h.
|
private |
Definition at line 53 of file CommonPredicates.h.