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

Method SavedGame

src/Savegame/SavedGame.cpp:98–107  ·  view source on GitHub ↗

* Initializes a brand new saved game according to the specified difficulty. */

Source from the content-addressed store, hash-verified

96 * Initializes a brand new saved game according to the specified difficulty.
97 */
98SavedGame::SavedGame() : _difficulty(DIFF_BEGINNER), _ironman(false), _globeLon(0.0), _globeLat(0.0), _globeZoom(0), _battleGame(0), _debug(false), _warned(false), _monthsPassed(-1), _graphRegionToggles(""), _graphCountryToggles(""), _graphFinanceToggles(""), _selectedBase(0)
99{
100 _time = new GameTime(6, 1, 1, 1999, 12, 0, 0);
101 _alienStrategy = new AlienStrategy();
102 _funds.push_back(0);
103 _maintenance.push_back(0);
104 _researchScores.push_back(0);
105 _incomes.push_back(0);
106 _expenditures.push_back(0);
107}
108
109/**
110 * Deletes the game content from memory.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected