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

Method getBaseMaintenance

src/Savegame/SavedGame.cpp:840–848  ·  view source on GitHub ↗

* Adds up the monthly maintenance of all the bases. * @return Total maintenance. */

Source from the content-addressed store, hash-verified

838 * @return Total maintenance.
839 */
840int 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.

Callers 2

thinkMethod · 0.80
drawFinanceLinesMethod · 0.80

Calls 1

getMonthlyMaintenaceMethod · 0.80

Tested by

no test coverage detected