aboutsummaryrefslogtreecommitdiff
path: root/src/openvic/map/Building.hpp
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2023-07-28 00:10:46 +0200
committer GitHub <noreply@github.com>2023-07-28 00:10:46 +0200
commit8a08be3e7e8477973e243716d431ad7117acfa43 (patch)
treea91587787bf6742168279ac41f77b9ebabe0dffe /src/openvic/map/Building.hpp
parent420c2dce47e74c01ff46be991058d543e0c70a6b (diff)
parent532c9be36ca03ee13c92ca7d895aaf5b42eeb034 (diff)
Merge pull request #9 from OpenVicProject/pops
Pops and other bits
Diffstat (limited to 'src/openvic/map/Building.hpp')
-rw-r--r--src/openvic/map/Building.hpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/openvic/map/Building.hpp b/src/openvic/map/Building.hpp
index 98c3991..c4f8950 100644
--- a/src/openvic/map/Building.hpp
+++ b/src/openvic/map/Building.hpp
@@ -6,7 +6,8 @@
#include "../Types.hpp"
namespace OpenVic {
- struct Province;
+
+ struct BuildingManager;
struct BuildingType;
/* REQUIREMENTS:
@@ -15,7 +16,7 @@ namespace OpenVic {
* MAP-13, MAP-78, MAP-79
*/
struct Building : HasIdentifier {
- friend struct Province;
+ friend struct BuildingManager;
using level_t = int8_t;
@@ -52,8 +53,6 @@ namespace OpenVic {
void tick(Date const& today);
};
- struct BuildingManager;
-
struct BuildingType : HasIdentifier {
friend struct BuildingManager;
@@ -70,6 +69,8 @@ namespace OpenVic {
Timespan get_build_time() const;
};
+ struct Province;
+
struct BuildingManager {
private:
IdentifierRegistry<BuildingType> building_types;