diff --git a/Source/functions/AbstractionLayers/AbstraktionLayer_Base.h b/Source/functions/AbstractionLayers/AbstraktionLayer_Base.h index 07dab2a..ccb54a8 100644 --- a/Source/functions/AbstractionLayers/AbstraktionLayer_Base.h +++ b/Source/functions/AbstractionLayers/AbstraktionLayer_Base.h @@ -4,7 +4,6 @@ #include #include #include "../../header/solve.h" -#include "../../header/input.h" using namespace std; diff --git a/Source/functions/AbstractionLayers/DestructionPower/DestructionPower.h b/Source/functions/AbstractionLayers/DestructionPower/DestructionPower.h index b5bfbe1..dcc4ee9 100644 --- a/Source/functions/AbstractionLayers/DestructionPower/DestructionPower.h +++ b/Source/functions/AbstractionLayers/DestructionPower/DestructionPower.h @@ -14,7 +14,7 @@ #include #include -class DestructionPower : public AbstraktionLayer_Base +class DestructionPower : public AbstraktionLayer_Base { public: void PreProcessing(const vector* partArray);//override diff --git a/Source/functions/AbstractionLayers/DestructionPower/DestructionPower_Properties.h b/Source/functions/AbstractionLayers/DestructionPower/DestructionPower_Properties.h index d6f9af6..54d9056 100644 --- a/Source/functions/AbstractionLayers/DestructionPower/DestructionPower_Properties.h +++ b/Source/functions/AbstractionLayers/DestructionPower/DestructionPower_Properties.h @@ -44,4 +44,4 @@ map DestructionPower_Properties::create_SpeedTable() return m; } -#endif //SOURCE_ABSTRACTIONLAYER_1_PROPERTIES_H +#endif //SOURCE_DESTRUCTIONPOWER_PROPERTIES_H diff --git a/Source/functions/AbstractionLayers/Layer1/AbstractionLayer_1.h b/Source/functions/AbstractionLayers/Layer1/AbstractionLayer_1.h index 9a5c193..dc04ead 100644 --- a/Source/functions/AbstractionLayers/Layer1/AbstractionLayer_1.h +++ b/Source/functions/AbstractionLayers/Layer1/AbstractionLayer_1.h @@ -6,6 +6,7 @@ #define SOURCE_ABSTRACTIONLAYER_1_H #include "../AbstraktionLayer_Base.h" +#include "AbstractionLayer_1_Properties.h" #include #include #include diff --git a/Source/functions/solve/classExtension.cpp b/Source/functions/solve/classExtension.cpp index 8037044..03f9dc4 100755 --- a/Source/functions/solve/classExtension.cpp +++ b/Source/functions/solve/classExtension.cpp @@ -1,7 +1,5 @@ #include "../../header.h" - - //use this in second abstraction layer maybe ey? void createRandomAbstraction2() { diff --git a/Source/header.h b/Source/header.h index 73c6149..2529a15 100755 --- a/Source/header.h +++ b/Source/header.h @@ -11,5 +11,12 @@ using namespace std; + #include "header/input.h" + +/** + * IMPORTANT: Each new layer must be included there, to avoid compile errors + */ +#include "functions/AbstractionLayers/Layer1/AbstractionLayer_1.h" +#include "functions/AbstractionLayers/DestructionPower/DestructionPower.h" #include "header/solve.h" diff --git a/Source/header/input.h b/Source/header/input.h index 3ae14d7..b83acbc 100755 --- a/Source/header/input.h +++ b/Source/header/input.h @@ -1,7 +1,7 @@ #include -class AbstractionLayer_1_Properties; -class DestructionPower_Properties; +#include "../functions/AbstractionLayers/Layer1/AbstractionLayer_1_Properties.h" +#include "../functions/AbstractionLayers/DestructionPower/DestructionPower_Properties.h" class Part { public: diff --git a/Source/header/solve.h b/Source/header/solve.h index b6532a3..034c193 100755 --- a/Source/header/solve.h +++ b/Source/header/solve.h @@ -6,6 +6,8 @@ #include #include +class Part; + using namespace std; class coor diff --git a/Source/main.cpp b/Source/main.cpp index 72e2ef7..e50a271 100644 --- a/Source/main.cpp +++ b/Source/main.cpp @@ -1,9 +1,9 @@ #include "header.h" +#include "header/input.h" int LogEntry::randomed(0); unsigned int PuzzlePiece::idcount(0); - int main() {