* Returns the total amount of laboratories * available in the base. * @return Laboratory space. */
| 677 | * @return Laboratory space. |
| 678 | */ |
| 679 | int Base::getAvailableLaboratories() const |
| 680 | { |
| 681 | int total = 0; |
| 682 | for (std::vector<BaseFacility*>::const_iterator i = _facilities.begin(); i != _facilities.end(); ++i) |
| 683 | { |
| 684 | if ((*i)->getBuildTime() == 0) |
| 685 | { |
| 686 | total += (*i)->getRules()->getLaboratories(); |
| 687 | } |
| 688 | } |
| 689 | return total; |
| 690 | } |
| 691 | |
| 692 | /** |
| 693 | * Returns the amount of workshops used up |
no test coverage detected