1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00

Removed excessive pathfinder includes

This commit is contained in:
Ivan Savenko 2023-06-21 12:00:44 +03:00
parent 02ea798c97
commit 87fcfa4add
43 changed files with 10 additions and 38 deletions

View File

@ -46,7 +46,6 @@
#include "../../lib/spells/CSpellHandler.h"
#include "../../lib/CStopWatch.h"
#include "../../lib/mapObjects/CGHeroInstance.h"
#include "../../lib/CPathfinder.h"
#include "../../CCallback.h"
#include <chrono>

View File

@ -15,7 +15,6 @@
#include "../Goals/Composition.h"
#include "../Goals/BuildThis.h"
#include "../Goals/SaveResources.h"
#include "lib/CPathfinder.h"
#include "../Engine/Nullkiller.h"
namespace NKAI

View File

@ -13,7 +13,6 @@
#include "../AIUtility.h"
#include "../Goals/BuyArmy.h"
#include "../Engine/Nullkiller.h"
#include "lib/CPathfinder.h"
namespace NKAI
{

View File

@ -21,7 +21,6 @@
#include "../Goals/CaptureObject.h"
#include "../Markers/DefendTown.h"
#include "../Goals/ExchangeSwapTownHeroes.h"
#include "lib/CPathfinder.h"
namespace NKAI
{

View File

@ -16,7 +16,6 @@
#include "../Markers/ArmyUpgrade.h"
#include "GatherArmyBehavior.h"
#include "../AIUtility.h"
#include "lib/CPathfinder.h"
namespace NKAI
{

View File

@ -13,7 +13,6 @@
#include "../AIUtility.h"
#include "../Goals/RecruitHero.h"
#include "../Goals/ExecuteHeroChain.h"
#include "lib/CPathfinder.h"
namespace NKAI
{

View File

@ -16,7 +16,6 @@
#include "../Goals/ExecuteHeroChain.h"
#include "../Goals/ExchangeSwapTownHeroes.h"
#include "lib/mapObjects/MapObjects.h" //for victory conditions
#include "lib/CPathfinder.h"
#include "../Engine/Nullkiller.h"
namespace NKAI

View File

@ -16,7 +16,6 @@
#include "../../../lib/mapObjectConstructors/CBankInstanceConstructor.h"
#include "../../../lib/mapObjects/MapObjects.h"
#include "../../../lib/CCreatureHandler.h"
#include "../../../lib/CPathfinder.h"
#include "../../../lib/CGameStateFwd.h"
#include "../../../lib/VCMI_Lib.h"
#include "../../../lib/StartInfo.h"

View File

@ -10,7 +10,6 @@
#include "StdInc.h"
#include "AbstractGoal.h"
#include "../AIGateway.h"
#include "../../../lib/CPathfinder.h"
#include "../../../lib/StringConstants.h"
namespace NKAI

View File

@ -10,7 +10,6 @@
#include "StdInc.h"
#include "AdventureSpellCast.h"
#include "../AIGateway.h"
#include "../../../lib/CPathfinder.h"
namespace NKAI
{

View File

@ -10,7 +10,6 @@
#include "StdInc.h"
#include "BuildBoat.h"
#include "../AIGateway.h"
#include "../../../lib/CPathfinder.h"
#include "../Behaviors/CaptureObjectsBehavior.h"
namespace NKAI

View File

@ -11,7 +11,6 @@
#include "BuildThis.h"
#include "../AIGateway.h"
#include "../AIUtility.h"
#include "../../../lib/CPathfinder.h"
#include "../../../lib/StringConstants.h"

View File

@ -11,7 +11,6 @@
#include "CompleteQuest.h"
#include "../Behaviors/CaptureObjectsBehavior.h"
#include "../AIGateway.h"
#include "../../../lib/CPathfinder.h"
#include "../../../lib/VCMI_Lib.h"
#include "../../../lib/CGeneralTextHandler.h"

View File

@ -11,7 +11,6 @@
#include "Composition.h"
#include "../AIGateway.h"
#include "../AIUtility.h"
#include "../../../lib/CPathfinder.h"
#include "../../../lib/StringConstants.h"

View File

@ -10,7 +10,6 @@
#include "StdInc.h"
#include "DismissHero.h"
#include "../AIGateway.h"
#include "../../../lib/CPathfinder.h"
namespace NKAI
{

View File

@ -11,7 +11,6 @@
#include "ExchangeSwapTownHeroes.h"
#include "ExecuteHeroChain.h"
#include "../AIGateway.h"
#include "../../../lib/CPathfinder.h"
#include "../Engine/Nullkiller.h"
namespace NKAI

View File

@ -10,7 +10,6 @@
#include "StdInc.h"
#include "ExecuteHeroChain.h"
#include "../AIGateway.h"
#include "../../../lib/CPathfinder.h"
#include "../Engine/Nullkiller.h"
namespace NKAI

View File

@ -11,7 +11,6 @@
#include "Goals.h"
#include "../AIGateway.h"
#include "../AIUtility.h"
#include "../../../lib/CPathfinder.h"
#include "../../../lib/StringConstants.h"

View File

@ -10,7 +10,6 @@
#include "StdInc.h"
#include "SaveResources.h"
#include "../AIGateway.h"
#include "../../../lib/CPathfinder.h"
#include "../Behaviors/CaptureObjectsBehavior.h"
namespace NKAI

View File

@ -13,6 +13,9 @@
#include "../../AIUtility.h"
#include "../../Goals/AbstractGoal.h"
struct PathNodeInfo;
struct CDestinationNodeInfo;
namespace NKAI
{

View File

@ -16,7 +16,6 @@
#include "../../lib/spells/CSpellHandler.h"
#include "../../lib/CStopWatch.h"
#include "../../lib/mapObjects/CGHeroInstance.h"
#include "../../lib/CPathfinder.h"
#include "../../CCallback.h"
class CCallback;

View File

@ -14,7 +14,6 @@
#include "../FuzzyHelper.h"
#include "../ResourceManager.h"
#include "../BuildingManager.h"
#include "../../../lib/CPathfinder.h"
#include "../../../lib/StringConstants.h"
extern boost::thread_specific_ptr<CCallback> cb;

View File

@ -13,7 +13,6 @@
#include "../FuzzyHelper.h"
#include "../AIhelper.h"
#include "../../../lib/mapObjects/CGTownInstance.h"
#include "../../../lib/CPathfinder.h"
extern boost::thread_specific_ptr<CCallback> cb;
extern boost::thread_specific_ptr<VCAI> ai;

View File

@ -17,7 +17,6 @@
#include "../ResourceManager.h"
#include "../BuildingManager.h"
#include "../../../lib/mapObjects/CGTownInstance.h"
#include "../../../lib/CPathfinder.h"
#include "../../../lib/StringConstants.h"

View File

@ -12,7 +12,6 @@
#include "../VCAI.h"
#include "../FuzzyHelper.h"
#include "../AIhelper.h"
#include "../../../lib/CPathfinder.h"
extern boost::thread_specific_ptr<CCallback> cb;
extern boost::thread_specific_ptr<VCAI> ai;

View File

@ -16,7 +16,6 @@
#include "../ResourceManager.h"
#include "../BuildingManager.h"
#include "../../../lib/mapObjects/CGTownInstance.h"
#include "../../../lib/CPathfinder.h"
#include "../../../lib/StringConstants.h"

View File

@ -16,7 +16,6 @@
#include "../ResourceManager.h"
#include "../BuildingManager.h"
#include "../../../lib/mapObjects/CGMarket.h"
#include "../../../lib/CPathfinder.h"
#include "../../../lib/StringConstants.h"

View File

@ -13,7 +13,6 @@
#include "../FuzzyHelper.h"
#include "../AIhelper.h"
#include "../../../lib/mapObjects/CQuest.h"
#include "../../../lib/CPathfinder.h"
extern boost::thread_specific_ptr<CCallback> cb;
extern boost::thread_specific_ptr<VCAI> ai;

View File

@ -15,7 +15,6 @@
#include "../FuzzyHelper.h"
#include "../ResourceManager.h"
#include "../BuildingManager.h"
#include "../../../lib/CPathfinder.h"
#include "../../../lib/StringConstants.h"

View File

@ -15,7 +15,6 @@
#include "../FuzzyHelper.h"
#include "../ResourceManager.h"
#include "../BuildingManager.h"
#include "../../../lib/CPathfinder.h"
#include "../../../lib/StringConstants.h"
#include "../../../lib/CPlayerState.h"

View File

@ -16,7 +16,6 @@
#include "../ResourceManager.h"
#include "../BuildingManager.h"
#include "../../../lib/mapObjects/CGTownInstance.h"
#include "../../../lib/CPathfinder.h"
#include "../../../lib/StringConstants.h"

View File

@ -16,7 +16,6 @@
#include "../ResourceManager.h"
#include "../BuildingManager.h"
#include "../../../lib/mapObjects/CGTownInstance.h"
#include "../../../lib/CPathfinder.h"
#include "../../../lib/StringConstants.h"

View File

@ -15,7 +15,6 @@
#include "../FuzzyHelper.h"
#include "../ResourceManager.h"
#include "../BuildingManager.h"
#include "../../../lib/CPathfinder.h"
#include "../../../lib/StringConstants.h"

View File

@ -15,7 +15,6 @@
#include "../FuzzyHelper.h"
#include "../ResourceManager.h"
#include "../BuildingManager.h"
#include "../../../lib/CPathfinder.h"
#include "../../../lib/StringConstants.h"

View File

@ -15,7 +15,6 @@
#include "../FuzzyHelper.h"
#include "../ResourceManager.h"
#include "../BuildingManager.h"
#include "../../../lib/CPathfinder.h"
#include "../../../lib/StringConstants.h"

View File

@ -17,7 +17,6 @@
#include "../BuildingManager.h"
#include "../../../lib/mapping/CMapHeader.h" //for victory conditions
#include "../../../lib/mapObjects/CGTownInstance.h"
#include "../../../lib/CPathfinder.h"
#include "../../../lib/StringConstants.h"

View File

@ -14,6 +14,8 @@
#include "../../Goals/AbstractGoal.h"
struct AIPathNode;
struct PathNodeInfo;
struct CDestinationNodeInfo;
class ISpecialAction
{
@ -29,4 +31,4 @@ public:
const AIPathNode * srcNode) const
{
}
};
};

View File

@ -24,6 +24,7 @@
#include "../CCallback.h"
#include "../lib/CConfigHandler.h"
#include "../lib/CGameState.h"
#include "../lib/CPathfinder.h"
#include "../lib/CThreadHelper.h"
#include "../lib/VCMIDirs.h"
#include "../lib/battle/BattleInfo.h"

View File

@ -18,7 +18,6 @@
#include "../lib/CStopWatch.h"
#include "../lib/int3.h"
#include "../lib/CondSh.h"
#include "../lib/CPathfinder.h"
VCMI_LIB_NAMESPACE_BEGIN

View File

@ -15,6 +15,7 @@
#include "CArtHandler.h"
#include "CBuildingHandler.h"
#include "CGeneralTextHandler.h"
#include "CPathfinder.h"
#include "CTownHandler.h"
#include "spells/CSpellHandler.h"
#include "CHeroHandler.h"

View File

@ -20,7 +20,6 @@
#include "int3.h"
#include "CRandomGenerator.h"
#include "CGameStateFwd.h"
#include "CPathfinder.h"
namespace boost
{

View File

@ -28,6 +28,7 @@
#include "../IGameCallback.h"
#include "../CGameState.h"
#include "../CCreatureHandler.h"
#include "../CPathfinder.h"
#include "../CTownHandler.h"
#include "../mapping/CMap.h"
#include "CGTownInstance.h"

View File

@ -19,6 +19,7 @@
#include "../lib/CArtHandler.h"
#include "../lib/CBuildingHandler.h"
#include "../lib/CHeroHandler.h"
#include "../lib/CPathfinder.h"
#include "../lib/spells/AbilityCaster.h"
#include "../lib/spells/BonusCaster.h"
#include "../lib/spells/CSpellHandler.h"