diff options
author | Hop311 <Hop3114@gmail.com> | 2023-12-28 17:43:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-28 17:43:43 +0100 |
commit | 0a425fbe05d6138b753c0e4a7c06f06695bde8af (patch) | |
tree | 8f67577b0101c06e2a7cc4d4c277d686d16d3d75 /src/openvic-simulation/economy | |
parent | 56a865d7d0868b785eb6b9b723f0e52f65e6457d (diff) | |
parent | 12a47833bbe72d50271bde15c7579c1e801863c2 (diff) |
Merge pull request #110 from OpenVicProject/clock-refactor
Clock refactor + misc small fixes
Diffstat (limited to 'src/openvic-simulation/economy')
-rw-r--r-- | src/openvic-simulation/economy/BuildingInstance.cpp | 2 | ||||
-rw-r--r-- | src/openvic-simulation/economy/BuildingInstance.hpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/openvic-simulation/economy/BuildingInstance.cpp b/src/openvic-simulation/economy/BuildingInstance.cpp index 047b759..f72c713 100644 --- a/src/openvic-simulation/economy/BuildingInstance.cpp +++ b/src/openvic-simulation/economy/BuildingInstance.cpp @@ -22,7 +22,7 @@ bool BuildingInstance::expand() { /* REQUIREMENTS: * MAP-71, MAP-74, MAP-77 */ -void BuildingInstance::update_state(Date today) { +void BuildingInstance::update_gamestate(Date today) { switch (expansion_state) { case ExpansionState::Preparing: start_date = today; diff --git a/src/openvic-simulation/economy/BuildingInstance.hpp b/src/openvic-simulation/economy/BuildingInstance.hpp index 00e2dd6..e027a69 100644 --- a/src/openvic-simulation/economy/BuildingInstance.hpp +++ b/src/openvic-simulation/economy/BuildingInstance.hpp @@ -25,7 +25,7 @@ namespace OpenVic { BuildingInstance(BuildingInstance&&) = default; bool expand(); - void update_state(Date today); + void update_gamestate(Date today); void tick(Date today); }; } |