diff options
author | ClarkeCode <clarke.john.robert@gmail.com> | 2023-05-01 02:48:35 +0200 |
---|---|---|
committer | ClarkeCode <clarke.john.robert@gmail.com> | 2023-05-01 02:48:35 +0200 |
commit | c92481448159d3a363d6a99b3025bd2358c3dab6 (patch) | |
tree | 3ee57808029036a7edab750f4454aeb6c50f3df3 /map/Region.hpp |
Initial commit
Diffstat (limited to 'map/Region.hpp')
-rw-r--r-- | map/Region.hpp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/map/Region.hpp b/map/Region.hpp new file mode 100644 index 0000000..3920dfc --- /dev/null +++ b/map/Region.hpp @@ -0,0 +1,30 @@ +#pragma once + +#include <set> + +#include "Province.hpp" + +namespace OpenVic2 { + + struct ProvinceSet { + protected: + std::set<Province*> provinces; + public: + size_t get_province_count() const; + bool contains_province(Province const* province) const; + std::set<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; + }; +} |