소스 검색

Remove excessive CMap.h includes

Ivan Savenko 2 년 전
부모
커밋
acac42291e
100개의 변경된 파일46개의 추가작업 그리고 106개의 파일을 삭제
  1. 0 1
      AI/Nullkiller/Analyzers/BuildAnalyzer.cpp
  2. 2 1
      AI/Nullkiller/Analyzers/DangerHitMapAnalyzer.cpp
  3. 2 0
      AI/Nullkiller/Analyzers/DangerHitMapAnalyzer.h
  4. 0 1
      AI/Nullkiller/Analyzers/ObjectClusterizer.cpp
  5. 0 1
      AI/Nullkiller/Behaviors/BuildingBehavior.cpp
  6. 0 1
      AI/Nullkiller/Behaviors/BuyArmyBehavior.cpp
  7. 0 1
      AI/Nullkiller/Behaviors/DefenceBehavior.cpp
  8. 0 1
      AI/Nullkiller/Behaviors/GatherArmyBehavior.cpp
  9. 0 1
      AI/Nullkiller/Behaviors/RecruitHeroBehavior.cpp
  10. 0 1
      AI/Nullkiller/Behaviors/StartupBehavior.cpp
  11. 0 1
      AI/Nullkiller/Goals/AbstractGoal.cpp
  12. 0 1
      AI/Nullkiller/Goals/AdventureSpellCast.cpp
  13. 0 1
      AI/Nullkiller/Goals/BuildBoat.cpp
  14. 0 1
      AI/Nullkiller/Goals/BuildThis.cpp
  15. 0 1
      AI/Nullkiller/Goals/CompleteQuest.cpp
  16. 0 1
      AI/Nullkiller/Goals/Composition.cpp
  17. 0 1
      AI/Nullkiller/Goals/DismissHero.cpp
  18. 0 1
      AI/Nullkiller/Goals/ExchangeSwapTownHeroes.cpp
  19. 0 1
      AI/Nullkiller/Goals/ExecuteHeroChain.cpp
  20. 0 1
      AI/Nullkiller/Goals/RecruitHero.cpp
  21. 0 1
      AI/Nullkiller/Goals/SaveResources.cpp
  22. 0 1
      AI/Nullkiller/Pathfinding/Actions/BattleAction.cpp
  23. 0 1
      AI/Nullkiller/Pathfinding/Actions/BoatActions.cpp
  24. 0 1
      AI/Nullkiller/Pathfinding/Actions/BoatActions.h
  25. 0 1
      AI/Nullkiller/Pathfinding/Actions/BuyArmyAction.cpp
  26. 0 1
      AI/Nullkiller/Pathfinding/Actions/QuestAction.cpp
  27. 0 1
      AI/Nullkiller/Pathfinding/Actions/TownPortalAction.cpp
  28. 0 1
      AI/Nullkiller/Pathfinding/Actions/TownPortalAction.h
  29. 0 1
      AI/Nullkiller/Pathfinding/Actors.cpp
  30. 0 1
      AI/Nullkiller/Pathfinding/Rules/AILayerTransitionRule.h
  31. 0 1
      AI/Nullkiller/Pathfinding/Rules/AIMovementAfterDestinationRule.h
  32. 0 1
      AI/Nullkiller/Pathfinding/Rules/AIMovementToDestinationRule.h
  33. 0 1
      AI/Nullkiller/Pathfinding/Rules/AIPreviousNodeRule.h
  34. 0 1
      AI/VCAI/Goals/AbstractGoal.cpp
  35. 1 1
      AI/VCAI/Goals/AdventureSpellCast.cpp
  36. 1 1
      AI/VCAI/Goals/Build.cpp
  37. 0 1
      AI/VCAI/Goals/BuildBoat.cpp
  38. 1 1
      AI/VCAI/Goals/BuildThis.cpp
  39. 1 1
      AI/VCAI/Goals/CollectRes.cpp
  40. 1 1
      AI/VCAI/Goals/CompleteQuest.cpp
  41. 0 1
      AI/VCAI/Goals/Conquer.cpp
  42. 0 1
      AI/VCAI/Goals/Explore.cpp
  43. 1 1
      AI/VCAI/Goals/GatherArmy.cpp
  44. 1 1
      AI/VCAI/Goals/GatherTroops.cpp
  45. 0 1
      AI/VCAI/Goals/RecruitHero.cpp
  46. 0 2
      AI/VCAI/Goals/VisitHero.cpp
  47. 0 1
      AI/VCAI/Goals/VisitObj.cpp
  48. 0 1
      AI/VCAI/Goals/VisitTile.cpp
  49. 2 1
      AI/VCAI/Goals/Win.cpp
  50. 1 1
      AI/VCAI/Pathfinding/AIPathfinder.cpp
  51. 1 2
      AI/VCAI/Pathfinding/Actions/BoatActions.cpp
  52. 1 2
      AI/VCAI/Pathfinding/Actions/BoatActions.h
  53. 1 2
      AI/VCAI/Pathfinding/Actions/TownPortalAction.cpp
  54. 1 2
      AI/VCAI/Pathfinding/Actions/TownPortalAction.h
  55. 2 1
      AI/VCAI/Pathfinding/PathfindingManager.cpp
  56. 0 1
      AI/VCAI/Pathfinding/Rules/AILayerTransitionRule.h
  57. 0 1
      AI/VCAI/Pathfinding/Rules/AIMovementAfterDestinationRule.h
  58. 0 1
      AI/VCAI/Pathfinding/Rules/AIMovementToDestinationRule.h
  59. 0 1
      AI/VCAI/Pathfinding/Rules/AIPreviousNodeRule.h
  60. 2 1
      client/CPlayerInterface.cpp
  61. 0 1
      client/CServerHandler.cpp
  62. 2 1
      client/adventureMap/AdventureMapInterface.cpp
  63. 1 1
      client/lobby/CCampaignInfoScreen.cpp
  64. 1 1
      client/lobby/CSavingScreen.cpp
  65. 1 1
      client/lobby/CScenarioInfoScreen.cpp
  66. 1 1
      client/lobby/CSelectionBase.cpp
  67. 1 1
      client/lobby/OptionsTab.cpp
  68. 1 1
      client/lobby/RandomMapTab.cpp
  69. 1 1
      client/lobby/SelectionTab.cpp
  70. 0 1
      client/mainmenu/CMainMenu.cpp
  71. 1 1
      client/mapView/MapRenderer.cpp
  72. 0 1
      client/mapView/MapView.cpp
  73. 1 1
      client/windows/GUIClasses.cpp
  74. 2 1
      lib/StartInfo.cpp
  75. 1 1
      lib/mapObjects/CommonConstructors.cpp
  76. 0 1
      lib/mapping/CMapEditManager.cpp
  77. 1 1
      lib/mapping/CMapInfo.cpp
  78. 1 0
      lib/mapping/CMapService.cpp
  79. 0 1
      lib/mapping/MapFeaturesH3M.cpp
  80. 1 1
      lib/mapping/MapReaderH3M.cpp
  81. 0 1
      lib/registerTypes/RegisterTypes.cpp
  82. 0 1
      lib/registerTypes/TypesClientPacks1.cpp
  83. 0 1
      lib/registerTypes/TypesClientPacks2.cpp
  84. 0 1
      lib/registerTypes/TypesMapObjects1.cpp
  85. 0 1
      lib/registerTypes/TypesMapObjects2.cpp
  86. 0 1
      lib/registerTypes/TypesMapObjects3.cpp
  87. 0 1
      lib/registerTypes/TypesServerPacks.cpp
  88. 1 1
      lib/rmg/CMapGenOptions.cpp
  89. 0 1
      lib/rmg/CRmgTemplate.cpp
  90. 0 2
      lib/rmg/modificators/ConnectionsPlacer.cpp
  91. 1 3
      lib/rmg/modificators/MinePlacer.cpp
  92. 0 1
      lib/rmg/modificators/ObjectManager.cpp
  93. 1 3
      lib/rmg/modificators/RoadPlacer.cpp
  94. 0 1
      lib/rmg/modificators/WaterAdopter.cpp
  95. 1 1
      lib/rmg/modificators/WaterProxy.cpp
  96. 0 1
      lib/rmg/modificators/WaterRoutes.cpp
  97. 1 1
      lib/serializer/Connection.cpp
  98. 1 0
      mapeditor/inspector/questwidget.cpp
  99. 0 1
      mapeditor/inspector/questwidget.h
  100. 1 0
      mapeditor/inspector/rewardswidget.cpp

