* Returns the total amount of Containment Space * available in the base. * @return Containment Lab space. */
| 1118 | * @return Containment Lab space. |
| 1119 | */ |
| 1120 | int Base::getAvailableContainment() const |
| 1121 | { |
| 1122 | int total = 0; |
| 1123 | for (std::vector<BaseFacility*>::const_iterator i = _facilities.begin(); i != _facilities.end(); ++i) |
| 1124 | { |
| 1125 | if ((*i)->getBuildTime() == 0) |
| 1126 | { |
| 1127 | total += (*i)->getRules()->getAliens(); |
| 1128 | } |
| 1129 | } |
| 1130 | return total; |
| 1131 | } |
| 1132 | |
| 1133 | /** |
| 1134 | * Returns the base's battlescape status. |
no test coverage detected