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);
Represents a country that funds the player.
Definition: Country.h:35
const std::vector< int > & getActivityXcom() const
get xcom activity to this country
Definition: Country.cpp:143
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
bool getNewPact()
are we signing a new pact?
Definition: Country.cpp:232
Country(RuleCountry *rules, bool gen=true)
Creates a new country of the specified type.
Definition: Country.cpp:31
RuleCountry * getRules() const
Gets the country's ruleset.
Definition: Country.cpp:87
void setNewPact()
sign a pact at the end of this month.
Definition: Country.cpp:240
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
const std::vector< int > & getActivityAlien() const
get xcom activity to this country
Definition: Country.cpp:152
int getSatisfaction()
get the country's satisfaction level
Definition: Country.cpp:114
const std::vector< int > & getFunding() const
Gets the country's funding.
Definition: Country.cpp:96
void load(const YAML::Node &node)
Loads the country from YAML.
Definition: Country.cpp:52
bool getPact()
have we signed a pact?
Definition: Country.cpp:250
void setFunding(int funding)
Sets the country's funding.
Definition: Country.cpp:105
~Country()
Cleans up the country.
Definition: Country.cpp:44
Represents a specific funding country.
Definition: RuleCountry.h:34
COPYING:
Definition: BaseInfoState.cpp:41