21 #include <yaml-cpp/yaml.h> 38 std::vector<int> _funding, _activityXcom, _activityAlien;
46 void load(
const YAML::Node& node);
48 YAML::Node
save()
const;
66 void newMonth(
int xcomTotal,
int alienTotal,
int pactScore);
std::vector< int > & getActivityAlien()
get xcom activity to this country
Definition: Country.cpp:152
bool getNewPact() const
are we signing a new pact?
Definition: Country.cpp:231
~Country()
Cleans up the country.
Definition: Country.cpp:44
void addActivityXcom(int activity)
add xcom activity in this country
Definition: Country.cpp:125
void load(const YAML::Node &node)
Loads the country from YAML.
Definition: Country.cpp:52
std::vector< int > & getActivityXcom()
get xcom activity to this country
Definition: Country.cpp:143
int getSatisfaction() const
get the country's satisfaction level
Definition: Country.cpp:114
bool getPact() const
have we signed a pact?
Definition: Country.cpp:249
Country(RuleCountry *rules, bool gen=true)
Creates a new country of the specified type.
Definition: Country.cpp:31
void newMonth(int xcomTotal, int alienTotal, int pactScore)
store last month's counters, start new counters, set this month's change.
Definition: Country.cpp:166
std::vector< int > & getFunding()
Gets the country's funding.
Definition: Country.cpp:96
void setNewPact()
sign a pact at the end of this month.
Definition: Country.cpp:239
Represents a country that funds the player.
Definition: Country.h:33
Represents a specific funding country.
Definition: RuleCountry.h:31
YAML::Node save() const
Saves the country to YAML.
Definition: Country.cpp:65
void addActivityAlien(int activity)
add alien activity in this country
Definition: Country.cpp:134
void setFunding(int funding)
Sets the country's funding.
Definition: Country.cpp:105
RuleCountry * getRules() const
Gets the country's ruleset.
Definition: Country.cpp:87
void setPact()
sign a pact immediately
Definition: Country.cpp:257
Definition: BaseInfoState.cpp:40