+ 0 - 1
AI/Nullkiller/Analyzers/BuildAnalyzer.cpp

@@ -9,7 +9,6 @@
 */
 #include "../StdInc.h"
 #include "../Engine/Nullkiller.h"
-#include "../../../lib/mapping/CMap.h" //for victory conditions
 #include "../Engine/Nullkiller.h"
 
 namespace NKAI

+ 2 - 1
AI/Nullkiller/Analyzers/DangerHitMapAnalyzer.cpp

@@ -8,7 +8,8 @@
 *
 */
 #include "../StdInc.h"
-#include "lib/mapping/CMap.h" //for victory conditions
+#include "DangerHitMapAnalyzer.h"
+
 #include "../Engine/Nullkiller.h"
 
 namespace NKAI

+ 2 - 0
AI/Nullkiller/Analyzers/DangerHitMapAnalyzer.h

@@ -14,6 +14,8 @@
 namespace NKAI
 {
 
+struct AIPath;
+
 struct HitMapInfo
 {
 	static HitMapInfo NoTreat;

+ 0 - 1
AI/Nullkiller/Analyzers/ObjectClusterizer.cpp

@@ -12,7 +12,6 @@
 #include "../Goals/ExecuteHeroChain.h"
 #include "../AIGateway.h"
 #include "../Engine/Nullkiller.h"
-#include "lib/mapping/CMap.h" //for victory conditions
 
 namespace NKAI
 {

+ 0 - 1
AI/Nullkiller/Behaviors/BuildingBehavior.cpp

@@ -15,7 +15,6 @@
 #include "../Goals/Composition.h"
 #include "../Goals/BuildThis.h"
 #include "../Goals/SaveResources.h"
-#include "lib/mapping/CMap.h" //for victory conditions
 #include "lib/CPathfinder.h"
 #include "../Engine/Nullkiller.h"
 

+ 0 - 1
AI/Nullkiller/Behaviors/BuyArmyBehavior.cpp

@@ -13,7 +13,6 @@
 #include "../AIUtility.h"
 #include "../Goals/BuyArmy.h"
 #include "../Engine/Nullkiller.h"
-#include "lib/mapping/CMap.h" //for victory conditions
 #include "lib/CPathfinder.h"
 
 namespace NKAI

+ 0 - 1
AI/Nullkiller/Behaviors/DefenceBehavior.cpp

@@ -21,7 +21,6 @@
 #include "../Goals/CaptureObject.h"
 #include "../Markers/DefendTown.h"
 #include "../Goals/ExchangeSwapTownHeroes.h"
-#include "lib/mapping/CMap.h" //for victory conditions
 #include "lib/CPathfinder.h"
 
 namespace NKAI

+ 0 - 1
AI/Nullkiller/Behaviors/GatherArmyBehavior.cpp

@@ -16,7 +16,6 @@
 #include "../Markers/ArmyUpgrade.h"
 #include "GatherArmyBehavior.h"
 #include "../AIUtility.h"
-#include "lib/mapping/CMap.h" //for victory conditions
 #include "lib/CPathfinder.h"
 
 namespace NKAI

+ 0 - 1
AI/Nullkiller/Behaviors/RecruitHeroBehavior.cpp

@@ -13,7 +13,6 @@
 #include "../AIUtility.h"
 #include "../Goals/RecruitHero.h"
 #include "../Goals/ExecuteHeroChain.h"
-#include "lib/mapping/CMap.h" //for victory conditions
 #include "lib/CPathfinder.h"
 
 namespace NKAI

+ 0 - 1
AI/Nullkiller/Behaviors/StartupBehavior.cpp

@@ -15,7 +15,6 @@
 #include "../Goals/RecruitHero.h"
 #include "../Goals/ExecuteHeroChain.h"
 #include "../Goals/ExchangeSwapTownHeroes.h"
-#include "lib/mapping/CMap.h" //for victory conditions
 #include "lib/mapObjects/MapObjects.h" //for victory conditions
 #include "lib/CPathfinder.h"
 #include "../Engine/Nullkiller.h"

+ 0 - 1
AI/Nullkiller/Goals/AbstractGoal.cpp

@@ -10,7 +10,6 @@
 #include "StdInc.h"
 #include "AbstractGoal.h"
 #include "../AIGateway.h"
-#include "../../../lib/mapping/CMap.h" //for victory conditions
 #include "../../../lib/CPathfinder.h"
 #include "../../../lib/StringConstants.h"
 

+ 0 - 1
AI/Nullkiller/Goals/AdventureSpellCast.cpp

@@ -10,7 +10,6 @@
 #include "StdInc.h"
 #include "AdventureSpellCast.h"
 #include "../AIGateway.h"
-#include "../../../lib/mapping/CMap.h" //for victory conditions
 #include "../../../lib/CPathfinder.h"
 
 namespace NKAI

+ 0 - 1
AI/Nullkiller/Goals/BuildBoat.cpp

@@ -10,7 +10,6 @@
 #include "StdInc.h"
 #include "BuildBoat.h"
 #include "../AIGateway.h"
-#include "../../../lib/mapping/CMap.h" //for victory conditions
 #include "../../../lib/CPathfinder.h"
 #include "../Behaviors/CaptureObjectsBehavior.h"
 

+ 0 - 1
AI/Nullkiller/Goals/BuildThis.cpp

@@ -11,7 +11,6 @@
 #include "BuildThis.h"
 #include "../AIGateway.h"
 #include "../AIUtility.h"
-#include "../../../lib/mapping/CMap.h" //for victory conditions
 #include "../../../lib/CPathfinder.h"
 #include "../../../lib/StringConstants.h"
 

+ 0 - 1
AI/Nullkiller/Goals/CompleteQuest.cpp

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

+ 0 - 1
AI/Nullkiller/Goals/Composition.cpp

@@ -11,7 +11,6 @@
 #include "Composition.h"
 #include "../AIGateway.h"
 #include "../AIUtility.h"
-#include "../../../lib/mapping/CMap.h" //for victory conditions
 #include "../../../lib/CPathfinder.h"
 #include "../../../lib/StringConstants.h"
 

+ 0 - 1
AI/Nullkiller/Goals/DismissHero.cpp

@@ -10,7 +10,6 @@
 #include "StdInc.h"
 #include "DismissHero.h"
 #include "../AIGateway.h"
-#include "../../../lib/mapping/CMap.h" //for victory conditions
 #include "../../../lib/CPathfinder.h"
 
 namespace NKAI

+ 0 - 1
AI/Nullkiller/Goals/ExchangeSwapTownHeroes.cpp

@@ -11,7 +11,6 @@
 #include "ExchangeSwapTownHeroes.h"
 #include "ExecuteHeroChain.h"
 #include "../AIGateway.h"
-#include "../../../lib/mapping/CMap.h" //for victory conditions
 #include "../../../lib/CPathfinder.h"
 #include "../Engine/Nullkiller.h"
 

+ 0 - 1
AI/Nullkiller/Goals/ExecuteHeroChain.cpp

@@ -10,7 +10,6 @@
 #include "StdInc.h"
 #include "ExecuteHeroChain.h"
 #include "../AIGateway.h"
-#include "../../../lib/mapping/CMap.h" //for victory conditions
 #include "../../../lib/CPathfinder.h"
 #include "../Engine/Nullkiller.h"
 

+ 0 - 1
AI/Nullkiller/Goals/RecruitHero.cpp

@@ -11,7 +11,6 @@
 #include "Goals.h"
 #include "../AIGateway.h"
 #include "../AIUtility.h"
-#include "../../../lib/mapping/CMap.h" //for victory conditions
 #include "../../../lib/CPathfinder.h"
 #include "../../../lib/StringConstants.h"
 

+ 0 - 1
AI/Nullkiller/Goals/SaveResources.cpp

@@ -10,7 +10,6 @@
 #include "StdInc.h"
 #include "SaveResources.h"
 #include "../AIGateway.h"
-#include "../../../lib/mapping/CMap.h" //for victory conditions
 #include "../../../lib/CPathfinder.h"
 #include "../Behaviors/CaptureObjectsBehavior.h"
 

+ 0 - 1
AI/Nullkiller/Pathfinding/Actions/BattleAction.cpp

@@ -12,7 +12,6 @@
 #include "BattleAction.h"
 #include "../../AIGateway.h"
 #include "../../Goals/CompleteQuest.h"
-#include "../../../../lib/mapping/CMap.h" //for victory conditions
 
 namespace NKAI
 {

+ 0 - 1
AI/Nullkiller/Pathfinding/Actions/BoatActions.cpp

@@ -14,7 +14,6 @@
 #include "../../Goals/CaptureObject.h"
 #include "../../Goals/Invalid.h"
 #include "../../Goals/BuildBoat.h"
-#include "../../../../lib/mapping/CMap.h"
 #include "../../../../lib/mapObjects/MapObjects.h"
 #include "BoatActions.h"
 

+ 0 - 1
AI/Nullkiller/Pathfinding/Actions/BoatActions.h

@@ -11,7 +11,6 @@
 #pragma once
 
 #include "SpecialAction.h"
-#include "../../../../lib/mapping/CMap.h"
 #include "../../../../lib/mapObjects/MapObjects.h"
 
 namespace NKAI

+ 0 - 1
AI/Nullkiller/Pathfinding/Actions/BuyArmyAction.cpp

@@ -12,7 +12,6 @@
 #include "BuyArmyAction.h"
 #include "../../AIGateway.h"
 #include "../../Goals/CompleteQuest.h"
-#include "../../../../lib/mapping/CMap.h" //for victory conditions
 
 namespace NKAI
 {

+ 0 - 1
AI/Nullkiller/Pathfinding/Actions/QuestAction.cpp

@@ -12,7 +12,6 @@
 #include "QuestAction.h"
 #include "../../AIGateway.h"
 #include "../../Goals/CompleteQuest.h"
-#include "../../../../lib/mapping/CMap.h" //for victory conditions
 
 namespace NKAI
 {

+ 0 - 1
AI/Nullkiller/Pathfinding/Actions/TownPortalAction.cpp

@@ -10,7 +10,6 @@
 
 #include "StdInc.h"
 #include "../../Goals/AdventureSpellCast.h"
-#include "../../../../lib/mapping/CMap.h"
 #include "../../../../lib/mapObjects/MapObjects.h"
 #include "TownPortalAction.h"
 

+ 0 - 1
AI/Nullkiller/Pathfinding/Actions/TownPortalAction.h

@@ -11,7 +11,6 @@
 #pragma once
 
 #include "SpecialAction.h"
-#include "../../../../lib/mapping/CMap.h"
 #include "../../../../lib/mapObjects/MapObjects.h"
 #include "../../Goals/AdventureSpellCast.h"
 

+ 0 - 1
AI/Nullkiller/Pathfinding/Actors.cpp

@@ -12,7 +12,6 @@
 #include "../AIGateway.h"
 #include "../Engine/Nullkiller.h"
 #include "../../../CCallback.h"
-#include "../../../lib/mapping/CMap.h"
 #include "../../../lib/mapObjects/MapObjects.h"
 #include "Actions/BuyArmyAction.h"
 

+ 0 - 1
AI/Nullkiller/Pathfinding/Rules/AILayerTransitionRule.h

@@ -14,7 +14,6 @@
 #include "../../AIGateway.h"
 #include "../Actions/BoatActions.h"
 #include "../../../../CCallback.h"
-#include "../../../../lib/mapping/CMap.h"
 #include "../../../../lib/mapObjects/MapObjects.h"
 
 namespace NKAI

+ 0 - 1
AI/Nullkiller/Pathfinding/Rules/AIMovementAfterDestinationRule.h

@@ -13,7 +13,6 @@
 #include "../AINodeStorage.h"
 #include "../../AIGateway.h"
 #include "../../../../CCallback.h"
-#include "../../../../lib/mapping/CMap.h"
 #include "../../../../lib/mapObjects/MapObjects.h"
 
 namespace NKAI

+ 0 - 1
AI/Nullkiller/Pathfinding/Rules/AIMovementToDestinationRule.h

@@ -13,7 +13,6 @@
 #include "../AINodeStorage.h"
 #include "../../AIGateway.h"
 #include "../../../../CCallback.h"
-#include "../../../../lib/mapping/CMap.h"
 #include "../../../../lib/mapObjects/MapObjects.h"
 
 namespace NKAI

+ 0 - 1
AI/Nullkiller/Pathfinding/Rules/AIPreviousNodeRule.h

@@ -13,7 +13,6 @@
 #include "../AINodeStorage.h"
 #include "../../AIGateway.h"
 #include "../../../../CCallback.h"
-#include "../../../../lib/mapping/CMap.h"
 #include "../../../../lib/mapObjects/MapObjects.h"
 
 namespace NKAI

+ 0 - 1
AI/VCAI/Goals/AbstractGoal.cpp

@@ -14,7 +14,6 @@
 #include "../FuzzyHelper.h"
 #include "../ResourceManager.h"
 #include "../BuildingManager.h"
-#include "../../../lib/mapping/CMap.h" //for victory conditions
 #include "../../../lib/CPathfinder.h"
 #include "../../../lib/StringConstants.h"
 

+ 1 - 1
AI/VCAI/Goals/AdventureSpellCast.cpp

@@ -12,7 +12,7 @@
 #include "../VCAI.h"
 #include "../FuzzyHelper.h"
 #include "../AIhelper.h"
-#include "../../../lib/mapping/CMap.h" //for victory conditions
+#include "../../../lib/mapObjects/CGTownInstance.h"
 #include "../../../lib/CPathfinder.h"
 
 extern boost::thread_specific_ptr<CCallback> cb;

+ 1 - 1
AI/VCAI/Goals/Build.cpp

@@ -16,7 +16,7 @@
 #include "../FuzzyHelper.h"
 #include "../ResourceManager.h"
 #include "../BuildingManager.h"
-#include "../../../lib/mapping/CMap.h" //for victory conditions
+#include "../../../lib/mapObjects/CGTownInstance.h"
 #include "../../../lib/CPathfinder.h"
 #include "../../../lib/StringConstants.h"
 

+ 0 - 1
AI/VCAI/Goals/BuildBoat.cpp

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

+ 1 - 1
AI/VCAI/Goals/BuildThis.cpp

@@ -15,7 +15,7 @@
 #include "../FuzzyHelper.h"
 #include "../ResourceManager.h"
 #include "../BuildingManager.h"
-#include "../../../lib/mapping/CMap.h" //for victory conditions
+#include "../../../lib/mapObjects/CGTownInstance.h"
 #include "../../../lib/CPathfinder.h"
 #include "../../../lib/StringConstants.h"
 

+ 1 - 1
AI/VCAI/Goals/CollectRes.cpp

@@ -15,7 +15,7 @@
 #include "../FuzzyHelper.h"
 #include "../ResourceManager.h"
 #include "../BuildingManager.h"
-#include "../../../lib/mapping/CMap.h" //for victory conditions
+#include "../../../lib/mapObjects/CGMarket.h"
 #include "../../../lib/CPathfinder.h"
 #include "../../../lib/StringConstants.h"
 

+ 1 - 1
AI/VCAI/Goals/CompleteQuest.cpp

@@ -12,7 +12,7 @@
 #include "../VCAI.h"
 #include "../FuzzyHelper.h"
 #include "../AIhelper.h"
-#include "../../../lib/mapping/CMap.h" //for victory conditions
+#include "../../../lib/mapObjects/CQuest.h"
 #include "../../../lib/CPathfinder.h"
 
 extern boost::thread_specific_ptr<CCallback> cb;

+ 0 - 1
AI/VCAI/Goals/Conquer.cpp

@@ -15,7 +15,6 @@
 #include "../FuzzyHelper.h"
 #include "../ResourceManager.h"
 #include "../BuildingManager.h"
-#include "../../../lib/mapping/CMap.h" //for victory conditions
 #include "../../../lib/CPathfinder.h"
 #include "../../../lib/StringConstants.h"
 

+ 0 - 1
AI/VCAI/Goals/Explore.cpp

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

+ 1 - 1
AI/VCAI/Goals/GatherArmy.cpp

@@ -15,7 +15,7 @@
 #include "../FuzzyHelper.h"
 #include "../ResourceManager.h"
 #include "../BuildingManager.h"
-#include "../../../lib/mapping/CMap.h" //for victory conditions
+#include "../../../lib/mapObjects/CGTownInstance.h"
 #include "../../../lib/CPathfinder.h"
 #include "../../../lib/StringConstants.h"
 

+ 1 - 1
AI/VCAI/Goals/GatherTroops.cpp

@@ -15,7 +15,7 @@
 #include "../FuzzyHelper.h"
 #include "../ResourceManager.h"
 #include "../BuildingManager.h"
-#include "../../../lib/mapping/CMap.h" //for victory conditions
+#include "../../../lib/mapObjects/CGTownInstance.h"
 #include "../../../lib/CPathfinder.h"
 #include "../../../lib/StringConstants.h"
 

+ 0 - 1
AI/VCAI/Goals/RecruitHero.cpp

@@ -15,7 +15,6 @@
 #include "../FuzzyHelper.h"
 #include "../ResourceManager.h"
 #include "../BuildingManager.h"
-#include "../../../lib/mapping/CMap.h" //for victory conditions
 #include "../../../lib/CPathfinder.h"
 #include "../../../lib/StringConstants.h"
 

+ 0 - 2
AI/VCAI/Goals/VisitHero.cpp

@@ -17,8 +17,6 @@
 #include "../FuzzyHelper.h"
 #include "../ResourceManager.h"
 #include "../BuildingManager.h"
-#include "../../../lib/mapping/CMap.h" //for victory conditions
-
 
 extern boost::thread_specific_ptr<CCallback> cb;
 extern boost::thread_specific_ptr<VCAI> ai;

+ 0 - 1
AI/VCAI/Goals/VisitObj.cpp

@@ -15,7 +15,6 @@
 #include "../FuzzyHelper.h"
 #include "../ResourceManager.h"
 #include "../BuildingManager.h"
-#include "../../../lib/mapping/CMap.h" //for victory conditions
 #include "../../../lib/CPathfinder.h"
 #include "../../../lib/StringConstants.h"
 

+ 0 - 1
AI/VCAI/Goals/VisitTile.cpp

@@ -15,7 +15,6 @@
 #include "../FuzzyHelper.h"
 #include "../ResourceManager.h"
 #include "../BuildingManager.h"
-#include "../../../lib/mapping/CMap.h" //for victory conditions
 #include "../../../lib/CPathfinder.h"
 #include "../../../lib/StringConstants.h"
 

+ 2 - 1
AI/VCAI/Goals/Win.cpp

@@ -15,7 +15,8 @@
 #include "../FuzzyHelper.h"
 #include "../ResourceManager.h"
 #include "../BuildingManager.h"
-#include "../../../lib/mapping/CMap.h" //for victory conditions
+#include "../../../lib/mapping/CMapHeader.h" //for victory conditions
+#include "../../../lib/mapObjects/CGTownInstance.h"
 #include "../../../lib/CPathfinder.h"
 #include "../../../lib/StringConstants.h"
 

+ 1 - 1
AI/VCAI/Pathfinding/AIPathfinder.cpp

@@ -11,7 +11,7 @@
 #include "AIPathfinder.h"
 #include "AIPathfinderConfig.h"
 #include "../../../CCallback.h"
-#include "../../../lib/mapping/CMap.h"
+#include "../../../lib/mapping/CMapDefines.h"
 
 std::vector<std::shared_ptr<AINodeStorage>> AIPathfinder::storagePool;
 std::map<HeroPtr, std::shared_ptr<AINodeStorage>> AIPathfinder::storageMap;

+ 1 - 2
AI/VCAI/Pathfinding/Actions/BoatActions.cpp

@@ -11,7 +11,6 @@
 #include "StdInc.h"
 #include "../../Goals/AdventureSpellCast.h"
 #include "../../Goals/BuildBoat.h"
-#include "../../../../lib/mapping/CMap.h"
 #include "../../../../lib/mapObjects/MapObjects.h"
 #include "BoatActions.h"
 
@@ -58,4 +57,4 @@ namespace AIPathfinding
 
 		return hero->getSpellCost(summonBoat.toSpell());
 	}
-}
+}

+ 1 - 2
AI/VCAI/Pathfinding/Actions/BoatActions.h

@@ -11,7 +11,6 @@
 #pragma once
 
 #include "ISpecialAction.h"
-#include "../../../../lib/mapping/CMap.h"
 #include "../../../../lib/mapObjects/MapObjects.h"
 
 namespace AIPathfinding
@@ -69,4 +68,4 @@ namespace AIPathfinding
 
 		virtual Goals::TSubgoal whatToDo(const HeroPtr & hero) const override;
 	};
-}
+}

