#include "GridNotifiers.h"
◆ PowerCheck()
| Acore::PowerCheck::PowerCheck |
( |
Powers const |
power, |
|
|
bool |
equals |
|
) |
| |
|
inlineexplicit |
Powers const _power
Definition GridNotifiers.h:1714
bool const _equals
Definition GridNotifiers.h:1715
◆ operator()()
| bool Acore::PowerCheck::operator() |
( |
WorldObject const * |
object | ) |
const |
|
inline |
1709 {
1710 return object->ToUnit() && (
object->ToUnit()->getPowerType() ==
_power) ==
_equals;
1711 }
References _equals, and _power.
◆ _equals
| bool const Acore::PowerCheck::_equals |
|
private |
◆ _power
| Powers const Acore::PowerCheck::_power |
|
private |
The documentation for this class was generated from the following file: