From 1f15a7faa467d2547c782f073fcd8f657edd196a Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Sun, 11 May 2025 18:41:14 +0300 Subject: [PATCH] Fix build --- AI/VCAI/AIUtility.h | 1 - AI/VCAI/Goals/AbstractGoal.h | 1 - AI/VCAI/Pathfinding/AINodeStorage.h | 2 -- client/Client.h | 4 ++-- client/widgets/CExchangeController.h | 2 -- test/mock/mock_CPSICallback.h | 2 -- 6 files changed, 2 insertions(+), 10 deletions(-) diff --git a/AI/VCAI/AIUtility.h b/AI/VCAI/AIUtility.h index 8c798c5ae..a77bc52b7 100644 --- a/AI/VCAI/AIUtility.h +++ b/AI/VCAI/AIUtility.h @@ -17,7 +17,6 @@ #include "../../lib/callback/CCallback.h" class VCAI; -class CCallback; struct creInfo; using crint3 = const int3 &; diff --git a/AI/VCAI/Goals/AbstractGoal.h b/AI/VCAI/Goals/AbstractGoal.h index cedc5eb1d..8a8f8abe0 100644 --- a/AI/VCAI/Goals/AbstractGoal.h +++ b/AI/VCAI/Goals/AbstractGoal.h @@ -16,7 +16,6 @@ struct HeroPtr; class VCAI; class FuzzyHelper; -class CCallback; namespace Goals { diff --git a/AI/VCAI/Pathfinding/AINodeStorage.h b/AI/VCAI/Pathfinding/AINodeStorage.h index 2c4e34181..da49bb18d 100644 --- a/AI/VCAI/Pathfinding/AINodeStorage.h +++ b/AI/VCAI/Pathfinding/AINodeStorage.h @@ -18,8 +18,6 @@ #include "../Goals/AbstractGoal.h" #include "Actions/ISpecialAction.h" -class CCallback; - struct AIPathNode : public CGPathNode { uint32_t chainMask; diff --git a/client/Client.h b/client/Client.h index 92154867c..6ed3a3fae 100644 --- a/client/Client.h +++ b/client/Client.h @@ -27,6 +27,8 @@ class CGameInterface; class BattleAction; class BattleInfo; struct BankConfig; +class CCallback; +class CBattleCallback; #if SCRIPTING_ENABLED namespace scripting @@ -42,8 +44,6 @@ namespace events VCMI_LIB_NAMESPACE_END -class CBattleCallback; -class CCallback; class CClient; class CBaseForCLApply; diff --git a/client/widgets/CExchangeController.h b/client/widgets/CExchangeController.h index b137c0311..90b0cb3ab 100644 --- a/client/widgets/CExchangeController.h +++ b/client/widgets/CExchangeController.h @@ -11,8 +11,6 @@ #include "../lib/mapObjects/CGHeroInstance.h" -class CCallback; - class CExchangeController { public: diff --git a/test/mock/mock_CPSICallback.h b/test/mock/mock_CPSICallback.h index dd1e04524..a06191f11 100644 --- a/test/mock/mock_CPSICallback.h +++ b/test/mock/mock_CPSICallback.h @@ -14,8 +14,6 @@ #include "../lib/callback/CPlayerSpecificInfoCallback.h" #include "../lib/ResourceSet.h" -class CCallback; - class CPSICallbackMock : public CPlayerSpecificInfoCallback { public: