#include "GridNotifiers.h"
◆ PowerCheck()
Acore::PowerCheck::PowerCheck |
( |
Powers const |
power, |
|
|
bool |
equals |
|
) |
| |
|
inlineexplicit |
Powers const _power
Definition: GridNotifiers.h:1684
bool const _equals
Definition: GridNotifiers.h:1685
◆ operator()()
bool Acore::PowerCheck::operator() |
( |
WorldObject const * |
object | ) |
const |
|
inline |
1679 {
1680 return object->ToUnit() && (
object->ToUnit()->getPowerType() ==
_power) ==
_equals;
1681 }
References _equals, and _power.
◆ _equals
bool const Acore::PowerCheck::_equals |
|
private |
◆ _power
Powers const Acore::PowerCheck::_power |
|
private |