21 #include <yaml-cpp/yaml.h> 37 std::vector<int> _activityXcom, _activityAlien;
44 void load(
const YAML::Node& node);
46 YAML::Node
save()
const;
void newMonth()
start new month of activity
Definition: Region.cpp:113
void addActivityAlien(int activity)
add alien activity in this region
Definition: Region.cpp:87
RuleRegion * getRules() const
Gets the region's ruleset.
Definition: Region.cpp:69
YAML::Node save() const
Saves the region to YAML.
Definition: Region.cpp:56
std::vector< int > & getActivityXcom()
get xcom activity to this region
Definition: Region.cpp:96
void addActivityXcom(int activity)
add xcom activity in this region
Definition: Region.cpp:78
std::vector< int > & getActivityAlien()
get xcom activity to this region
Definition: Region.cpp:105
void load(const YAML::Node &node)
Loads the region from YAML.
Definition: Region.cpp:46
Region(RuleRegion *rules)
Creates a new region of the specified type.
Definition: Region.cpp:29
Represents a region of the world.
Definition: Region.h:33
Represents a specific region of the world.
Definition: RuleRegion.h:71
~Region()
Cleans up the region.
Definition: Region.cpp:38
Definition: BaseInfoState.cpp:40