mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
Moving some files from lib to the battle subdirectory.
This commit is contained in:
parent
221386a39d
commit
4113bdab01
@ -9,7 +9,7 @@
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include "../../lib/BattleHex.h"
|
||||
#include "../../lib/battle/BattleHex.h"
|
||||
|
||||
class CStack;
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include "../../lib/BattleHex.h"
|
||||
#include "../../lib/battle/BattleHex.h"
|
||||
|
||||
class CStupidAI : public CBattleGameInterface
|
||||
{
|
||||
|
@ -18,7 +18,7 @@
|
||||
#include "lib/GameConstants.h"
|
||||
#include "lib/CPlayerState.h"
|
||||
#include "lib/UnlockGuard.h"
|
||||
#include "lib/BattleInfo.h"
|
||||
#include "lib/battle/BattleInfo.h"
|
||||
|
||||
/*
|
||||
* CCallback.cpp, part of VCMI engine
|
||||
|
@ -11,7 +11,7 @@
|
||||
#include "../lib/CGameState.h"
|
||||
#include "CPlayerInterface.h"
|
||||
#include "../lib/StartInfo.h"
|
||||
#include "../lib/BattleInfo.h"
|
||||
#include "../lib/battle/BattleInfo.h"
|
||||
#include "../lib/CModHandler.h"
|
||||
#include "../lib/CArtHandler.h"
|
||||
#include "../lib/CGeneralTextHandler.h"
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
|
||||
#include "../lib/IGameCallback.h"
|
||||
#include "../lib/BattleAction.h"
|
||||
#include "../lib/battle/BattleAction.h"
|
||||
#include "../lib/CStopWatch.h"
|
||||
#include "../lib/int3.h"
|
||||
|
||||
|
@ -25,7 +25,7 @@
|
||||
#include "../lib/mapping/CCampaignHandler.h"
|
||||
#include "../lib/CGameState.h"
|
||||
#include "../lib/CStack.h"
|
||||
#include "../lib/BattleInfo.h"
|
||||
#include "../lib/battle/BattleInfo.h"
|
||||
#include "../lib/GameConstants.h"
|
||||
#include "../lib/CPlayerState.h"
|
||||
#include "gui/CGuiHandler.h"
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include "../../lib/BattleHex.h"
|
||||
#include "../../lib/battle/BattleHex.h"
|
||||
#include "../widgets/Images.h"
|
||||
|
||||
class CBattleInterface;
|
||||
|
@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "../gui/CIntObject.h"
|
||||
#include "../../lib/BattleHex.h"
|
||||
#include "../../lib/battle/BattleHex.h"
|
||||
#include "../windows/CWindowObject.h"
|
||||
|
||||
struct SDL_Surface;
|
||||
|
@ -15,7 +15,7 @@
|
||||
#include "CGeneralTextHandler.h"
|
||||
#include "mapObjects/CObjectHandler.h" // for CGObjectInstance
|
||||
#include "StartInfo.h" // for StartInfo
|
||||
#include "BattleInfo.h" // for BattleInfo
|
||||
#include "battle/BattleInfo.h" // for BattleInfo
|
||||
#include "NetPacks.h" // for InfoWindow
|
||||
#include "CModHandler.h"
|
||||
#include "spells/CSpellHandler.h"
|
||||
|
@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
|
||||
#include "BattleAction.h"
|
||||
#include "battle/BattleAction.h"
|
||||
#include "IGameEventsReceiver.h"
|
||||
#include "CGameStateFwd.h"
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
#include "StartInfo.h"
|
||||
#include "NetPacks.h"
|
||||
#include "registerTypes/RegisterTypes.h"
|
||||
#include "BattleInfo.h"
|
||||
#include "battle/BattleInfo.h"
|
||||
#include "JsonNode.h"
|
||||
#include "filesystem/Filesystem.h"
|
||||
#include "GameConstants.h"
|
||||
|
@ -6,7 +6,7 @@
|
||||
#include "VCMI_Lib.h"
|
||||
#include "JsonNode.h"
|
||||
#include "StringConstants.h"
|
||||
#include "BattleHex.h"
|
||||
#include "battle/BattleHex.h"
|
||||
#include "CCreatureHandler.h"
|
||||
#include "CModHandler.h"
|
||||
#include "CTownHandler.h"
|
||||
|
@ -76,9 +76,9 @@ set(lib_SRCS
|
||||
spells/CDefaultSpellMechanics.cpp
|
||||
spells/ViewSpellInt.cpp
|
||||
|
||||
BattleAction.cpp
|
||||
BattleHex.cpp
|
||||
BattleInfo.cpp
|
||||
battle/BattleAction.cpp
|
||||
battle/BattleHex.cpp
|
||||
battle/BattleInfo.cpp
|
||||
battle/AccessibilityInfo.cpp
|
||||
battle/BattleAttackInfo.cpp
|
||||
battle/CBattleInfoCallback.cpp
|
||||
@ -100,7 +100,7 @@ set(lib_SRCS
|
||||
CGeneralTextHandler.cpp
|
||||
CHeroHandler.cpp
|
||||
CModHandler.cpp
|
||||
CObstacleInstance.cpp
|
||||
battle/CObstacleInstance.cpp
|
||||
CRandomGenerator.cpp
|
||||
|
||||
CThreadHelper.cpp
|
||||
|
@ -9,7 +9,7 @@
|
||||
*/
|
||||
#include "StdInc.h"
|
||||
#include "CStack.h"
|
||||
#include "BattleInfo.h"
|
||||
#include "battle/BattleInfo.h"
|
||||
#include "spells/CSpellHandler.h"
|
||||
#include "CRandomGenerator.h"
|
||||
#include "NetPacks.h"
|
||||
|
@ -8,7 +8,7 @@
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
#include "BattleHex.h"
|
||||
#include "battle/BattleHex.h"
|
||||
#include "CCreatureHandler.h"
|
||||
#include "mapObjects/CGHeroInstance.h" // for commander serialization
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
#include "GameConstants.h"
|
||||
#include "IHandlerBase.h"
|
||||
#include "LogicalExpression.h"
|
||||
#include "BattleHex.h"
|
||||
#include "battle/BattleHex.h"
|
||||
|
||||
/*
|
||||
* CTownHandler.h, part of VCMI engine
|
||||
|
@ -10,7 +10,7 @@
|
||||
#pragma once
|
||||
|
||||
|
||||
#include "BattleHex.h"
|
||||
#include "battle/BattleHex.h"
|
||||
#include "int3.h"
|
||||
|
||||
class CGTownInstance;
|
||||
|
@ -2,14 +2,14 @@
|
||||
|
||||
#include "NetPacksBase.h"
|
||||
|
||||
#include "BattleAction.h"
|
||||
#include "battle/BattleAction.h"
|
||||
#include "mapObjects/CGHeroInstance.h"
|
||||
#include "ConstTransitivePtr.h"
|
||||
#include "int3.h"
|
||||
#include "ResourceSet.h"
|
||||
#include "CGameStateFwd.h"
|
||||
#include "mapping/CMapDefines.h"
|
||||
#include "CObstacleInstance.h"
|
||||
#include "battle/CObstacleInstance.h"
|
||||
|
||||
#include "spells/ViewSpellInt.h"
|
||||
|
||||
|
@ -13,7 +13,7 @@
|
||||
#include "CCreatureHandler.h"
|
||||
#include "CGameState.h"
|
||||
#include "CStack.h"
|
||||
#include "BattleInfo.h"
|
||||
#include "battle/BattleInfo.h"
|
||||
#include "CTownHandler.h"
|
||||
#include "mapping/CMapInfo.h"
|
||||
#include "StartInfo.h"
|
||||
|
@ -1,9 +1,3 @@
|
||||
#include "StdInc.h"
|
||||
#include "BattleAction.h"
|
||||
|
||||
#include "CStack.h"
|
||||
|
||||
|
||||
/*
|
||||
* BattleAction.cpp, part of VCMI engine
|
||||
*
|
||||
@ -14,6 +8,10 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "StdInc.h"
|
||||
#include "BattleAction.h"
|
||||
#include "CStack.h"
|
||||
|
||||
using namespace Battle;
|
||||
|
||||
BattleAction::BattleAction():
|
@ -1,8 +1,3 @@
|
||||
#pragma once
|
||||
|
||||
|
||||
#include "BattleHex.h"
|
||||
|
||||
/*
|
||||
* BattleAction.h, part of VCMI engine
|
||||
*
|
||||
@ -12,10 +7,12 @@
|
||||
* 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;
|
||||
|
||||
/// A struct which handles battle actions like defending, walking,... - represents a creature stack in a battle
|
||||
struct DLL_LINKAGE BattleAction
|
||||
{
|
||||
ui8 side; //who made this action: false - left, true - right player
|
@ -8,7 +8,7 @@
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
#include "GameConstants.h"
|
||||
#include "../GameConstants.h"
|
||||
|
||||
// for battle stacks' positions
|
||||
struct DLL_LINKAGE BattleHex //TODO: decide if this should be changed to class for better code design
|
@ -11,7 +11,7 @@
|
||||
#include "../mapObjects/CRewardableConstructor.h"
|
||||
#include "../mapObjects/CommonConstructors.h"
|
||||
#include "../mapObjects/MapObjects.h"
|
||||
#include "../CObstacleInstance.h"
|
||||
#include "../battle/CObstacleInstance.h"
|
||||
|
||||
/*
|
||||
* RegisterTypes.h, part of VCMI engine
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
#include "../StartInfo.h"
|
||||
#include "../CStack.h"
|
||||
#include "../BattleInfo.h"
|
||||
#include "../battle/BattleInfo.h"
|
||||
#include "../CGameState.h"
|
||||
#include "../mapping/CMap.h"
|
||||
#include "../CModHandler.h"
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
#include "../StartInfo.h"
|
||||
#include "../CStack.h"
|
||||
#include "../BattleInfo.h"
|
||||
#include "../battle/BattleInfo.h"
|
||||
#include "../CGameState.h"
|
||||
#include "../mapping/CMap.h"
|
||||
#include "../CModHandler.h"
|
||||
|
@ -13,7 +13,7 @@
|
||||
|
||||
#include "../NetPacks.h"
|
||||
#include "../CStack.h"
|
||||
#include "../BattleInfo.h"
|
||||
#include "../battle/BattleInfo.h"
|
||||
#include "../mapObjects/CGHeroInstance.h"
|
||||
#include "../mapObjects/CGTownInstance.h"
|
||||
|
||||
|
@ -13,7 +13,7 @@
|
||||
#include "CDefaultSpellMechanics.h"
|
||||
|
||||
#include "../CStack.h"
|
||||
#include "../BattleInfo.h"
|
||||
#include "../battle/BattleInfo.h"
|
||||
|
||||
#include "../CGeneralTextHandler.h"
|
||||
|
||||
|
@ -23,7 +23,7 @@
|
||||
#include "../StringConstants.h"
|
||||
|
||||
#include "../CStack.h"
|
||||
#include "../BattleInfo.h"
|
||||
#include "../battle/BattleInfo.h"
|
||||
#include "../battle/CBattleInfoCallback.h"
|
||||
#include "../CGameState.h" //todo: remove
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
||||
#include "../ConstTransitivePtr.h"
|
||||
#include "../int3.h"
|
||||
#include "../GameConstants.h"
|
||||
#include "../BattleHex.h"
|
||||
#include "../battle/BattleHex.h"
|
||||
#include "../HeroBonus.h"
|
||||
|
||||
class CGObjectInstance;
|
||||
|
@ -14,7 +14,7 @@
|
||||
|
||||
#include "../NetPacks.h"
|
||||
#include "../CStack.h"
|
||||
#include "../BattleInfo.h"
|
||||
#include "../battle/BattleInfo.h"
|
||||
|
||||
///AcidBreathDamageMechanics
|
||||
void AcidBreathDamageMechanics::applyBattleEffects(const SpellCastEnvironment * env, const BattleSpellCastParameters & parameters, SpellCastContext & ctx) const
|
||||
|
@ -12,7 +12,7 @@
|
||||
#include "ISpellMechanics.h"
|
||||
|
||||
#include "../CStack.h"
|
||||
#include "../BattleInfo.h"
|
||||
#include "../battle/BattleInfo.h"
|
||||
|
||||
#include "../NetPacks.h"
|
||||
|
||||
|
@ -11,7 +11,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "CSpellHandler.h"
|
||||
#include "../BattleHex.h"
|
||||
#include "../battle/BattleHex.h"
|
||||
|
||||
|
||||
///callback to be provided by server
|
||||
|
@ -16,7 +16,7 @@
|
||||
#include "../lib/CCreatureHandler.h"
|
||||
#include "../lib/CGameState.h"
|
||||
#include "../lib/CStack.h"
|
||||
#include "../lib/BattleInfo.h"
|
||||
#include "../lib/battle/BattleInfo.h"
|
||||
#include "../lib/CondSh.h"
|
||||
#include "../lib/NetPacks.h"
|
||||
#include "../lib/VCMI_Lib.h"
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
#include "../lib/FunctionList.h"
|
||||
#include "../lib/IGameCallback.h"
|
||||
#include "../lib/BattleAction.h"
|
||||
#include "../lib/battle/BattleAction.h"
|
||||
#include "CQuery.h"
|
||||
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#include "StdInc.h"
|
||||
#include "CQuery.h"
|
||||
#include "CGameHandler.h"
|
||||
#include "../lib/BattleInfo.h"
|
||||
#include "../lib/battle/BattleInfo.h"
|
||||
#include "../lib/mapObjects/MiscObjects.h"
|
||||
|
||||
boost::mutex Queries::mx;
|
||||
|
@ -6,8 +6,8 @@
|
||||
#include "../lib/mapping/CMap.h"
|
||||
#include "../lib/CGameState.h"
|
||||
#include "../lib/CStack.h"
|
||||
#include "../lib/BattleInfo.h"
|
||||
#include "../lib/BattleAction.h"
|
||||
#include "../lib/battle/BattleInfo.h"
|
||||
#include "../lib/battle/BattleAction.h"
|
||||
#include "../lib/serializer/Connection.h"
|
||||
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
*/
|
||||
#include "StdInc.h"
|
||||
#include <boost/test/unit_test.hpp>
|
||||
#include "../lib/BattleHex.h"
|
||||
#include "../lib/battle/BattleHex.h"
|
||||
BOOST_AUTO_TEST_SUITE(BattlefieldHex_Suite)
|
||||
|
||||
BOOST_AUTO_TEST_CASE(getNeighbouringTiles)
|
||||
|
Loading…
Reference in New Issue
Block a user