aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/map/Province.hpp
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.hpp
parent5f3e1f3b1b021cbee243236ad8947f203d0416be (diff)
Meta region loading
Diffstat (limited to 'src/openvic-simulation/map/Province.hpp')
-rw-r--r--src/openvic-simulation/map/Province.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/openvic-simulation/map/Province.hpp b/src/openvic-simulation/map/Province.hpp
index 67816ff..ca8138f 100644
--- a/src/openvic-simulation/map/Province.hpp
+++ b/src/openvic-simulation/map/Province.hpp
@@ -23,7 +23,7 @@ namespace OpenVic {
private:
const index_t index;
Region* region = nullptr;
- bool water = false;
+ bool has_region = false, water = false;
life_rating_t life_rating = 0;
IdentifierRegistry<Building> buildings;
// TODO - change this into a factory-like structure
@@ -40,7 +40,8 @@ namespace OpenVic {
index_t get_index() const;
Region* get_region() const;
- bool is_water() const;
+ bool get_has_region() const;
+ bool get_water() const;
life_rating_t get_life_rating() const;
bool add_building(Building&& building);
IDENTIFIER_REGISTRY_ACCESSORS(Building, building)