diff options
author | Hop311 <Hop3114@gmail.com> | 2023-05-09 21:10:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-09 21:10:02 +0200 |
commit | 339e0278a2064f7eeb152fe8c5778840b609e9f3 (patch) | |
tree | 05bb2635d921de9ad138736d49e4b5ea7a419c23 /src/openvic2/map/Province.hpp | |
parent | 1838e79d6af83dbed2f1b387acf02aacca0eb4bc (diff) | |
parent | 3550c455526eb6f8935f488810e73fe01a1177a9 (diff) |
Merge pull request #2 from OpenVic2Project/goods
Added GoodManager
Diffstat (limited to 'src/openvic2/map/Province.hpp')
-rw-r--r-- | src/openvic2/map/Province.hpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/openvic2/map/Province.hpp b/src/openvic2/map/Province.hpp index 9b07fc1..44d0dee 100644 --- a/src/openvic2/map/Province.hpp +++ b/src/openvic2/map/Province.hpp @@ -5,9 +5,10 @@ namespace OpenVic2 { struct Map; struct Region; + struct Good; /* REQUIREMENTS: - * MAP-5, MAP-8, MAP-43, MAP-47 + * MAP-5, MAP-7, MAP-8, MAP-43, MAP-47 */ struct Province : HasIdentifier, HasColour { friend struct Map; @@ -20,6 +21,8 @@ namespace OpenVic2 { bool water = false; life_rating_t life_rating = 0; IdentifierRegistry<Building> buildings; + // TODO - change this into a factory-like structure + Good const* rgo = nullptr; Province(index_t new_index, std::string const& new_identifier, colour_t new_colour); public: @@ -32,8 +35,10 @@ namespace OpenVic2 { return_t add_building(BuildingType const& type); void lock_buildings(); void reset_buildings(); + Building const* get_building_by_identifier(std::string const& identifier) const; std::vector<Building> const& get_buildings() const; return_t expand_building(std::string const& building_type_identifier); + Good const* get_rgo() const; std::string to_string() const; void update_state(Date const& today); |