MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / getCountryFunding

Method getCountryFunding

src/Savegame/SavedGame.cpp:773–781  ·  view source on GitHub ↗

* Adds up the monthly funding of all the countries. * @return Total funding. */

Source from the content-addressed store, hash-verified

771 * @return Total funding.
772 */
773int 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.

Callers 3

MonthlyCostsStateMethod · 0.80
newSaveMethod · 0.80
FundingStateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected