aboutsummaryrefslogtreecommitdiff
path: root/map/Province.hpp
diff options
context:
space:
mode:
author Hop311 <hop3114@gmail.com>2023-05-03 20:37:26 +0200
committer Hop311 <hop3114@gmail.com>2023-05-03 20:37:26 +0200
commit64bbf86b623a3cca2eaf9009d7acdcde067592e3 (patch)
tree5d607f28019675c9eaaa2883acf036717fa45b2f /map/Province.hpp
parentc92481448159d3a363d6a99b3025bd2358c3dab6 (diff)
Moved code to src/openvic2
Diffstat (limited to 'map/Province.hpp')
-rw-r--r--map/Province.hpp42
1 files changed, 0 insertions, 42 deletions
diff --git a/map/Province.hpp b/map/Province.hpp
deleted file mode 100644
index 9b07fc1..0000000
--- a/map/Province.hpp
+++ /dev/null
@@ -1,42 +0,0 @@
-#pragma once
-
-#include "Building.hpp"
-
-namespace OpenVic2 {
- struct Map;
- struct Region;
-
- /* REQUIREMENTS:
- * MAP-5, MAP-8, MAP-43, MAP-47
- */
- struct Province : HasIdentifier, HasColour {
- friend struct Map;
-
- using life_rating_t = int8_t;
-
- private:
- const index_t index;
- Region* region = nullptr;
- bool water = false;
- life_rating_t life_rating = 0;
- IdentifierRegistry<Building> buildings;
-
- Province(index_t new_index, std::string const& new_identifier, colour_t new_colour);
- public:
- Province(Province&&) = default;
-
- index_t get_index() const;
- Region* get_region() const;
- bool is_water() const;
- life_rating_t get_life_rating() const;
- return_t add_building(BuildingType const& type);
- void lock_buildings();
- void reset_buildings();
- std::vector<Building> const& get_buildings() const;
- return_t expand_building(std::string const& building_type_identifier);
- std::string to_string() const;
-
- void update_state(Date const& today);
- void tick(Date const& today);
- };
-}