+ 1 - 2
AI/VCAI/Pathfinding/Actions/TownPortalAction.cpp

@@ -10,7 +10,6 @@
 
 #include "StdInc.h"
 #include "../../Goals/AdventureSpellCast.h"
-#include "../../../../lib/mapping/CMap.h"
 #include "../../../../lib/mapObjects/MapObjects.h"
 #include "TownPortalAction.h"
 
@@ -21,4 +20,4 @@ Goals::TSubgoal TownPortalAction::whatToDo(const HeroPtr & hero) const
 	const CGTownInstance * targetTown = target; // const pointer is not allowed in settown
 
 	return Goals::sptr(Goals::AdventureSpellCast(hero, SpellID::TOWN_PORTAL).settown(targetTown).settile(targetTown->visitablePos()));
-}
+}

+ 1 - 2
AI/VCAI/Pathfinding/Actions/TownPortalAction.h

@@ -11,7 +11,6 @@
 #pragma once
 
 #include "ISpecialAction.h"
-#include "../../../../lib/mapping/CMap.h"
 #include "../../../../lib/mapObjects/MapObjects.h"
 #include "../../Goals/AdventureSpellCast.h"
 
@@ -30,4 +29,4 @@ namespace AIPathfinding
 
 		virtual Goals::TSubgoal whatToDo(const HeroPtr & hero) const override;
 	};
