aboutsummaryrefslogtreecommitdiff
path: root/src/openvic2/map/Region.cpp
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/openvic2/map/Region.cpp
parent339e0278a2064f7eeb152fe8c5778840b609e9f3 (diff)
Changed from OpenVic2 to OpenVic
Diffstat (limited to 'src/openvic2/map/Region.cpp')
-rw-r--r--src/openvic2/map/Region.cpp24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/openvic2/map/Region.cpp b/src/openvic2/map/Region.cpp
deleted file mode 100644
index d6d8dcc..0000000
--- a/src/openvic2/map/Region.cpp
+++ /dev/null
@@ -1,24 +0,0 @@
-#include "Region.hpp"
-
-#include <cassert>
-
-using namespace OpenVic2;
-
-size_t ProvinceSet::get_province_count() const {
- return provinces.size();
-}
-
-bool ProvinceSet::contains_province(Province const* province) const {
- return province && std::find(provinces.begin(), provinces.end(), province) != provinces.end();
-}
-
-std::vector<Province*> const& ProvinceSet::get_provinces() const {
- return provinces;
-}
-
-Region::Region(std::string const& new_identifier) : HasIdentifier{ new_identifier } {}
-
-colour_t Region::get_colour() const {
- if (provinces.empty()) return FULL_COLOUR << 16;
- return provinces.front()->get_colour();
-}