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