aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/map/Province.cpp
diff options
context:
space:
mode:
author Hop311 <hop3114@gmail.com>2023-09-14 21:09:10 +0200
committer Hop311 <hop3114@gmail.com>2023-09-14 21:09:10 +0200
commit46bbbb038e5fa21e25fa33c4fee84e4b14690885 (patch)
treed7db71a88ac188da7c12c23a12a34637d19ea92d /src/openvic-simulation/map/Province.cpp
parent5f3e1f3b1b021cbee243236ad8947f203d0416be (diff)
Meta region loading
Diffstat (limited to 'src/openvic-simulation/map/Province.cpp')
-rw-r--r--src/openvic-simulation/map/Province.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/openvic-simulation/map/Province.cpp b/src/openvic-simulation/map/Province.cpp
index f53de3a..b4a80b5 100644
--- a/src/openvic-simulation/map/Province.cpp
+++ b/src/openvic-simulation/map/Province.cpp
@@ -22,7 +22,11 @@ Region* Province::get_region() const {
return region;
}
-bool Province::is_water() const {
+bool Province::get_has_region() const {
+ return has_region;
+}
+
+bool Province::get_water() const {
return water;
}
@@ -64,7 +68,7 @@ bool Province::load_pop_list(PopManager const& pop_manager, ast::NodeCPtr root)
}
bool Province::add_pop(Pop&& pop) {
- if (!is_water()) {
+ if (!get_water()) {
pops.push_back(std::move(pop));
return true;
} else {