| 2514 | this->getID() == UnitTypes::Zerg_Hive; |
| 2515 | } |
| 2516 | bool UnitType::isMineralField() const |
| 2517 | { |
| 2518 | return this->getID() == UnitTypes::Resource_Mineral_Field || |
| 2519 | this->getID() == UnitTypes::Resource_Mineral_Field_Type_2 || |
| 2520 | this->getID() == UnitTypes::Resource_Mineral_Field_Type_3; |
| 2521 | } |
| 2522 | bool UnitType::isCritter() const |
| 2523 | { |
| 2524 | switch ( *this ) |