19 #ifndef OPENXCOM_COUNTRY_H
20 #define OPENXCOM_COUNTRY_H
22 #include <yaml-cpp/yaml.h>
39 std::vector<int> _funding, _activityXcom, _activityAlien;
47 void load(
const YAML::Node& node);
49 YAML::Node
save()
const;
67 void newMonth(
int xcomTotal,
int alienTotal);
const std::vector< int > & getFunding() const
Gets the country's funding.
Definition: Country.cpp:96
const std::vector< int > & getActivityXcom() const
get xcom activity to this country
Definition: Country.cpp:143
RuleCountry * getRules() const
Gets the country's ruleset.
Definition: Country.cpp:87
~Country()
Cleans up the country.
Definition: Country.cpp:44
YAML::Node save() const
Saves the country to YAML.
Definition: Country.cpp:65
void newMonth(int xcomTotal, int alienTotal)
store last month's counters, start new counters, set this month's change.
Definition: Country.cpp:165
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
int getSatisfaction()
get the country's satisfaction level
Definition: Country.cpp:114
const std::vector< int > & getActivityAlien() const
get xcom activity to this country
Definition: Country.cpp:152
Country(RuleCountry *rules, bool gen=true)
Creates a new country of the specified type.
Definition: Country.cpp:31
void setNewPact()
sign a pact at the end of this month.
Definition: Country.cpp:240
Represents a country that funds the player.
Definition: Country.h:34
Represents a specific funding country.
Definition: RuleCountry.h:33
void addActivityAlien(int activity)
add alien activity in this country
Definition: Country.cpp:134
bool getNewPact()
are we signing a new pact?
Definition: Country.cpp:232
void setFunding(int funding)
Sets the country's funding.
Definition: Country.cpp:105
bool getPact()
have we signed a pact?
Definition: Country.cpp:250