Ivan Savenko hace 2 años
padre
commit
97b3b2e147

+ 5 - 5
AI/VCAI/FuzzyHelper.cpp

@@ -13,11 +13,11 @@
 #include "Goals/Goals.h"
 #include "VCAI.h"
 
-#include "../../../lib/mapObjectConstructors/AObjectTypeHandler.h"
-#include "../../../lib/mapObjectConstructors/CObjectClassesHandler.h"
-#include "../../../lib/mapObjectConstructors/CommonConstructors.h"
-#include "../../../lib/mapObjects/CBank.h"
-#include "../../../lib/mapObjects/CGDwelling.h"
+#include "../../lib/mapObjectConstructors/AObjectTypeHandler.h"
+#include "../../lib/mapObjectConstructors/CObjectClassesHandler.h"
+#include "../../lib/mapObjectConstructors/CommonConstructors.h"
+#include "../../lib/mapObjects/CBank.h"
+#include "../../lib/mapObjects/CGDwelling.h"
 
 FuzzyHelper * fh;
 

+ 2 - 1
AI/VCAI/MapObjectsEvaluator.h

@@ -8,7 +8,8 @@
 *
 */
 #pragma once
-#include "../../lib/mapObjects/CObjectClassesHandler.h"
+
+#include "../../lib/mapObjectConstructors/CObjectClassesHandler.h"
 
 class MapObjectsEvaluator
 {

+ 2 - 0
lib/mapObjectConstructors/IObjectInfo.h

@@ -56,3 +56,5 @@ public:
 
 	virtual ~IObjectInfo() = default;
 };
+
+VCMI_LIB_NAMESPACE_END

+ 4 - 0
lib/mapObjects/CGObjectInstance.cpp

@@ -25,6 +25,8 @@
 #include "../mapping/CMap.h"
 #include "../serializer/JsonSerializeFormat.h"
 
+VCMI_LIB_NAMESPACE_BEGIN
+
 //TODO: remove constructor
 CGObjectInstance::CGObjectInstance():
 	pos(-1,-1,-1),
@@ -342,3 +344,5 @@ BattleField CGObjectInstance::getBattlefield() const
 {
 	return VLC->objtypeh->getHandlerFor(ID, subID)->getBattlefield();
 }
+
+VCMI_LIB_NAMESPACE_END

+ 2 - 0
lib/mapObjects/CGObjectInstance.h

@@ -141,3 +141,5 @@ protected:
 
 	void serializeJsonOwner(JsonSerializeFormat & handler);
 };
+
+VCMI_LIB_NAMESPACE_END

+ 4 - 0
lib/mapObjects/IMarket.cpp

@@ -18,6 +18,8 @@
 
 #include "../VCMI_Lib.h"
 
+VCMI_LIB_NAMESPACE_BEGIN
+
 bool IMarket::getOffer(int id1, int id2, int &val1, int &val2, EMarketMode::EMarketMode mode) const
 {
 	switch(mode)
@@ -173,3 +175,5 @@ std::vector<EMarketMode::EMarketMode> IMarket::availableModes() const
 
 	return ret;
 }
+
+VCMI_LIB_NAMESPACE_END

+ 2 - 0
lib/rewardable/Reward.h

@@ -11,6 +11,8 @@
 #pragma once
 
 #include "../ResourceSet.h"
+#include "../bonuses/Bonus.h"
+#include "../CCreatureSet.h"
 
 VCMI_LIB_NAMESPACE_BEGIN
 

+ 1 - 0
test/map/MapComparer.cpp

@@ -12,6 +12,7 @@
 #include "MapComparer.h"
 
 #include "../lib/mapping/CMap.h"
+#include "../lib/mapObjects/ObjectTemplate.h"
 
 #define VCMI_CHECK_FIELD_EQUAL_P(field) EXPECT_EQ(actual->field, expected->field)