aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/map/Province.hpp
diff options
context:
space:
mode:
author zaaarf <zaaarf@proton.me>2023-09-19 18:07:11 +0200
committer zaaarf <zaaarf@proton.me>2023-09-19 18:07:11 +0200
commit88948eb11127c6d3442fbd476f7b456643b58728 (patch)
tree46ae571e7dddc83ebc7e87ae83726356d0f71934 /src/openvic-simulation/map/Province.hpp
parent3017b6338ca67c0c18f404cf8e162918e36e94e7 (diff)
fix: various tweaks during review
Diffstat (limited to 'src/openvic-simulation/map/Province.hpp')
-rw-r--r--src/openvic-simulation/map/Province.hpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/openvic-simulation/map/Province.hpp b/src/openvic-simulation/map/Province.hpp
index 3f75a99..370d05c 100644
--- a/src/openvic-simulation/map/Province.hpp
+++ b/src/openvic-simulation/map/Province.hpp
@@ -24,11 +24,15 @@ namespace OpenVic {
friend struct Province;
private:
- Province const* province;
- distance_t distance;
+ Province const* const province;
+ const distance_t distance;
flags_t flags;
adjacency_t(Province const* province, distance_t distance, flags_t flags);
+
+ public:
+ distance_t get_distance() const;
+ flags_t get_flags();
};
static constexpr index_t NULL_INDEX = 0, MAX_INDEX = (1 << (8 * sizeof(index_t))) - 1;