* Returns the total amount of hangars * available in the base. * @return Number of hangars. */
| 754 | * @return Number of hangars. |
| 755 | */ |
| 756 | int Base::getAvailableHangars() const |
| 757 | { |
| 758 | int total = 0; |
| 759 | for (std::vector<BaseFacility*>::const_iterator i = _facilities.begin(); i != _facilities.end(); ++i) |
| 760 | { |
| 761 | if ((*i)->getBuildTime() == 0) |
| 762 | { |
| 763 | total += (*i)->getRules()->getCrafts(); |
| 764 | } |
| 765 | } |
| 766 | return total; |
| 767 | } |
| 768 | |
| 769 | /** |
| 770 | * Return laboratories space not used by a ResearchProject |
no test coverage detected