* Adds up the monthly maintenance of all the bases. * @return Total maintenance. */
| 838 | * @return Total maintenance. |
| 839 | */ |
| 840 | int SavedGame::getBaseMaintenance() const |
| 841 | { |
| 842 | int total = 0; |
| 843 | for (std::vector<Base*>::const_iterator i = _bases.begin(); i != _bases.end(); ++i) |
| 844 | { |
| 845 | total += (*i)->getMonthlyMaintenace(); |
| 846 | } |
| 847 | return total; |
| 848 | } |
| 849 | |
| 850 | /** |
| 851 | * Returns the list of alien UFOs. |
no test coverage detected