* Returns the total amount of workshops * available in the base. * @return Workshop space. */
| 710 | * @return Workshop space. |
| 711 | */ |
| 712 | int Base::getAvailableWorkshops() const |
| 713 | { |
| 714 | int total = 0; |
| 715 | for (std::vector<BaseFacility*>::const_iterator i = _facilities.begin(); i != _facilities.end(); ++i) |
| 716 | { |
| 717 | if ((*i)->getBuildTime() == 0) |
| 718 | { |
| 719 | total += (*i)->getRules()->getWorkshops(); |
| 720 | } |
| 721 | } |
| 722 | return total; |
| 723 | } |
| 724 | |
| 725 | /** |
| 726 | * Returns the amount of hangars used up |
no test coverage detected