aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/map/Map.hpp
diff options
context:
space:
mode:
author Joel Machens <ajmach6@gmail.com>2023-11-27 02:01:10 +0100
committer BrickPi <49528459+BrickPi@users.noreply.github.com>2023-11-28 14:53:38 +0100
commite78249bea71e2503be77f9e4cfab6ffdf164126b (patch)
tree117e2f59081629f89c6837c52bea00c34b0968b4 /src/openvic-simulation/map/Map.hpp
parenta54898b7770e0d66b729216173960686c67e58bb (diff)
States First Pass
Diffstat (limited to 'src/openvic-simulation/map/Map.hpp')
-rw-r--r--src/openvic-simulation/map/Map.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/openvic-simulation/map/Map.hpp b/src/openvic-simulation/map/Map.hpp
index 4f87237..cef0962 100644
--- a/src/openvic-simulation/map/Map.hpp
+++ b/src/openvic-simulation/map/Map.hpp
@@ -7,6 +7,7 @@
#include "openvic-simulation/map/Region.hpp"
#include "openvic-simulation/map/TerrainType.hpp"
+#include "openvic-simulation/map/State.hpp"
namespace OpenVic {
namespace fs = std::filesystem;
@@ -69,6 +70,8 @@ namespace OpenVic {
Province::index_t get_index_from_colour(colour_t colour) const;
bool _generate_province_adjacencies();
+ StateManager state_manager;
+
public:
Map();
@@ -102,6 +105,8 @@ namespace OpenVic {
IDENTIFIER_REGISTRY_ACCESSORS(mapmode)
Mapmode const* get_mapmode_by_index(size_t index) const;
+ REF_GETTERS(state_manager);
+
/* The mapmode colour image contains of a list of base colours and stripe colours. Each colour is four bytes
* in RGBA format, with the alpha value being used to interpolate with the terrain colour, so A = 0 is fully terrain
* and A = 255 is fully the RGB colour packaged with A. The base and stripe colours for each province are packed