--------------------------------------------- IS BEING CONSTRUCTED ---------------------------------------
| 226 | } |
| 227 | //--------------------------------------------- IS BEING CONSTRUCTED --------------------------------------- |
| 228 | bool UnitInterface::isBeingConstructed() const |
| 229 | { |
| 230 | if ( this->isMorphing() ) |
| 231 | return true; |
| 232 | if ( this->isCompleted() ) |
| 233 | return false; |
| 234 | if ( this->getType().getRace() != Races::Terran ) |
| 235 | return true; |
| 236 | return this->getBuildUnit() != nullptr; |
| 237 | } |
| 238 | // ------------------------------------------ STATUS --------------------------------------------- |
| 239 | bool UnitInterface::isDefenseMatrixed() const |
| 240 | { |