diff options
author | Hop311 <Hop3114@gmail.com> | 2023-05-04 15:47:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-04 15:47:20 +0200 |
commit | 7791a18094efaf62377606a7e5a7cba85a4c7a64 (patch) | |
tree | cd3ebcae0f67b07488fadb31ba3b376b306e03f6 /extension/src/openvic2/map/Province.hpp | |
parent | 6fd8fc3a786370207508631e569c1e8f5ab0e4e3 (diff) | |
parent | 2420f8b8fdd2db84e053ebb2d7f6e4840171009e (diff) |
Merge pull request #106 from OpenVic2Project/simulation-submodule
Moved simulation code to separate submodule
Diffstat (limited to 'extension/src/openvic2/map/Province.hpp')
-rw-r--r-- | extension/src/openvic2/map/Province.hpp | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/extension/src/openvic2/map/Province.hpp b/extension/src/openvic2/map/Province.hpp deleted file mode 100644 index dd1742c..0000000 --- a/extension/src/openvic2/map/Province.hpp +++ /dev/null @@ -1,43 +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); - }; -} |