-}
+}

+ 2 - 1
AI/VCAI/Pathfinding/PathfindingManager.cpp

@@ -13,7 +13,8 @@
 #include "AIPathfinderConfig.h"
 #include "../Goals/Goals.h"
 #include "../../../lib/CGameInfoCallback.h"
-#include "../../../lib/mapping/CMap.h"
+#include "../../../lib/mapping/CMapDefines.h"
+#include "../../../lib/mapObjects/CQuest.h"
 
 PathfindingManager::PathfindingManager(CPlayerSpecificInfoCallback * CB, VCAI * AI)
 	: ai(AI), cb(CB)

+ 0 - 1
AI/VCAI/Pathfinding/Rules/AILayerTransitionRule.h

@@ -14,7 +14,6 @@
 #include "../../VCAI.h"
 #include "../Actions/BoatActions.h"
 #include "../../../../CCallback.h"
-#include "../../../../lib/mapping/CMap.h"
 #include "../../../../lib/mapObjects/MapObjects.h"
 
 namespace AIPathfinding

+ 0 - 1
AI/VCAI/Pathfinding/Rules/AIMovementAfterDestinationRule.h

@@ -13,7 +13,6 @@
 #include "../AINodeStorage.h"
 #include "../../VCAI.h"
 #include "../../../../CCallback.h"
-#include "../../../../lib/mapping/CMap.h"
 #include "../../../../lib/mapObjects/MapObjects.h"
 
 namespace AIPathfinding

+ 0 - 1
AI/VCAI/Pathfinding/Rules/AIMovementToDestinationRule.h

@@ -13,7 +13,6 @@
 #include "../AINodeStorage.h"
 #include "../../VCAI.h"
 #include "../../../../CCallback.h"
-#include "../../../../lib/mapping/CMap.h"
 #include "../../../../lib/mapObjects/MapObjects.h"
 
 namespace AIPathfinding

+ 0 - 1
AI/VCAI/Pathfinding/Rules/AIPreviousNodeRule.h

@@ -13,7 +13,6 @@
 #include "../AINodeStorage.h"
 #include "../../VCAI.h"
 #include "../../../../CCallback.h"
-#include "../../../../lib/mapping/CMap.h"
 #include "../../../../lib/mapObjects/MapObjects.h"
 
 namespace AIPathfinding

+ 2 - 1
client/CPlayerInterface.cpp

@@ -53,13 +53,14 @@
 #include "../lib/spells/CSpellHandler.h"
 #include "../lib/CTownHandler.h"
 #include "../lib/mapObjects/CObjectClassesHandler.h" // For displaying correct UI when interacting with objects
