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

Moving some files from lib to the battle subdirectory.

This commit is contained in:
FeniksFire 2017-06-24 16:42:05 +02:00
parent 221386a39d
commit 4113bdab01
42 changed files with 47 additions and 52 deletions

View File

@ -9,7 +9,7 @@
*/ */
#pragma once #pragma once
#include "../../lib/BattleHex.h" #include "../../lib/battle/BattleHex.h"
class CStack; class CStack;

View File

@ -1,6 +1,6 @@
#pragma once #pragma once
#include "../../lib/BattleHex.h" #include "../../lib/battle/BattleHex.h"
class CStupidAI : public CBattleGameInterface class CStupidAI : public CBattleGameInterface
{ {

View File

@ -18,7 +18,7 @@
#include "lib/GameConstants.h" #include "lib/GameConstants.h"
#include "lib/CPlayerState.h" #include "lib/CPlayerState.h"
#include "lib/UnlockGuard.h" #include "lib/UnlockGuard.h"
#include "lib/BattleInfo.h" #include "lib/battle/BattleInfo.h"
/* /*
* CCallback.cpp, part of VCMI engine * CCallback.cpp, part of VCMI engine

View File

@ -11,7 +11,7 @@
#include "../lib/CGameState.h" #include "../lib/CGameState.h"
#include "CPlayerInterface.h" #include "CPlayerInterface.h"
#include "../lib/StartInfo.h" #include "../lib/StartInfo.h"
#include "../lib/BattleInfo.h" #include "../lib/battle/BattleInfo.h"
#include "../lib/CModHandler.h" #include "../lib/CModHandler.h"
#include "../lib/CArtHandler.h" #include "../lib/CArtHandler.h"
#include "../lib/CGeneralTextHandler.h" #include "../lib/CGeneralTextHandler.h"

View File

@ -2,7 +2,7 @@
#include "../lib/IGameCallback.h" #include "../lib/IGameCallback.h"
#include "../lib/BattleAction.h" #include "../lib/battle/BattleAction.h"
#include "../lib/CStopWatch.h" #include "../lib/CStopWatch.h"
#include "../lib/int3.h" #include "../lib/int3.h"

View File

@ -25,7 +25,7 @@
#include "../lib/mapping/CCampaignHandler.h" #include "../lib/mapping/CCampaignHandler.h"
#include "../lib/CGameState.h" #include "../lib/CGameState.h"
#include "../lib/CStack.h" #include "../lib/CStack.h"
#include "../lib/BattleInfo.h" #include "../lib/battle/BattleInfo.h"
#include "../lib/GameConstants.h" #include "../lib/GameConstants.h"
#include "../lib/CPlayerState.h" #include "../lib/CPlayerState.h"
#include "gui/CGuiHandler.h" #include "gui/CGuiHandler.h"

View File

@ -1,6 +1,6 @@
#pragma once #pragma once
#include "../../lib/BattleHex.h" #include "../../lib/battle/BattleHex.h"
#include "../widgets/Images.h" #include "../widgets/Images.h"
class CBattleInterface; class CBattleInterface;

View File

@ -1,7 +1,7 @@
#pragma once #pragma once
#include "../gui/CIntObject.h" #include "../gui/CIntObject.h"
#include "../../lib/BattleHex.h" #include "../../lib/battle/BattleHex.h"
#include "../windows/CWindowObject.h" #include "../windows/CWindowObject.h"
struct SDL_Surface; struct SDL_Surface;

View File

@ -15,7 +15,7 @@
#include "CGeneralTextHandler.h" #include "CGeneralTextHandler.h"
#include "mapObjects/CObjectHandler.h" // for CGObjectInstance #include "mapObjects/CObjectHandler.h" // for CGObjectInstance
#include "StartInfo.h" // for StartInfo #include "StartInfo.h" // for StartInfo
#include "BattleInfo.h" // for BattleInfo #include "battle/BattleInfo.h" // for BattleInfo
#include "NetPacks.h" // for InfoWindow #include "NetPacks.h" // for InfoWindow
#include "CModHandler.h" #include "CModHandler.h"
#include "spells/CSpellHandler.h" #include "spells/CSpellHandler.h"

View File

@ -1,7 +1,7 @@
#pragma once #pragma once
#include "BattleAction.h" #include "battle/BattleAction.h"
#include "IGameEventsReceiver.h" #include "IGameEventsReceiver.h"
#include "CGameStateFwd.h" #include "CGameStateFwd.h"

View File

@ -16,7 +16,7 @@
#include "StartInfo.h" #include "StartInfo.h"
#include "NetPacks.h" #include "NetPacks.h"
#include "registerTypes/RegisterTypes.h" #include "registerTypes/RegisterTypes.h"
#include "BattleInfo.h" #include "battle/BattleInfo.h"
#include "JsonNode.h" #include "JsonNode.h"
#include "filesystem/Filesystem.h" #include "filesystem/Filesystem.h"
#include "GameConstants.h" #include "GameConstants.h"

View File

@ -6,7 +6,7 @@
#include "VCMI_Lib.h" #include "VCMI_Lib.h"
#include "JsonNode.h" #include "JsonNode.h"
#include "StringConstants.h" #include "StringConstants.h"
#include "BattleHex.h" #include "battle/BattleHex.h"
#include "CCreatureHandler.h" #include "CCreatureHandler.h"
#include "CModHandler.h" #include "CModHandler.h"
#include "CTownHandler.h" #include "CTownHandler.h"

View File

@ -76,9 +76,9 @@ set(lib_SRCS
spells/CDefaultSpellMechanics.cpp spells/CDefaultSpellMechanics.cpp
spells/ViewSpellInt.cpp spells/ViewSpellInt.cpp
BattleAction.cpp battle/BattleAction.cpp
BattleHex.cpp battle/BattleHex.cpp
BattleInfo.cpp battle/BattleInfo.cpp
battle/AccessibilityInfo.cpp battle/AccessibilityInfo.cpp
battle/BattleAttackInfo.cpp battle/BattleAttackInfo.cpp
battle/CBattleInfoCallback.cpp battle/CBattleInfoCallback.cpp
@ -100,7 +100,7 @@ set(lib_SRCS
CGeneralTextHandler.cpp CGeneralTextHandler.cpp
CHeroHandler.cpp CHeroHandler.cpp
CModHandler.cpp CModHandler.cpp
CObstacleInstance.cpp battle/CObstacleInstance.cpp
CRandomGenerator.cpp CRandomGenerator.cpp
CThreadHelper.cpp CThreadHelper.cpp

View File

@ -9,7 +9,7 @@
*/ */
#include "StdInc.h" #include "StdInc.h"
#include "CStack.h" #include "CStack.h"
#include "BattleInfo.h" #include "battle/BattleInfo.h"
#include "spells/CSpellHandler.h" #include "spells/CSpellHandler.h"
#include "CRandomGenerator.h" #include "CRandomGenerator.h"
#include "NetPacks.h" #include "NetPacks.h"

View File

@ -8,7 +8,7 @@
* *
*/ */
#pragma once #pragma once
#include "BattleHex.h" #include "battle/BattleHex.h"
#include "CCreatureHandler.h" #include "CCreatureHandler.h"
#include "mapObjects/CGHeroInstance.h" // for commander serialization #include "mapObjects/CGHeroInstance.h" // for commander serialization

View File

@ -6,7 +6,7 @@
#include "GameConstants.h" #include "GameConstants.h"
#include "IHandlerBase.h" #include "IHandlerBase.h"
#include "LogicalExpression.h" #include "LogicalExpression.h"
#include "BattleHex.h" #include "battle/BattleHex.h"
/* /*
* CTownHandler.h, part of VCMI engine * CTownHandler.h, part of VCMI engine

View File

@ -10,7 +10,7 @@
#pragma once #pragma once
#include "BattleHex.h" #include "battle/BattleHex.h"
#include "int3.h" #include "int3.h"
class CGTownInstance; class CGTownInstance;

View File

@ -2,14 +2,14 @@
#include "NetPacksBase.h" #include "NetPacksBase.h"
#include "BattleAction.h" #include "battle/BattleAction.h"
#include "mapObjects/CGHeroInstance.h" #include "mapObjects/CGHeroInstance.h"
#include "ConstTransitivePtr.h" #include "ConstTransitivePtr.h"
#include "int3.h" #include "int3.h"
#include "ResourceSet.h" #include "ResourceSet.h"
#include "CGameStateFwd.h" #include "CGameStateFwd.h"
#include "mapping/CMapDefines.h" #include "mapping/CMapDefines.h"
#include "CObstacleInstance.h" #include "battle/CObstacleInstance.h"
#include "spells/ViewSpellInt.h" #include "spells/ViewSpellInt.h"

View File

@ -13,7 +13,7 @@
#include "CCreatureHandler.h" #include "CCreatureHandler.h"
#include "CGameState.h" #include "CGameState.h"
#include "CStack.h" #include "CStack.h"
#include "BattleInfo.h" #include "battle/BattleInfo.h"
#include "CTownHandler.h" #include "CTownHandler.h"
#include "mapping/CMapInfo.h" #include "mapping/CMapInfo.h"
#include "StartInfo.h" #include "StartInfo.h"

View File

@ -1,9 +1,3 @@
#include "StdInc.h"
#include "BattleAction.h"
#include "CStack.h"
/* /*
* BattleAction.cpp, part of VCMI engine * BattleAction.cpp, part of VCMI engine
* *
@ -14,6 +8,10 @@
* *
*/ */
#include "StdInc.h"
#include "BattleAction.h"
#include "CStack.h"
using namespace Battle; using namespace Battle;
BattleAction::BattleAction(): BattleAction::BattleAction():

View File

@ -1,8 +1,3 @@
#pragma once
#include "BattleHex.h"
/* /*
* BattleAction.h, part of VCMI engine * BattleAction.h, part of VCMI engine
* *
@ -12,10 +7,12 @@
* Full text of license available in license.txt file, in main folder * Full text of license available in license.txt file, in main folder
* *
*/ */
#pragma once
#include "BattleHex.h"
/// A struct which handles battle actions like defending, walking,... - represents a creature stack in a battle
class CStack; class CStack;
/// A struct which handles battle actions like defending, walking,... - represents a creature stack in a battle
struct DLL_LINKAGE BattleAction struct DLL_LINKAGE BattleAction
{ {
ui8 side; //who made this action: false - left, true - right player ui8 side; //who made this action: false - left, true - right player

View File

@ -8,7 +8,7 @@
* *
*/ */
#pragma once #pragma once
#include "GameConstants.h" #include "../GameConstants.h"
// for battle stacks' positions // for battle stacks' positions
struct DLL_LINKAGE BattleHex //TODO: decide if this should be changed to class for better code design struct DLL_LINKAGE BattleHex //TODO: decide if this should be changed to class for better code design

View File

@ -11,7 +11,7 @@
#include "../mapObjects/CRewardableConstructor.h" #include "../mapObjects/CRewardableConstructor.h"
#include "../mapObjects/CommonConstructors.h" #include "../mapObjects/CommonConstructors.h"
#include "../mapObjects/MapObjects.h" #include "../mapObjects/MapObjects.h"
#include "../CObstacleInstance.h" #include "../battle/CObstacleInstance.h"
/* /*
* RegisterTypes.h, part of VCMI engine * RegisterTypes.h, part of VCMI engine

View File

@ -3,7 +3,7 @@
#include "../StartInfo.h" #include "../StartInfo.h"
#include "../CStack.h" #include "../CStack.h"
#include "../BattleInfo.h" #include "../battle/BattleInfo.h"
#include "../CGameState.h" #include "../CGameState.h"
#include "../mapping/CMap.h" #include "../mapping/CMap.h"
#include "../CModHandler.h" #include "../CModHandler.h"

View File

@ -3,7 +3,7 @@
#include "../StartInfo.h" #include "../StartInfo.h"
#include "../CStack.h" #include "../CStack.h"
#include "../BattleInfo.h" #include "../battle/BattleInfo.h"
#include "../CGameState.h" #include "../CGameState.h"
#include "../mapping/CMap.h" #include "../mapping/CMap.h"
#include "../CModHandler.h" #include "../CModHandler.h"

View File

@ -13,7 +13,7 @@
#include "../NetPacks.h" #include "../NetPacks.h"
#include "../CStack.h" #include "../CStack.h"
#include "../BattleInfo.h" #include "../battle/BattleInfo.h"
#include "../mapObjects/CGHeroInstance.h" #include "../mapObjects/CGHeroInstance.h"
#include "../mapObjects/CGTownInstance.h" #include "../mapObjects/CGTownInstance.h"

View File

@ -13,7 +13,7 @@
#include "CDefaultSpellMechanics.h" #include "CDefaultSpellMechanics.h"
#include "../CStack.h" #include "../CStack.h"
#include "../BattleInfo.h" #include "../battle/BattleInfo.h"
#include "../CGeneralTextHandler.h" #include "../CGeneralTextHandler.h"

View File

@ -23,7 +23,7 @@
#include "../StringConstants.h" #include "../StringConstants.h"
#include "../CStack.h" #include "../CStack.h"
#include "../BattleInfo.h" #include "../battle/BattleInfo.h"
#include "../battle/CBattleInfoCallback.h" #include "../battle/CBattleInfoCallback.h"
#include "../CGameState.h" //todo: remove #include "../CGameState.h" //todo: remove

View File

@ -14,7 +14,7 @@
#include "../ConstTransitivePtr.h" #include "../ConstTransitivePtr.h"
#include "../int3.h" #include "../int3.h"
#include "../GameConstants.h" #include "../GameConstants.h"
#include "../BattleHex.h" #include "../battle/BattleHex.h"
#include "../HeroBonus.h" #include "../HeroBonus.h"
class CGObjectInstance; class CGObjectInstance;

View File

@ -14,7 +14,7 @@
#include "../NetPacks.h" #include "../NetPacks.h"
#include "../CStack.h" #include "../CStack.h"
#include "../BattleInfo.h" #include "../battle/BattleInfo.h"
///AcidBreathDamageMechanics ///AcidBreathDamageMechanics
void AcidBreathDamageMechanics::applyBattleEffects(const SpellCastEnvironment * env, const BattleSpellCastParameters & parameters, SpellCastContext & ctx) const void AcidBreathDamageMechanics::applyBattleEffects(const SpellCastEnvironment * env, const BattleSpellCastParameters & parameters, SpellCastContext & ctx) const

View File

@ -12,7 +12,7 @@
#include "ISpellMechanics.h" #include "ISpellMechanics.h"
#include "../CStack.h" #include "../CStack.h"
#include "../BattleInfo.h" #include "../battle/BattleInfo.h"
#include "../NetPacks.h" #include "../NetPacks.h"

View File

@ -11,7 +11,7 @@
#pragma once #pragma once
#include "CSpellHandler.h" #include "CSpellHandler.h"
#include "../BattleHex.h" #include "../battle/BattleHex.h"
///callback to be provided by server ///callback to be provided by server

View File

@ -16,7 +16,7 @@
#include "../lib/CCreatureHandler.h" #include "../lib/CCreatureHandler.h"
#include "../lib/CGameState.h" #include "../lib/CGameState.h"
#include "../lib/CStack.h" #include "../lib/CStack.h"
#include "../lib/BattleInfo.h" #include "../lib/battle/BattleInfo.h"
#include "../lib/CondSh.h" #include "../lib/CondSh.h"
#include "../lib/NetPacks.h" #include "../lib/NetPacks.h"
#include "../lib/VCMI_Lib.h" #include "../lib/VCMI_Lib.h"

View File

@ -3,7 +3,7 @@
#include "../lib/FunctionList.h" #include "../lib/FunctionList.h"
#include "../lib/IGameCallback.h" #include "../lib/IGameCallback.h"
#include "../lib/BattleAction.h" #include "../lib/battle/BattleAction.h"
#include "CQuery.h" #include "CQuery.h"

View File

@ -1,7 +1,7 @@
#include "StdInc.h" #include "StdInc.h"
#include "CQuery.h" #include "CQuery.h"
#include "CGameHandler.h" #include "CGameHandler.h"
#include "../lib/BattleInfo.h" #include "../lib/battle/BattleInfo.h"
#include "../lib/mapObjects/MiscObjects.h" #include "../lib/mapObjects/MiscObjects.h"
boost::mutex Queries::mx; boost::mutex Queries::mx;

View File

@ -6,8 +6,8 @@
#include "../lib/mapping/CMap.h" #include "../lib/mapping/CMap.h"
#include "../lib/CGameState.h" #include "../lib/CGameState.h"
#include "../lib/CStack.h" #include "../lib/CStack.h"
#include "../lib/BattleInfo.h" #include "../lib/battle/BattleInfo.h"
#include "../lib/BattleAction.h" #include "../lib/battle/BattleAction.h"
#include "../lib/serializer/Connection.h" #include "../lib/serializer/Connection.h"

View File

@ -9,7 +9,7 @@
*/ */
#include "StdInc.h" #include "StdInc.h"
#include <boost/test/unit_test.hpp> #include <boost/test/unit_test.hpp>
#include "../lib/BattleHex.h" #include "../lib/battle/BattleHex.h"
BOOST_AUTO_TEST_SUITE(BattlefieldHex_Suite) BOOST_AUTO_TEST_SUITE(BattlefieldHex_Suite)
BOOST_AUTO_TEST_CASE(getNeighbouringTiles) BOOST_AUTO_TEST_CASE(getNeighbouringTiles)