aboutsummaryrefslogtreecommitdiff
path: root/src/openvic/map/Building.hpp
diff options
context:
space:
mode:
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;