* Returns the total amount of stores * available in the base. * @return Storage space. */
| 607 | * @return Storage space. |
| 608 | */ |
| 609 | int Base::getAvailableStores() const |
| 610 | { |
| 611 | int total = 0; |
| 612 | for (std::vector<BaseFacility*>::const_iterator i = _facilities.begin(); i != _facilities.end(); ++i) |
| 613 | { |
| 614 | if ((*i)->getBuildTime() == 0) |
| 615 | { |
| 616 | total += (*i)->getRules()->getStorage(); |
| 617 | } |
| 618 | } |
| 619 | return total; |
| 620 | } |
| 621 | |
| 622 | /** |
| 623 | * Determines space taken up by ammo clips about to rearm craft. |
no test coverage detected