aboutsummaryrefslogtreecommitdiff
path: root/src/openvic/map/Map.hpp
diff options
context:
space:
mode:
author Hop311 <hop3114@gmail.com>2023-07-26 22:37:25 +0200
committer Hop311 <hop3114@gmail.com>2023-07-26 22:37:25 +0200
commit532c9be36ca03ee13c92ca7d895aaf5b42eeb034 (patch)
treea91587787bf6742168279ac41f77b9ebabe0dffe /src/openvic/map/Map.hpp
parent0422f9fbb06e911a7cf6da11045b47cdda0d2d06 (diff)
Added pops to provinces
Diffstat (limited to 'src/openvic/map/Map.hpp')
-rw-r--r--src/openvic/map/Map.hpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/openvic/map/Map.hpp b/src/openvic/map/Map.hpp
index 3533a14..3e1370b 100644
--- a/src/openvic/map/Map.hpp
+++ b/src/openvic/map/Map.hpp
@@ -54,6 +54,8 @@ namespace OpenVic {
colour_index_map_t colour_index_map;
index_t selected_province = NULL_INDEX;
+ Pop::pop_size_t highest_province_population, total_map_population;
+
index_t get_index_from_colour(colour_t colour) const;
public:
@@ -93,7 +95,12 @@ namespace OpenVic {
static constexpr size_t MAPMODE_COLOUR_SIZE = 4;
return_t generate_mapmode_colours(Mapmode::index_t index, uint8_t* target) const;
- return_t setup(GoodManager const& good_manager, BuildingManager const& building_manager);
+ return_t setup(GoodManager const& good_manager, BuildingManager const& building_manager, PopManager const& pop_manager);
+
+ void update_highest_province_population();
+ Pop::pop_size_t get_highest_province_population() const;
+ void update_total_map_population();
+ Pop::pop_size_t get_total_map_population() const;
void update_state(Date const& today);
void tick(Date const& today);