blob: e67edaaf8e28430b5faf10fb1fa32632fd3b3771 (
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
30
31
32
33
34
35
36
37
|
#pragma once
#include "openvic/map/Province.hpp"
namespace OpenVic {
struct ProvinceSet {
protected:
std::vector<Province*> provinces;
bool locked = false;
public:
return_t add_province(Province* province);
void lock(bool log = false);
bool is_locked() const;
void reset();
size_t size() const;
void reserve(size_t size);
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(const std::string_view new_identifier);
public:
Region(Region&&) = default;
colour_t get_colour() const;
};
}
|