+#include "../lib/mapObjects/CGTownInstance.h"
+#include "../lib/mapObjects/MiscObjects.h"
 #include "../lib/CStack.h"
 #include "../lib/JsonNode.h"
 #include "CMusicHandler.h"
 #include "../lib/CondSh.h"
 #include "../lib/NetPacksBase.h"
 #include "../lib/NetPacks.h"//todo: remove
-#include "../lib/mapping/CMap.h"
 #include "../lib/VCMIDirs.h"
 #include "../lib/CStopWatch.h"
 #include "../lib/StartInfo.h"

+ 0 - 1
client/CServerHandler.cpp

@@ -42,7 +42,6 @@
 #include "../lib/StartInfo.h"
 #include "../lib/VCMIDirs.h"
 #include "../lib/mapping/CCampaignHandler.h"
-#include "../lib/mapping/CMap.h"
 #include "../lib/mapping/CMapInfo.h"
 #include "../lib/mapObjects/MiscObjects.h"
 #include "../lib/rmg/CMapGenOptions.h"

+ 2 - 1
client/adventureMap/AdventureMapInterface.cpp

@@ -37,8 +37,9 @@
 #include "../../lib/CGeneralTextHandler.h"
 #include "../../lib/spells/CSpellHandler.h"
 #include "../../lib/mapObjects/CGHeroInstance.h"
+#include "../../lib/mapObjects/CGTownInstance.h"
 #include "../../lib/CPathfinder.h"
-#include "../../lib/mapping/CMap.h"
+#include "../../lib/mapping/CMapDefines.h"
 
 std::shared_ptr<AdventureMapInterface> adventureInt;
 

+ 1 - 1
client/lobby/CCampaignInfoScreen.cpp

@@ -15,7 +15,7 @@
 #include "../../lib/CGeneralTextHandler.h"
 #include "../../lib/StartInfo.h"
 #include "../../lib/mapping/CMapInfo.h"
-#include "../../lib/mapping/CMap.h"
+#include "../../lib/mapping/CMapHeader.h"
 #include "../gui/CGuiHandler.h"
 #include "../CGameInfo.h"
 #include "../CPlayerInterface.h"

+ 1 - 1
client/lobby/CSavingScreen.cpp

@@ -25,7 +25,7 @@
 #include "../../lib/StartInfo.h"
 #include "../../lib/filesystem/Filesystem.h"
 #include "../../lib/mapping/CMapInfo.h"
-#include "../../lib/mapping/CMap.h"
+#include "../../lib/mapping/CMapHeader.h"
 
 CSavingScreen::CSavingScreen()
 	: CSelectionBase(ESelectionScreen::saveGame)

+ 1 - 1
client/lobby/CScenarioInfoScreen.cpp

@@ -23,7 +23,7 @@
 #include "../../lib/CGeneralTextHandler.h"
 #include "../../lib/StartInfo.h"
 #include "../../lib/mapping/CMapInfo.h"
