Ver Fonte

ERM: revert unwanted changes

Andrii Danylchenko há 4 anos atrás
pai
commit
fc9bbfb895
3 ficheiros alterados com 6 adições e 25 exclusões
  1. 5 5
      AI/VCAI/FuzzyEngines.h
  2. 1 1
      scripting/lua/StdInc.h
  3. 0 19
      test/CMakeLists.txt

+ 5 - 5
AI/VCAI/FuzzyEngines.h

@@ -13,7 +13,7 @@
 
 class CArmedInstance;
 
-class DLL_EXPORT engineBase //subclasses create fuzzylite variables with "new" that are not freed - this is desired as fl::Engine wants to destroy these...
+class engineBase //subclasses create fuzzylite variables with "new" that are not freed - this is desired as fl::Engine wants to destroy these...
 {
 protected:
 	fl::Engine engine;
@@ -24,7 +24,7 @@ public:
 	engineBase();
 };
 
-class DLL_EXPORT TacticalAdvantageEngine : public engineBase //TODO: rework this engine, it does not work well (example: AI hero with 140 beholders attacked 150 beholders - engine lowered danger 50000 -> 35000)
+class TacticalAdvantageEngine : public engineBase //TODO: rework this engine, it does not work well (example: AI hero with 140 beholders attacked 150 beholders - engine lowered danger 50000 -> 35000)
 {
 public:
 	TacticalAdvantageEngine();
@@ -37,7 +37,7 @@ private:
 	fl::OutputVariable * threat;
 };
 
-class DLL_EXPORT HeroMovementGoalEngineBase : public engineBase //in future - maybe derive from some (GoalEngineBase : public engineBase) class for handling non-movement goals with common utility for goal engines
+class HeroMovementGoalEngineBase : public engineBase //in future - maybe derive from some (GoalEngineBase : public engineBase) class for handling non-movement goals with common utility for goal engines
 {
 public:
 	HeroMovementGoalEngineBase();
@@ -55,14 +55,14 @@ private:
 	float calculateTurnDistanceInputValue(const Goals::AbstractGoal & goal) const;
 };
 
-class DLL_EXPORT VisitTileEngine : public HeroMovementGoalEngineBase
+class VisitTileEngine : public HeroMovementGoalEngineBase
 {
 public:
 	VisitTileEngine();
 	float evaluate(Goals::VisitTile & goal);
 };
 
-class DLL_EXPORT VisitObjEngine : public HeroMovementGoalEngineBase
+class VisitObjEngine : public HeroMovementGoalEngineBase
 {
 public:
 	VisitObjEngine();

+ 1 - 1
scripting/lua/StdInc.h

@@ -2,7 +2,7 @@
 
 #include "../../Global.h"
 
-#include <luajit/lua.hpp>
+#include <lua.hpp>
 
 // This header should be treated as a pre compiled header file(PCH) in the compiler building settings.
 

+ 0 - 19
test/CMakeLists.txt

@@ -153,30 +153,11 @@ set(mock_HEADERS
 		vcai/mock_VCAI_CGoal.h
 )
 
-if(NOT FORCE_BUNDLED_FL)
-	find_package(FuzzyLite)
-else()
-	set(FL_FOUND FALSE)
-endif()
-
-if(NOT FL_FOUND)
-    set(FL_BUILD_BINARY OFF CACHE BOOL "")
-    set(FL_BUILD_SHARED OFF CACHE BOOL "")
-	set(FL_BUILD_TESTS OFF CACHE BOOL "")
-	add_subdirectory(AI/FuzzyLite/fuzzylite EXCLUDE_FROM_ALL)
-endif()
-
 add_subdirectory_with_folder("3rdparty" googletest EXCLUDE_FROM_ALL)
 
 add_executable(vcmitest ${test_SRCS} ${test_HEADERS} ${mock_HEADERS})
 target_link_libraries(vcmitest PRIVATE gtest gmock vcmi ${SYSTEM_LIBS} VCAI)
 
-if(FL_FOUND)
-	target_link_libraries(vcmitest PRIVATE ${FL_LIBRARIES})
-else()
-	target_link_libraries(vcmitest PRIVATE fl-static)
-endif()
-
 target_include_directories(vcmitest
 		PUBLIC	${CMAKE_CURRENT_SOURCE_DIR}
 		PRIVATE	${GTestSrc}