From 83a61b6641c9e85c432953c39f9284d3101ce112 Mon Sep 17 00:00:00 2001 From: BrickPi <49528459+BrickPi@users.noreply.github.com> Date: Sat, 11 Nov 2023 11:56:09 -0600 Subject: Apply Province Histories --- src/openvic-simulation/economy/Building.cpp | 4 ++++ src/openvic-simulation/economy/Building.hpp | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'src/openvic-simulation/economy') diff --git a/src/openvic-simulation/economy/Building.cpp b/src/openvic-simulation/economy/Building.cpp index 38a8863..bade4a5 100644 --- a/src/openvic-simulation/economy/Building.cpp +++ b/src/openvic-simulation/economy/Building.cpp @@ -125,6 +125,10 @@ BuildingInstance::level_t BuildingInstance::get_current_level() const { return level; } +void BuildingInstance::set_level(BuildingInstance::level_t new_level) { + level = new_level; +} + ExpansionState BuildingInstance::get_expansion_state() const { return expansion_state; } diff --git a/src/openvic-simulation/economy/Building.hpp b/src/openvic-simulation/economy/Building.hpp index e907e49..c2eb1ef 100644 --- a/src/openvic-simulation/economy/Building.hpp +++ b/src/openvic-simulation/economy/Building.hpp @@ -124,14 +124,15 @@ namespace OpenVic { bool _can_expand() const; - BuildingInstance(Building const& building); - public: + BuildingInstance(Building const& building); BuildingInstance(BuildingInstance&&) = default; Building const& get_building() const; level_t get_current_level() const; + void set_level(level_t new_level); + ExpansionState get_expansion_state() const; Date get_start_date() const; Date get_end_date() const; -- cgit v1.2.3-56-ga3b1