Determines if the unit matches the unit type.
| 187 | |
| 188 | //! Determines if the unit matches the unit type. |
| 189 | struct IsUnit { |
| 190 | IsUnit(UNIT_TYPEID type) : type_(type) {}; |
| 191 | UNIT_TYPEID type_; |
| 192 | bool operator()(const Unit& unit) { return unit.unit_type == type_; }; |
| 193 | }; |
| 194 | |
| 195 | //! Determines if units matches the unit type. |
| 196 | struct IsUnits { |
no outgoing calls