aboutsummaryrefslogtreecommitdiff
path: root/src/openvic/map/Region.hpp
diff options
context:
space:
mode:
author Hop311 <hop3114@gmail.com>2023-05-16 20:59:39 +0200
committer Hop311 <hop3114@gmail.com>2023-05-16 20:59:39 +0200
commit42d9d1d5417deb5979a9d5775cfe97dcff4b77ba (patch)
tree440634772615531e704a5554aa59c9890cd9cd85 /src/openvic/map/Region.hpp
parent339e0278a2064f7eeb152fe8c5778840b609e9f3 (diff)
Changed from OpenVic2 to OpenVic
Diffstat (limited to 'src/openvic/map/Region.hpp')
-rw-r--r--src/openvic/map/Region.hpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/openvic/map/Region.hpp b/src/openvic/map/Region.hpp
new file mode 100644
index 0000000..953a3cc
--- /dev/null
+++ b/src/openvic/map/Region.hpp
@@ -0,0 +1,28 @@
+#pragma once
+
+#include "Province.hpp"
+
+namespace OpenVic {
+
+ struct ProvinceSet {
+ protected:
+ std::vector<Province*> provinces;
+ public:
+ size_t get_province_count() const;
+ bool contains_province(Province const* province) const;
+ std::vector<Province*> const& get_provinces() const;
+ };
+
+ /* REQUIREMENTS:
+ * MAP-6, MAP-44, MAP-48
+ */
+ struct Region : HasIdentifier, ProvinceSet {
+ friend struct Map;
+ private:
+ Region(std::string const& new_identifier);
+ public:
+ Region(Region&&) = default;
+
+ colour_t get_colour() const;
+ };
+}