From b8b42978b15582fd698d65996861aa5bc0ce0cf8 Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Fri, 26 Apr 2024 13:26:33 +0300 Subject: [PATCH] Reduce includes in headers --- server/CGameHandler.cpp | 1 + server/CGameHandler.h | 2 +- server/battles/BattleFlowProcessor.cpp | 1 + server/battles/BattleResultProcessor.cpp | 1 + server/queries/MapQueries.cpp | 1 + 5 files changed, 5 insertions(+), 1 deletion(-) diff --git a/server/CGameHandler.cpp b/server/CGameHandler.cpp index 854b0c9c9..a11532013 100644 --- a/server/CGameHandler.cpp +++ b/server/CGameHandler.cpp @@ -11,6 +11,7 @@ #include "CGameHandler.h" #include "CVCMIServer.h" +#include "TurnTimerHandler.h" #include "ServerNetPackVisitors.h" #include "ServerSpellCastEnvironment.h" #include "battles/BattleProcessor.h" diff --git a/server/CGameHandler.h b/server/CGameHandler.h index dc91d6370..80c3ab3ae 100644 --- a/server/CGameHandler.h +++ b/server/CGameHandler.h @@ -14,7 +14,6 @@ #include "../lib/IGameCallback.h" #include "../lib/LoadProgress.h" #include "../lib/ScriptHandler.h" -#include "TurnTimerHandler.h" VCMI_LIB_NAMESPACE_BEGIN @@ -49,6 +48,7 @@ class CBaseForGHApply; class PlayerMessageProcessor; class BattleProcessor; class TurnOrderProcessor; +class TurnTimerHandler; class QueriesProcessor; class CObjectVisitQuery; diff --git a/server/battles/BattleFlowProcessor.cpp b/server/battles/BattleFlowProcessor.cpp index 1179627ca..93474ef0c 100644 --- a/server/battles/BattleFlowProcessor.cpp +++ b/server/battles/BattleFlowProcessor.cpp @@ -13,6 +13,7 @@ #include "BattleProcessor.h" #include "../CGameHandler.h" +#include "../TurnTimerHandler.h" #include "../../lib/CStack.h" #include "../../lib/GameSettings.h" diff --git a/server/battles/BattleResultProcessor.cpp b/server/battles/BattleResultProcessor.cpp index bbb2ad51f..11d4a479d 100644 --- a/server/battles/BattleResultProcessor.cpp +++ b/server/battles/BattleResultProcessor.cpp @@ -11,6 +11,7 @@ #include "BattleResultProcessor.h" #include "../CGameHandler.h" +#include "../TurnTimerHandler.h" #include "../processors/HeroPoolProcessor.h" #include "../queries/QueriesProcessor.h" #include "../queries/BattleQueries.h" diff --git a/server/queries/MapQueries.cpp b/server/queries/MapQueries.cpp index dbc7752eb..72f9bfbce 100644 --- a/server/queries/MapQueries.cpp +++ b/server/queries/MapQueries.cpp @@ -12,6 +12,7 @@ #include "QueriesProcessor.h" #include "../CGameHandler.h" +#include "../TurnTimerHandler.h" #include "../../lib/mapObjects/MiscObjects.h" #include "../../lib/mapObjects/CGHeroInstance.h" #include "../../lib/networkPacks/PacksForServer.h"