* Adds up the monthly funding of all the countries. * @return Total funding. */
| 771 | * @return Total funding. |
| 772 | */ |
| 773 | int SavedGame::getCountryFunding() const |
| 774 | { |
| 775 | int total = 0; |
| 776 | for (std::vector<Country*>::const_iterator i = _countries.begin(); i != _countries.end(); ++i) |
| 777 | { |
| 778 | total += (*i)->getFunding().back(); |
| 779 | } |
| 780 | return total; |
| 781 | } |
| 782 | |
| 783 | /** |
| 784 | * Returns the list of world regions. |
no outgoing calls
no test coverage detected