From f17783cfb58355e14a4c7b40f7c9b68beab8be2a Mon Sep 17 00:00:00 2001 From: AlexVinS Date: Sun, 29 Jul 2018 22:07:40 +0300 Subject: [PATCH] [c::b] Updated projects, applied fixes --- AI/VCAI/Goals.cpp | 6 +++--- AI/VCAI/VCAI.cbp | 4 ++++ test/Test.cbp | 11 +++++++++++ test/mock/mock_CPSICallback.cpp | 2 +- test/mock/mock_CPSICallback.h | 4 ++-- test/mock/mock_IGameCallback.h | 2 +- test/vcai/ResurceManagerTest.cpp | 4 ++-- 7 files changed, 24 insertions(+), 9 deletions(-) diff --git a/AI/VCAI/Goals.cpp b/AI/VCAI/Goals.cpp index 614201a87..1ba807338 100644 --- a/AI/VCAI/Goals.cpp +++ b/AI/VCAI/Goals.cpp @@ -14,7 +14,7 @@ #include "ResourceManager.h" #include "../../lib/mapping/CMap.h" //for victory conditions #include "../../lib/CPathfinder.h" -#include "StringConstants.h" +#include "../../lib/StringConstants.h" #include "AIhelper.h" @@ -133,7 +133,7 @@ bool Goals::AbstractGoal::operator==(AbstractGoal & g) return g.hero.h == hero.h; //how comes HeroPtrs are equal for different heroes? break; - case GATHER_ARMY: //actual value is indifferent + case GATHER_ARMY: //actual value is indifferent return (g.hero.h == hero.h || town == g.town); //TODO: gather army for town maybe? break; @@ -1001,7 +1001,7 @@ TGoalVec Goals::CollectRes::getAllPossibleSubgoals() } TSubgoal CollectRes::whatToDoToAchieve() -{ +{ auto goals = getAllPossibleSubgoals(); auto trade = whatToDoToTrade(); if (!trade->invalid()) diff --git a/AI/VCAI/VCAI.cbp b/AI/VCAI/VCAI.cbp index 9566d9c4d..a95a1ea42 100644 --- a/AI/VCAI/VCAI.cbp +++ b/AI/VCAI/VCAI.cbp @@ -83,10 +83,14 @@ + + + +