-#include "../../lib/mapping/CMap.h"
+#include "../../lib/mapping/CMapHeader.h"
 
 CScenarioInfoScreen::CScenarioInfoScreen()
 {

+ 1 - 1
client/lobby/CSelectionBase.cpp

@@ -43,7 +43,7 @@
 #include "../../lib/CThreadHelper.h"
 #include "../../lib/filesystem/Filesystem.h"
 #include "../../lib/mapping/CMapInfo.h"
-#include "../../lib/mapping/CMap.h"
+#include "../../lib/mapping/CMapHeader.h"
 #include "../../lib/serializer/Connection.h"
 
 ISelectionScreenInfo::ISelectionScreenInfo(ESelectionScreen ScreenType)

+ 1 - 1
client/lobby/OptionsTab.cpp

@@ -29,8 +29,8 @@
 #include "../../lib/CArtHandler.h"
 #include "../../lib/CTownHandler.h"
 #include "../../lib/CHeroHandler.h"
-#include "../../lib/mapping/CMap.h"
 #include "../../lib/mapping/CMapInfo.h"
+#include "../../lib/mapping/CMapHeader.h"
 
 OptionsTab::OptionsTab() : humanPlayers(0)
 {

+ 1 - 1
client/lobby/RandomMapTab.cpp

@@ -27,7 +27,7 @@
 
 #include "../../lib/CGeneralTextHandler.h"
 #include "../../lib/mapping/CMapInfo.h"
-#include "../../lib/mapping/CMap.h"
+#include "../../lib/mapping/CMapHeader.h"
 #include "../../lib/mapping/MapFormat.h"
 #include "../../lib/rmg/CMapGenOptions.h"
 #include "../../lib/CModHandler.h"

+ 1 - 1
client/lobby/SelectionTab.cpp

@@ -36,7 +36,7 @@
 #include "../../lib/GameSettings.h"
 #include "../../lib/filesystem/Filesystem.h"
 #include "../../lib/mapping/CMapInfo.h"
-#include "../../lib/mapping/CMap.h"
+#include "../../lib/mapping/CMapHeader.h"
 #include "../../lib/mapping/MapFormat.h"
 #include "../../lib/mapping/CCampaignHandler.h"
 #include "../../lib/serializer/Connection.h"

+ 0 - 1
client/mainmenu/CMainMenu.cpp

@@ -46,7 +46,6 @@
 #include "../../lib/filesystem/Filesystem.h"
 #include "../../lib/filesystem/CCompressedStream.h"
 #include "../../lib/VCMIDirs.h"
-#include "../../lib/mapping/CMap.h"
 #include "../../lib/CStopWatch.h"
 #include "../../lib/NetPacksLobby.h"
 #include "../../lib/CThreadHelper.h"

+ 1 - 1
client/mapView/MapRenderer.cpp

@@ -27,7 +27,7 @@
 #include "../../lib/TerrainHandler.h"
 #include "../../lib/mapObjects/CGHeroInstance.h"
 #include "../../lib/mapObjects/MiscObjects.h"
-#include "../../lib/mapping/CMap.h"
+#include "../../lib/mapping/CMapDefines.h"
 
 struct NeighborTilesInfo
 {

+ 0 - 1
client/mapView/MapView.cpp

@@ -30,7 +30,6 @@
 
 #include "../../lib/CConfigHandler.h"
 #include "../../lib/mapObjects/CGHeroInstance.h"
-#include "../../lib/mapping/CMap.h"
 
 BasicMapView::~BasicMapView() = default;
 

+ 1 - 1
client/windows/GUIClasses.cpp

@@ -46,6 +46,7 @@
 #include "../../CCallback.h"
 
 #include "../lib/mapObjects/CGHeroInstance.h"
+#include "../lib/mapObjects/CGTownInstance.h"
 #include "../lib/CArtHandler.h"
 #include "../lib/CBuildingHandler.h"
 #include "../lib/CConfigHandler.h"
@@ -63,7 +64,6 @@
 #include "../lib/CTownHandler.h"
 #include "../lib/GameConstants.h"
 #include "../lib/bonuses/Bonus.h"
-#include "../lib/mapping/CMap.h"
 #include "../lib/NetPacksBase.h"
 #include "../lib/StartInfo.h"
 #include "../lib/TextOperations.h"

+ 2 - 1
lib/StartInfo.cpp

@@ -12,10 +12,11 @@
 
 #include "CGeneralTextHandler.h"
 #include "CModHandler.h"
+#include "VCMI_Lib.h"
 #include "rmg/CMapGenOptions.h"
 #include "mapping/CMapInfo.h"
 #include "mapping/CCampaignHandler.h"
-#include "mapping/CMap.h"
+#include "mapping/CMapHeader.h"
 #include "mapping/CMapService.h"
 
 VCMI_LIB_NAMESPACE_BEGIN

+ 1 - 1
lib/mapObjects/CommonConstructors.cpp

@@ -14,7 +14,7 @@
 #include "CGHeroInstance.h"
 #include "CBank.h"
 #include "../TerrainHandler.h"
-#include "../mapping/CMap.h"
+#include "../mapping/CMapDefines.h"
 #include "../CHeroHandler.h"
 #include "../CGeneralTextHandler.h"
 #include "../CCreatureHandler.h"

+ 0 - 1
lib/mapping/CMapEditManager.cpp

@@ -15,7 +15,6 @@
 #include "../mapObjects/CGHeroInstance.h"
 #include "../VCMI_Lib.h"
 #include "CDrawRoadsOperation.h"
-#include "../mapping/CMap.h"
 #include "CMapOperation.h"
 
 VCMI_LIB_NAMESPACE_BEGIN

+ 1 - 1
lib/mapping/CMapInfo.cpp

@@ -14,7 +14,7 @@
 #include "../StartInfo.h"
 #include "../GameConstants.h"
 #include "CMapService.h"
-#include "CMap.h"
+#include "CMapHeader.h"
 #include "CCampaignHandler.h"
 #include "MapFormat.h"
 

+ 1 - 0
lib/mapping/CMapService.cpp

@@ -17,6 +17,7 @@
 #include "../filesystem/CMemoryBuffer.h"
 #include "../CModHandler.h"
 #include "../Languages.h"
+#include "../VCMI_Lib.h"
 
 #include "CMap.h"
 #include "MapFormat.h"

+ 0 - 1
lib/mapping/MapFeaturesH3M.cpp

@@ -11,7 +11,6 @@
 #include "StdInc.h"
 #include "MapFeaturesH3M.h"
 
-#include "CMap.h"
 #include "MapFormat.h"
 
 VCMI_LIB_NAMESPACE_BEGIN

+ 1 - 1
lib/mapping/MapReaderH3M.cpp

@@ -12,7 +12,7 @@
 #include "MapReaderH3M.h"
 
 #include "../filesystem/CBinaryReader.h"
-#include "CMap.h"
+#include "../int3.h"
 
 VCMI_LIB_NAMESPACE_BEGIN
 

+ 0 - 1
lib/registerTypes/RegisterTypes.cpp

@@ -14,7 +14,6 @@
 #include "../mapping/CMapInfo.h"
 #include "../StartInfo.h"
 #include "../CGameState.h"
-#include "../mapping/CMap.h"
 #include "../mapObjects/CObjectHandler.h"
 #include "../CCreatureHandler.h"
 #include "../spells/CSpellHandler.h"

+ 0 - 1
lib/registerTypes/TypesClientPacks1.cpp

@@ -12,7 +12,6 @@
 
 #include "../StartInfo.h"
 #include "../CGameState.h"
-#include "../mapping/CMap.h"
 #include "../CModHandler.h"
 #include "../mapObjects/CObjectHandler.h"
 #include "../CCreatureHandler.h"

+ 0 - 1
lib/registerTypes/TypesClientPacks2.cpp

@@ -14,7 +14,6 @@
 #include "../CStack.h"
 #include "../battle/BattleInfo.h"
 #include "../CGameState.h"
-#include "../mapping/CMap.h"
 #include "../CModHandler.h"
 #include "../mapObjects/CObjectHandler.h"
 #include "../CCreatureHandler.h"

+ 0 - 1
lib/registerTypes/TypesMapObjects1.cpp

@@ -12,7 +12,6 @@
 
 #include "../StartInfo.h"
 #include "../CGameState.h"
-#include "../mapping/CMap.h"
 #include "../CModHandler.h"
 #include "../mapObjects/CObjectHandler.h"
 #include "../CCreatureHandler.h"

+ 0 - 1
lib/registerTypes/TypesMapObjects2.cpp

@@ -14,7 +14,6 @@
 #include "../CStack.h"
 #include "../battle/BattleInfo.h"
 #include "../CGameState.h"
-#include "../mapping/CMap.h"
 #include "../CModHandler.h"
 #include "../mapObjects/CObjectHandler.h"
 #include "../CCreatureHandler.h"

+ 0 - 1
lib/registerTypes/TypesMapObjects3.cpp

@@ -12,7 +12,6 @@
 
 #include "../StartInfo.h"
 #include "../CGameState.h"
-#include "../mapping/CMap.h"
 #include "../CModHandler.h"
 #include "../mapObjects/CObjectHandler.h"
 #include "../CCreatureHandler.h"

+ 0 - 1
lib/registerTypes/TypesServerPacks.cpp

@@ -12,7 +12,6 @@
 
 #include "../StartInfo.h"
 #include "../CGameState.h"
-#include "../mapping/CMap.h"
 #include "../CModHandler.h"
 #include "../mapObjects/CObjectHandler.h"
 #include "../CCreatureHandler.h"

+ 1 - 1
lib/rmg/CMapGenOptions.cpp

@@ -11,7 +11,7 @@
 #include "StdInc.h"
 #include "CMapGenOptions.h"
 
-#include "../mapping/CMap.h"
+#include "../mapping/CMapHeader.h"
 #include "CRmgTemplateStorage.h"
 #include "CRmgTemplate.h"
 #include "CRandomGenerator.h"

+ 0 - 1
lib/rmg/CRmgTemplate.cpp

@@ -13,7 +13,6 @@
 #include <boost/bimap.hpp>
 #include "CRmgTemplate.h"
 
-#include "../mapping/CMap.h"
 #include "../VCMI_Lib.h"
 #include "../CTownHandler.h"
 #include "../CModHandler.h"

+ 0 - 2
lib/rmg/modificators/ConnectionsPlacer.cpp

@@ -13,10 +13,8 @@
 #include "../CMapGenerator.h"
 #include "../RmgMap.h"
 #include "../../TerrainHandler.h"
-#include "../../mapping/CMap.h"
 #include "../../mapping/CMapEditManager.h"
 #include "../../mapObjects/CObjectClassesHandler.h"
-#include "../RmgPath.h"
 #include "../RmgObject.h"
 #include "ObjectManager.h"
 #include "../Functions.h"

+ 1 - 3
lib/rmg/modificators/MinePlacer.cpp

@@ -10,10 +10,8 @@
 #include "ConnectionsPlacer.h"
 #include "../CMapGenerator.h"
 #include "../RmgMap.h"
-#include "../../mapping/CMap.h"
 #include "../../mapping/CMapEditManager.h"
 #include "../../mapObjects/CObjectClassesHandler.h"
-#include "../../spells/CSpellHandler.h" //for choosing random spells
 #include "../RmgPath.h"
 #include "../RmgObject.h"
 #include "ObjectManager.h"
@@ -95,4 +93,4 @@ bool MinePlacer::placeMines(ObjectManager & manager)
 	return true;
 }
 
-VCMI_LIB_NAMESPACE_END
+VCMI_LIB_NAMESPACE_END

+ 0 - 1
lib/rmg/modificators/ObjectManager.cpp

@@ -19,7 +19,6 @@
 #include "ConnectionsPlacer.h"
 #include "TownPlacer.h"
 #include "MinePlacer.h"
-#include "TreasurePlacer.h"
 #include "QuestArtifactPlacer.h"
 #include "../../CCreatureHandler.h"
 #include "../../mapObjects/CommonConstructors.h"

+ 1 - 3
lib/rmg/modificators/RoadPlacer.cpp

@@ -14,11 +14,9 @@
 #include "ObstaclePlacer.h"
 #include "../Functions.h"
 #include "../CMapGenerator.h"
-#include "../RmgMap.h"
 #include "../threadpool/MapProxy.h"
-#include "../../mapping/CMapEditManager.h"
 #include "../../CModHandler.h"
-#include "../RmgPath.h"
+#include "../../mapping/CMapEditManager.h"
 
 VCMI_LIB_NAMESPACE_BEGIN
 

+ 0 - 1
lib/rmg/modificators/WaterAdopter.cpp

@@ -12,7 +12,6 @@
 #include "WaterAdopter.h"
 #include "../CMapGenerator.h"
 #include "../RmgMap.h"
-#include "../../mapping/CMap.h"
 #include "../../mapping/CMapEditManager.h"
 #include "../../mapObjects/CObjectClassesHandler.h"
 #include "../RmgPath.h"

+ 1 - 1
lib/rmg/modificators/WaterProxy.cpp

@@ -45,7 +45,7 @@ void WaterProxy::process()
 	for([[maybe_unused]] const auto & t : zone.area().getTilesVector())
 	{
 		assert(map.isOnMap(t));
-		assert(map.map().getTile(t).terType->getId() == zone.getTerrainType());
+		assert(map.getTile(t).terType->getId() == zone.getTerrainType());
 	}
 
 	for(const auto & z : map.getZones())

+ 0 - 1
lib/rmg/modificators/WaterRoutes.cpp

@@ -13,7 +13,6 @@
 #include "WaterProxy.h"
 #include "../CMapGenerator.h"
 #include "../RmgMap.h"
-#include "../../mapping/CMap.h"
 #include "../../mapping/CMapEditManager.h"
 #include "../../mapObjects/CObjectClassesHandler.h"
 #include "../RmgPath.h"

+ 1 - 1
lib/serializer/Connection.cpp

@@ -11,7 +11,7 @@
 #include "Connection.h"
 
 #include "../registerTypes/RegisterTypes.h"
-#include "../mapping/CMap.h"
+#include "../mapping/CMapHeader.h"
 #include "../CGameState.h"
 
 #include <boost/asio.hpp>

+ 1 - 0
mapeditor/inspector/questwidget.cpp

@@ -16,6 +16,7 @@
 #include "../lib/CCreatureHandler.h"
 #include "../lib/CHeroHandler.h"
 #include "../lib/StringConstants.h"
+#include "../lib/mapping/CMap.h"
 
 QuestWidget::QuestWidget(const CMap & _map, CGSeerHut & _sh, QWidget *parent) :
 	QDialog(parent),

+ 0 - 1
mapeditor/inspector/questwidget.h

@@ -11,7 +11,6 @@
 #include "../StdInc.h"
 #include <QDialog>
 #include "../lib/mapObjects/CQuest.h"
-#include "../lib/mapping/CMap.h"
 
 namespace Ui {
 class QuestWidget;

+ 1 - 0
mapeditor/inspector/rewardswidget.cpp

@@ -16,6 +16,7 @@
 #include "../lib/CArtHandler.h"
 #include "../lib/CCreatureHandler.h"
 #include "../lib/StringConstants.h"
+#include "../lib/mapping/CMap.h"
 
 RewardsWidget::RewardsWidget(const CMap & m, CGPandoraBox & p, QWidget *parent) :
 	QDialog(parent),

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.