aboutsummaryrefslogtreecommitdiff
path: root/extension/src/openvic2/Region.hpp
blob: 4ebabd113d2d1f872ff863b602909e7730a4235b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#pragma once

#include <set>

#include "Province.hpp"

namespace OpenVic2 {
   struct Map;

   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:
      Province::colour_t get_colour() const;
   };
}