mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
ERM: revert unwanted changes
This commit is contained in:
parent
061941b3ac
commit
fc9bbfb895
@ -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();
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user