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

Method Country

src/Savegame/Country.cpp:31–39  ·  view source on GitHub ↗

* Initializes a country of the specified type. * @param rules Pointer to ruleset. * @param gen Generate new funding. */

Source from the content-addressed store, hash-verified

29 * @param gen Generate new funding.
30 */
31Country::Country(RuleCountry *rules, bool gen) : _rules(rules), _pact(false), _newPact(false), _funding(0), _satisfaction(2)
32{
33 if (gen)
34 {
35 _funding.push_back(_rules->generateFunding());
36 }
37 _activityAlien.push_back(0);
38 _activityXcom.push_back(0);
39}
40
41/**
42 *

Callers

nothing calls this directly

Calls 1

generateFundingMethod · 0.80

Tested by

no test coverage detected