mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-04 09:42:40 +02:00
wrap all library code into namespace if VCMI_LIB_NAMESPACE is defined
preparation for having client and server in a single process
This commit is contained in:
parent
1319c8f197
commit
ff635edc0b
@ -13,7 +13,12 @@
|
|||||||
#include "PossibleSpellcast.h"
|
#include "PossibleSpellcast.h"
|
||||||
#include "PotentialTargets.h"
|
#include "PotentialTargets.h"
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
class CSpell;
|
class CSpell;
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
|
||||||
class EnemyInfo;
|
class EnemyInfo;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -9,11 +9,15 @@
|
|||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
namespace battle
|
namespace battle
|
||||||
{
|
{
|
||||||
class Unit;
|
class Unit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
|
||||||
class EnemyInfo
|
class EnemyInfo
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -14,8 +14,12 @@
|
|||||||
|
|
||||||
#include "../../lib/battle/Destination.h"
|
#include "../../lib/battle/Destination.h"
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
class CSpell;
|
class CSpell;
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
|
||||||
class PossibleSpellcast
|
class PossibleSpellcast
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -18,9 +18,14 @@
|
|||||||
#include "../../lib/battle/BattleProxy.h"
|
#include "../../lib/battle/BattleProxy.h"
|
||||||
#include "../../lib/battle/CUnitState.h"
|
#include "../../lib/battle/CUnitState.h"
|
||||||
|
|
||||||
class HypotheticBattle;
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
class CStack;
|
class CStack;
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
|
||||||
|
class HypotheticBattle;
|
||||||
|
|
||||||
///Fake random generator, used by AI to evaluate random server behavior
|
///Fake random generator, used by AI to evaluate random server behavior
|
||||||
class RNGStub : public vstd::RNG
|
class RNGStub : public vstd::RNG
|
||||||
{
|
{
|
||||||
|
@ -13,3 +13,5 @@
|
|||||||
// This header should be treated as a pre compiled header file(PCH) in the compiler building settings.
|
// This header should be treated as a pre compiled header file(PCH) in the compiler building settings.
|
||||||
|
|
||||||
// Here you can add specific libraries and macros which are specific to this project.
|
// Here you can add specific libraries and macros which are specific to this project.
|
||||||
|
|
||||||
|
VCMI_LIB_USING_NAMESPACE
|
||||||
|
@ -25,8 +25,12 @@
|
|||||||
#include "Pathfinding/AIPathfinder.h"
|
#include "Pathfinding/AIPathfinder.h"
|
||||||
#include "Engine/Nullkiller.h"
|
#include "Engine/Nullkiller.h"
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
struct QuestInfo;
|
struct QuestInfo;
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
|
||||||
class AIStatus
|
class AIStatus
|
||||||
{
|
{
|
||||||
boost::mutex mx;
|
boost::mutex mx;
|
||||||
|
@ -11,8 +11,12 @@
|
|||||||
#include <fl/Headers.h>
|
#include <fl/Headers.h>
|
||||||
#include "../Goals/AbstractGoal.h"
|
#include "../Goals/AbstractGoal.h"
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
class CArmedInstance;
|
class CArmedInstance;
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
|
||||||
class engineBase //subclasses create fuzzylite variables with "new" that are not freed - this is desired as fl::Engine wants to destroy these...
|
class engineBase //subclasses create fuzzylite variables with "new" that are not freed - this is desired as fl::Engine wants to destroy these...
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
|
@ -10,7 +10,12 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "FuzzyEngines.h"
|
#include "FuzzyEngines.h"
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
class CBank;
|
class CBank;
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
|
||||||
class Nullkiller;
|
class Nullkiller;
|
||||||
|
|
||||||
class DLL_EXPORT FuzzyHelper
|
class DLL_EXPORT FuzzyHelper
|
||||||
|
@ -12,9 +12,14 @@
|
|||||||
#include "../Goals/CGoal.h"
|
#include "../Goals/CGoal.h"
|
||||||
#include "../Pathfinding/AIPathfinder.h"
|
#include "../Pathfinding/AIPathfinder.h"
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
|
class CGWitchHut;
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
|
||||||
class BuildingInfo;
|
class BuildingInfo;
|
||||||
class Nullkiller;
|
class Nullkiller;
|
||||||
class CGWitchHut;
|
|
||||||
|
|
||||||
class RewardEvaluator
|
class RewardEvaluator
|
||||||
{
|
{
|
||||||
|
@ -164,6 +164,7 @@ ExchangeResult ChainActor::tryExchangeNoLock(const ChainActor * specialActor, co
|
|||||||
return baseActor->tryExchangeNoLock(specialActor, other);
|
return baseActor->tryExchangeNoLock(specialActor, other);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
namespace vstd
|
namespace vstd
|
||||||
{
|
{
|
||||||
template <class M, class Key, class F>
|
template <class M, class Key, class F>
|
||||||
@ -180,6 +181,7 @@ namespace vstd
|
|||||||
return v;
|
return v;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
|
||||||
ExchangeResult HeroActor::tryExchangeNoLock(const ChainActor * specialActor, const ChainActor * other) const
|
ExchangeResult HeroActor::tryExchangeNoLock(const ChainActor * specialActor, const ChainActor * other) const
|
||||||
{
|
{
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "../../Global.h"
|
#include "../../Global.h"
|
||||||
|
VCMI_LIB_USING_NAMESPACE
|
||||||
#include "../../CCallback.h"
|
#include "../../CCallback.h"
|
||||||
|
@ -4,4 +4,6 @@
|
|||||||
|
|
||||||
// This header should be treated as a pre compiled header file(PCH) in the compiler building settings.
|
// This header should be treated as a pre compiled header file(PCH) in the compiler building settings.
|
||||||
|
|
||||||
// Here you can add specific libraries and macros which are specific to this project.
|
// Here you can add specific libraries and macros which are specific to this project.
|
||||||
|
|
||||||
|
VCMI_LIB_USING_NAMESPACE
|
||||||
|
@ -11,8 +11,12 @@
|
|||||||
#include <fl/Headers.h>
|
#include <fl/Headers.h>
|
||||||
#include "Goals/AbstractGoal.h"
|
#include "Goals/AbstractGoal.h"
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
class CArmedInstance;
|
class CArmedInstance;
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
|
||||||
class engineBase //subclasses create fuzzylite variables with "new" that are not freed - this is desired as fl::Engine wants to destroy these...
|
class engineBase //subclasses create fuzzylite variables with "new" that are not freed - this is desired as fl::Engine wants to destroy these...
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
|
@ -10,8 +10,12 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "FuzzyEngines.h"
|
#include "FuzzyEngines.h"
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
class CBank;
|
class CBank;
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
|
||||||
class DLL_EXPORT FuzzyHelper
|
class DLL_EXPORT FuzzyHelper
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -1,2 +1,4 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "../../Global.h"
|
#include "../../Global.h"
|
||||||
|
|
||||||
|
VCMI_LIB_USING_NAMESPACE
|
||||||
|
@ -29,8 +29,12 @@
|
|||||||
|
|
||||||
extern FuzzyHelper * fh;
|
extern FuzzyHelper * fh;
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
class CGVisitableOPW;
|
class CGVisitableOPW;
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
|
||||||
const double SAFE_ATTACK_CONSTANT = 1.5;
|
const double SAFE_ATTACK_CONSTANT = 1.5;
|
||||||
|
|
||||||
//one thread may be turn of AI and another will be handling a side effect for AI2
|
//one thread may be turn of AI and another will be handling a side effect for AI2
|
||||||
|
@ -26,8 +26,12 @@
|
|||||||
#include "../../lib/CondSh.h"
|
#include "../../lib/CondSh.h"
|
||||||
#include "Pathfinding/AIPathfinder.h"
|
#include "Pathfinding/AIPathfinder.h"
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
struct QuestInfo;
|
struct QuestInfo;
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
|
||||||
class AIhelper;
|
class AIhelper;
|
||||||
|
|
||||||
class AIStatus
|
class AIStatus
|
||||||
|
12
CCallback.h
12
CCallback.h
@ -13,6 +13,8 @@
|
|||||||
#include "lib/battle/CPlayerBattleCallback.h"
|
#include "lib/battle/CPlayerBattleCallback.h"
|
||||||
#include "lib/int3.h" // for int3
|
#include "lib/int3.h" // for int3
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
class CGHeroInstance;
|
class CGHeroInstance;
|
||||||
class CGameState;
|
class CGameState;
|
||||||
struct CPath;
|
struct CPath;
|
||||||
@ -20,18 +22,22 @@ class CGObjectInstance;
|
|||||||
class CArmedInstance;
|
class CArmedInstance;
|
||||||
class BattleAction;
|
class BattleAction;
|
||||||
class CGTownInstance;
|
class CGTownInstance;
|
||||||
struct lua_State;
|
|
||||||
class CClient;
|
|
||||||
class IShipyard;
|
class IShipyard;
|
||||||
struct CGPathNode;
|
struct CGPathNode;
|
||||||
struct CGPath;
|
struct CGPath;
|
||||||
struct CPathsInfo;
|
struct CPathsInfo;
|
||||||
class PathfinderConfig;
|
class PathfinderConfig;
|
||||||
struct CPack;
|
struct CPack;
|
||||||
|
struct CPackForServer;
|
||||||
class IBattleEventsReceiver;
|
class IBattleEventsReceiver;
|
||||||
class IGameEventsReceiver;
|
class IGameEventsReceiver;
|
||||||
struct ArtifactLocation;
|
struct ArtifactLocation;
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
|
||||||
|
class CClient;
|
||||||
|
struct lua_State;
|
||||||
|
|
||||||
class IBattleCallback
|
class IBattleCallback
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@ -88,8 +94,6 @@ public:
|
|||||||
virtual int bulkMergeStacks(ObjectInstanceID armyId, SlotID srcSlot) = 0;
|
virtual int bulkMergeStacks(ObjectInstanceID armyId, SlotID srcSlot) = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct CPackForServer;
|
|
||||||
|
|
||||||
class CBattleCallback : public IBattleCallback, public CPlayerBattleCallback
|
class CBattleCallback : public IBattleCallback, public CPlayerBattleCallback
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
|
17
Global.h
17
Global.h
@ -264,11 +264,26 @@ template<typename T, size_t N> char (&_ArrayCountObj(const T (&)[N]))[N];
|
|||||||
// should be used for variables that becomes unused in release builds (e.g. only used for assert checks)
|
// should be used for variables that becomes unused in release builds (e.g. only used for assert checks)
|
||||||
#define UNUSED(VAR) ((void)VAR)
|
#define UNUSED(VAR) ((void)VAR)
|
||||||
|
|
||||||
|
// single-process build makes 2 copies of the main lib by wrapping it in a namespace
|
||||||
|
#ifdef VCMI_LIB_NAMESPACE
|
||||||
|
#define VCMI_LIB_NAMESPACE_BEGIN namespace VCMI_LIB_NAMESPACE {
|
||||||
|
#define VCMI_LIB_NAMESPACE_END }
|
||||||
|
#define VCMI_LIB_USING_NAMESPACE using namespace VCMI_LIB_NAMESPACE;
|
||||||
|
#define VCMI_LIB_WRAP_NAMESPACE(x) VCMI_LIB_NAMESPACE::x
|
||||||
|
#else
|
||||||
|
#define VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
#define VCMI_LIB_NAMESPACE_END
|
||||||
|
#define VCMI_LIB_USING_NAMESPACE
|
||||||
|
#define VCMI_LIB_WRAP_NAMESPACE(x) x
|
||||||
|
#endif
|
||||||
|
|
||||||
/* ---------------------------------------------------------------------------- */
|
/* ---------------------------------------------------------------------------- */
|
||||||
/* VCMI standard library */
|
/* VCMI standard library */
|
||||||
/* ---------------------------------------------------------------------------- */
|
/* ---------------------------------------------------------------------------- */
|
||||||
#include <vstd/CLoggerBase.h>
|
#include <vstd/CLoggerBase.h>
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
void inline handleException()
|
void inline handleException()
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
@ -739,3 +754,5 @@ namespace std
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // NO_STD_TOSTRING
|
#endif // NO_STD_TOSTRING
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
@ -9,7 +9,11 @@
|
|||||||
*/
|
*/
|
||||||
#include "Version.h"
|
#include "Version.h"
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
namespace GameConstants
|
namespace GameConstants
|
||||||
{
|
{
|
||||||
const char GIT_SHA1[] = "@GIT_SHA1@";
|
const char GIT_SHA1[] = "@GIT_SHA1@";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
@ -1,6 +1,10 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
namespace GameConstants
|
namespace GameConstants
|
||||||
{
|
{
|
||||||
extern const char GIT_SHA1[];
|
extern const char GIT_SHA1[];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
@ -13,29 +13,33 @@
|
|||||||
|
|
||||||
#include "../lib/ConstTransitivePtr.h"
|
#include "../lib/ConstTransitivePtr.h"
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
class CModHandler;
|
class CModHandler;
|
||||||
class CMapHandler;
|
|
||||||
class CHeroHandler;
|
class CHeroHandler;
|
||||||
class CCreatureHandler;
|
class CCreatureHandler;
|
||||||
class CSpellHandler;
|
class CSpellHandler;
|
||||||
class CSkillHandler;
|
class CSkillHandler;
|
||||||
class CBuildingHandler;
|
class CBuildingHandler;
|
||||||
class CObjectHandler;
|
class CObjectHandler;
|
||||||
class CSoundHandler;
|
|
||||||
class CMusicHandler;
|
|
||||||
class CObjectClassesHandler;
|
class CObjectClassesHandler;
|
||||||
class CTownHandler;
|
class CTownHandler;
|
||||||
class CGeneralTextHandler;
|
class CGeneralTextHandler;
|
||||||
class CConsoleHandler;
|
class CConsoleHandler;
|
||||||
class CCursorHandler;
|
|
||||||
class CGameState;
|
class CGameState;
|
||||||
class IMainVideoPlayer;
|
|
||||||
class CServerHandler;
|
|
||||||
class BattleFieldHandler;
|
class BattleFieldHandler;
|
||||||
class ObstacleHandler;
|
class ObstacleHandler;
|
||||||
|
|
||||||
class CMap;
|
class CMap;
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
|
||||||
|
class CMapHandler;
|
||||||
|
class CSoundHandler;
|
||||||
|
class CMusicHandler;
|
||||||
|
class CCursorHandler;
|
||||||
|
class IMainVideoPlayer;
|
||||||
|
class CServerHandler;
|
||||||
|
|
||||||
//a class for non-mechanical client GUI classes
|
//a class for non-mechanical client GUI classes
|
||||||
class CClientState
|
class CClientState
|
||||||
|
@ -19,30 +19,33 @@
|
|||||||
#define sprintf_s snprintf
|
#define sprintf_s snprintf
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
class Artifact;
|
class Artifact;
|
||||||
|
|
||||||
|
struct TryMoveHero;
|
||||||
|
class CGHeroInstance;
|
||||||
|
class CStack;
|
||||||
|
class CCreature;
|
||||||
|
struct CGPath;
|
||||||
|
class CCreatureSet;
|
||||||
|
class CGObjectInstance;
|
||||||
|
struct UpgradeInfo;
|
||||||
|
template <typename T> struct CondSh;
|
||||||
|
struct CPathsInfo;
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
|
||||||
class CButton;
|
class CButton;
|
||||||
class CToggleGroup;
|
class CToggleGroup;
|
||||||
struct TryMoveHero;
|
|
||||||
class CGHeroInstance;
|
|
||||||
class CAdvMapInt;
|
class CAdvMapInt;
|
||||||
class CCastleInterface;
|
class CCastleInterface;
|
||||||
class CBattleInterface;
|
class CBattleInterface;
|
||||||
class CStack;
|
|
||||||
class CComponent;
|
class CComponent;
|
||||||
class CCreature;
|
|
||||||
struct SDL_Surface;
|
|
||||||
struct CGPath;
|
|
||||||
class CCreatureAnimation;
|
class CCreatureAnimation;
|
||||||
class CSelectableComponent;
|
class CSelectableComponent;
|
||||||
class CCreatureSet;
|
|
||||||
class CGObjectInstance;
|
|
||||||
class CSlider;
|
class CSlider;
|
||||||
struct UpgradeInfo;
|
|
||||||
template <typename T> struct CondSh;
|
|
||||||
class CInGameConsole;
|
class CInGameConsole;
|
||||||
class CInGameConsole;
|
|
||||||
union SDL_Event;
|
|
||||||
class CInfoWindow;
|
class CInfoWindow;
|
||||||
class IShowActivatable;
|
class IShowActivatable;
|
||||||
class ClickableL;
|
class ClickableL;
|
||||||
@ -52,7 +55,9 @@ class KeyInterested;
|
|||||||
class MotionInterested;
|
class MotionInterested;
|
||||||
class TimeInterested;
|
class TimeInterested;
|
||||||
class IShowable;
|
class IShowable;
|
||||||
struct CPathsInfo;
|
|
||||||
|
struct SDL_Surface;
|
||||||
|
union SDL_Event;
|
||||||
|
|
||||||
namespace boost
|
namespace boost
|
||||||
{
|
{
|
||||||
|
@ -14,7 +14,8 @@
|
|||||||
#include "../lib/StartInfo.h"
|
#include "../lib/StartInfo.h"
|
||||||
#include "../lib/CondSh.h"
|
#include "../lib/CondSh.h"
|
||||||
|
|
||||||
struct SharedMemory;
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
class CConnection;
|
class CConnection;
|
||||||
class PlayerColor;
|
class PlayerColor;
|
||||||
struct StartInfo;
|
struct StartInfo;
|
||||||
@ -23,9 +24,15 @@ class CMapInfo;
|
|||||||
struct ClientPlayer;
|
struct ClientPlayer;
|
||||||
struct CPack;
|
struct CPack;
|
||||||
struct CPackForLobby;
|
struct CPackForLobby;
|
||||||
class CClient;
|
|
||||||
|
|
||||||
template<typename T> class CApplier;
|
template<typename T> class CApplier;
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
|
||||||
|
struct SharedMemory;
|
||||||
|
|
||||||
|
class CClient;
|
||||||
|
|
||||||
class CBaseForLobbyApply;
|
class CBaseForLobbyApply;
|
||||||
|
|
||||||
// TODO: Add mutex so we can't set CONNECTION_CANCELLED if client already connected, but thread not setup yet
|
// TODO: Add mutex so we can't set CONNECTION_CANCELLED if client already connected, but thread not setup yet
|
||||||
|
@ -19,25 +19,22 @@
|
|||||||
#include "../lib/CondSh.h"
|
#include "../lib/CondSh.h"
|
||||||
#include "../lib/CPathfinder.h"
|
#include "../lib/CPathfinder.h"
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
struct CPack;
|
struct CPack;
|
||||||
struct CPackForServer;
|
struct CPackForServer;
|
||||||
class CCampaignState;
|
class CCampaignState;
|
||||||
class CBattleCallback;
|
|
||||||
class IGameEventsReceiver;
|
class IGameEventsReceiver;
|
||||||
class IBattleEventsReceiver;
|
class IBattleEventsReceiver;
|
||||||
class CBattleGameInterface;
|
class CBattleGameInterface;
|
||||||
class CGameState;
|
class CGameState;
|
||||||
class CGameInterface;
|
class CGameInterface;
|
||||||
class CCallback;
|
|
||||||
class BattleAction;
|
class BattleAction;
|
||||||
class CClient;
|
|
||||||
struct CPathsInfo;
|
struct CPathsInfo;
|
||||||
class BinaryDeserializer;
|
class BinaryDeserializer;
|
||||||
class BinarySerializer;
|
class BinarySerializer;
|
||||||
namespace boost { class thread; }
|
|
||||||
|
|
||||||
template<typename T> class CApplier;
|
template<typename T> class CApplier;
|
||||||
class CBaseForCLApply;
|
|
||||||
|
|
||||||
#if SCRIPTING_ENABLED
|
#if SCRIPTING_ENABLED
|
||||||
namespace scripting
|
namespace scripting
|
||||||
@ -51,6 +48,15 @@ namespace events
|
|||||||
class EventBus;
|
class EventBus;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
|
||||||
|
class CBattleCallback;
|
||||||
|
class CCallback;
|
||||||
|
class CClient;
|
||||||
|
class CBaseForCLApply;
|
||||||
|
|
||||||
|
namespace boost { class thread; }
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
class ThreadSafeVector
|
class ThreadSafeVector
|
||||||
{
|
{
|
||||||
|
@ -13,18 +13,23 @@
|
|||||||
#include "../lib/GameConstants.h"
|
#include "../lib/GameConstants.h"
|
||||||
#include "gui/Geometries.h"
|
#include "gui/Geometries.h"
|
||||||
|
|
||||||
struct SDL_Surface;
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
class CGHeroInstance;
|
class CGHeroInstance;
|
||||||
class CGTownInstance;
|
class CGTownInstance;
|
||||||
class CHeroClass;
|
class CHeroClass;
|
||||||
struct SDL_Color;
|
|
||||||
struct InfoAboutHero;
|
struct InfoAboutHero;
|
||||||
struct InfoAboutTown;
|
struct InfoAboutTown;
|
||||||
class CGObjectInstance;
|
class CGObjectInstance;
|
||||||
class ObjectTemplate;
|
class ObjectTemplate;
|
||||||
class CAnimation;
|
|
||||||
class EntityService;
|
class EntityService;
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
|
||||||
|
struct SDL_Surface;
|
||||||
|
struct SDL_Color;
|
||||||
|
class CAnimation;
|
||||||
|
|
||||||
enum EFonts
|
enum EFonts
|
||||||
{
|
{
|
||||||
FONT_BIG, FONT_CALLI, FONT_CREDITS, FONT_HIGH_SCORE, FONT_MEDIUM, FONT_SMALL, FONT_TIMES, FONT_TINY, FONT_VERD
|
FONT_BIG, FONT_CALLI, FONT_CREDITS, FONT_HIGH_SCORE, FONT_MEDIUM, FONT_SMALL, FONT_TIMES, FONT_TINY, FONT_VERD
|
||||||
|
@ -9,7 +9,12 @@
|
|||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
struct SDL_RWops;
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
class CInputStream;
|
class CInputStream;
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
|
||||||
|
struct SDL_RWops;
|
||||||
|
|
||||||
SDL_RWops* MakeSDLRWops(std::unique_ptr<CInputStream> in);
|
SDL_RWops* MakeSDLRWops(std::unique_ptr<CInputStream> in);
|
||||||
|
@ -7,3 +7,5 @@
|
|||||||
// This header should be treated as a pre compiled header file(PCH) in the compiler building settings.
|
// This header should be treated as a pre compiled header file(PCH) in the compiler building settings.
|
||||||
|
|
||||||
// Here you can add specific libraries and macros which are specific to this project.
|
// Here you can add specific libraries and macros which are specific to this project.
|
||||||
|
|
||||||
|
VCMI_LIB_USING_NAMESPACE
|
||||||
|
@ -12,8 +12,13 @@
|
|||||||
#include "../../lib/battle/BattleHex.h"
|
#include "../../lib/battle/BattleHex.h"
|
||||||
#include "../widgets/Images.h"
|
#include "../widgets/Images.h"
|
||||||
|
|
||||||
class CBattleInterface;
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
class CStack;
|
class CStack;
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
|
||||||
|
class CBattleInterface;
|
||||||
class CCreatureAnimation;
|
class CCreatureAnimation;
|
||||||
struct CatapultProjectileInfo;
|
struct CatapultProjectileInfo;
|
||||||
struct StackAttackedInfo;
|
struct StackAttackedInfo;
|
||||||
|
@ -19,14 +19,11 @@
|
|||||||
#include "../../lib/spells/CSpellHandler.h" //CSpell::TAnimation
|
#include "../../lib/spells/CSpellHandler.h" //CSpell::TAnimation
|
||||||
#include "../../lib/battle/CBattleInfoCallback.h"
|
#include "../../lib/battle/CBattleInfoCallback.h"
|
||||||
|
|
||||||
class CLabel;
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
class CCreatureSet;
|
class CCreatureSet;
|
||||||
class CGHeroInstance;
|
class CGHeroInstance;
|
||||||
class CStack;
|
class CStack;
|
||||||
class CCallback;
|
|
||||||
class CButton;
|
|
||||||
class CToggleButton;
|
|
||||||
class CToggleGroup;
|
|
||||||
struct BattleResult;
|
struct BattleResult;
|
||||||
struct BattleSpellCast;
|
struct BattleSpellCast;
|
||||||
struct CObstacleInstance;
|
struct CObstacleInstance;
|
||||||
@ -35,8 +32,21 @@ struct SetStackEffect;
|
|||||||
class BattleAction;
|
class BattleAction;
|
||||||
class CGTownInstance;
|
class CGTownInstance;
|
||||||
struct CatapultAttack;
|
struct CatapultAttack;
|
||||||
struct CatapultProjectileInfo;
|
|
||||||
struct BattleTriggerEffect;
|
struct BattleTriggerEffect;
|
||||||
|
struct BattleHex;
|
||||||
|
struct InfoAboutHero;
|
||||||
|
class CBattleGameInterface;
|
||||||
|
struct CustomEffectInfo;
|
||||||
|
class CSpell;
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
|
||||||
|
class CLabel;
|
||||||
|
class CCallback;
|
||||||
|
class CButton;
|
||||||
|
class CToggleButton;
|
||||||
|
class CToggleGroup;
|
||||||
|
struct CatapultProjectileInfo;
|
||||||
class CBattleAnimation;
|
class CBattleAnimation;
|
||||||
class CBattleHero;
|
class CBattleHero;
|
||||||
class CBattleConsole;
|
class CBattleConsole;
|
||||||
@ -46,13 +56,8 @@ class CPlayerInterface;
|
|||||||
class CCreatureAnimation;
|
class CCreatureAnimation;
|
||||||
struct ProjectileInfo;
|
struct ProjectileInfo;
|
||||||
class CClickableHex;
|
class CClickableHex;
|
||||||
struct BattleHex;
|
|
||||||
struct InfoAboutHero;
|
|
||||||
class CBattleGameInterface;
|
|
||||||
struct CustomEffectInfo;
|
|
||||||
class CAnimation;
|
class CAnimation;
|
||||||
class IImage;
|
class IImage;
|
||||||
class CSpell;
|
|
||||||
|
|
||||||
/// Small struct which contains information about the id of the attacked stack, the damage dealt,...
|
/// Small struct which contains information about the id of the attacked stack, the damage dealt,...
|
||||||
struct StackAttackedInfo
|
struct StackAttackedInfo
|
||||||
|
@ -13,8 +13,20 @@
|
|||||||
#include "../../lib/battle/BattleHex.h"
|
#include "../../lib/battle/BattleHex.h"
|
||||||
#include "../windows/CWindowObject.h"
|
#include "../windows/CWindowObject.h"
|
||||||
|
|
||||||
struct SDL_Surface;
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
class CGHeroInstance;
|
class CGHeroInstance;
|
||||||
|
struct BattleResult;
|
||||||
|
class CStack;
|
||||||
|
|
||||||
|
namespace battle
|
||||||
|
{
|
||||||
|
class Unit;
|
||||||
|
}
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
|
||||||
|
struct SDL_Surface;
|
||||||
class CBattleInterface;
|
class CBattleInterface;
|
||||||
class CPicture;
|
class CPicture;
|
||||||
class CFilledTexture;
|
class CFilledTexture;
|
||||||
@ -23,12 +35,6 @@ class CToggleButton;
|
|||||||
class CToggleGroup;
|
class CToggleGroup;
|
||||||
class CLabel;
|
class CLabel;
|
||||||
class CTextBox;
|
class CTextBox;
|
||||||
struct BattleResult;
|
|
||||||
class CStack;
|
|
||||||
namespace battle
|
|
||||||
{
|
|
||||||
class Unit;
|
|
||||||
}
|
|
||||||
class CAnimImage;
|
class CAnimImage;
|
||||||
class CPlayerInterface;
|
class CPlayerInterface;
|
||||||
|
|
||||||
|
@ -21,8 +21,13 @@
|
|||||||
#undef OUT
|
#undef OUT
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
struct SDL_Surface;
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
class JsonNode;
|
class JsonNode;
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
|
||||||
|
struct SDL_Surface;
|
||||||
class CDefFile;
|
class CDefFile;
|
||||||
class ColorShifter;
|
class ColorShifter;
|
||||||
|
|
||||||
|
@ -13,6 +13,12 @@
|
|||||||
#include "Geometries.h"
|
#include "Geometries.h"
|
||||||
#include "SDL_Extensions.h"
|
#include "SDL_Extensions.h"
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
|
template <typename T> struct CondSh;
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
|
||||||
class CFramerateManager;
|
class CFramerateManager;
|
||||||
class CGStatusBar;
|
class CGStatusBar;
|
||||||
class CIntObject;
|
class CIntObject;
|
||||||
@ -20,7 +26,6 @@ class IUpdateable;
|
|||||||
class IShowActivatable;
|
class IShowActivatable;
|
||||||
class IShowable;
|
class IShowable;
|
||||||
enum class EIntObjMouseBtnType;
|
enum class EIntObjMouseBtnType;
|
||||||
template <typename T> struct CondSh;
|
|
||||||
|
|
||||||
// TODO: event handling need refactoring
|
// TODO: event handling need refactoring
|
||||||
enum EUserEvent
|
enum EUserEvent
|
||||||
|
@ -9,8 +9,12 @@
|
|||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
class JsonNode;
|
class JsonNode;
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
|
||||||
struct Point;
|
struct Point;
|
||||||
struct SDL_Surface;
|
struct SDL_Surface;
|
||||||
struct SDL_Color;
|
struct SDL_Color;
|
||||||
|
@ -10,8 +10,13 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "../windows/CWindowObject.h"
|
#include "../windows/CWindowObject.h"
|
||||||
|
|
||||||
struct SDL_Surface;
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
class CCampaignState;
|
class CCampaignState;
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
|
||||||
|
struct SDL_Surface;
|
||||||
class CButton;
|
class CButton;
|
||||||
class CTextBox;
|
class CTextBox;
|
||||||
class CToggleGroup;
|
class CToggleGroup;
|
||||||
@ -90,4 +95,4 @@ public:
|
|||||||
std::shared_ptr<CButton> buttonDifficultyLeft;
|
std::shared_ptr<CButton> buttonDifficultyLeft;
|
||||||
std::shared_ptr<CButton> buttonDifficultyRight;
|
std::shared_ptr<CButton> buttonDifficultyRight;
|
||||||
std::shared_ptr<CAnimImage> iconsMapSizes;
|
std::shared_ptr<CAnimImage> iconsMapSizes;
|
||||||
};
|
};
|
||||||
|
@ -11,10 +11,15 @@
|
|||||||
|
|
||||||
#include "CSelectionBase.h"
|
#include "CSelectionBase.h"
|
||||||
|
|
||||||
class CSelectionBase;
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
struct StartInfo;
|
struct StartInfo;
|
||||||
class CMapInfo;
|
class CMapInfo;
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
|
||||||
|
class CSelectionBase;
|
||||||
|
|
||||||
class CSavingScreen : public CSelectionBase
|
class CSavingScreen : public CSelectionBase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -11,6 +11,14 @@
|
|||||||
|
|
||||||
#include "../mainmenu/CMainMenu.h"
|
#include "../mainmenu/CMainMenu.h"
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
|
class CMapInfo;
|
||||||
|
struct StartInfo;
|
||||||
|
struct PlayerInfo;
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
|
||||||
class CButton;
|
class CButton;
|
||||||
class CTextBox;
|
class CTextBox;
|
||||||
class CTextInput;
|
class CTextInput;
|
||||||
@ -21,9 +29,6 @@ class OptionsTab;
|
|||||||
class SelectionTab;
|
class SelectionTab;
|
||||||
class InfoCard;
|
class InfoCard;
|
||||||
class CChatBox;
|
class CChatBox;
|
||||||
class CMapInfo;
|
|
||||||
struct StartInfo;
|
|
||||||
struct PlayerInfo;
|
|
||||||
class CLabel;
|
class CLabel;
|
||||||
class CFlagBox;
|
class CFlagBox;
|
||||||
class CLabelGroup;
|
class CLabelGroup;
|
||||||
|
@ -14,7 +14,12 @@
|
|||||||
#include "../../lib/FunctionList.h"
|
#include "../../lib/FunctionList.h"
|
||||||
#include "../../lib/GameConstants.h"
|
#include "../../lib/GameConstants.h"
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
class CMapGenOptions;
|
class CMapGenOptions;
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
|
||||||
class CToggleButton;
|
class CToggleButton;
|
||||||
class CLabel;
|
class CLabel;
|
||||||
class CLabelGroup;
|
class CLabelGroup;
|
||||||
|
@ -11,11 +11,16 @@
|
|||||||
|
|
||||||
#include "../windows/CWindowObject.h"
|
#include "../windows/CWindowObject.h"
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
|
class JsonNode;
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
|
||||||
class CLabel;
|
class CLabel;
|
||||||
class CPicture;
|
class CPicture;
|
||||||
class CButton;
|
class CButton;
|
||||||
struct SDL_Surface;
|
struct SDL_Surface;
|
||||||
class JsonNode;
|
|
||||||
|
|
||||||
class CCampaignScreen : public CWindowObject
|
class CCampaignScreen : public CWindowObject
|
||||||
{
|
{
|
||||||
|
@ -12,7 +12,12 @@
|
|||||||
#include "../windows/CWindowObject.h"
|
#include "../windows/CWindowObject.h"
|
||||||
#include "../../lib/JsonNode.h"
|
#include "../../lib/JsonNode.h"
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
class CCampaignState;
|
class CCampaignState;
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
|
||||||
class CTextInput;
|
class CTextInput;
|
||||||
class CGStatusBar;
|
class CGStatusBar;
|
||||||
class CTextBox;
|
class CTextBox;
|
||||||
|
@ -23,17 +23,22 @@
|
|||||||
#undef OUT
|
#undef OUT
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
class CGObjectInstance;
|
class CGObjectInstance;
|
||||||
class CGHeroInstance;
|
class CGHeroInstance;
|
||||||
class CGBoat;
|
class CGBoat;
|
||||||
class CMap;
|
class CMap;
|
||||||
struct TerrainTile;
|
struct TerrainTile;
|
||||||
|
class PlayerColor;
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
|
||||||
struct SDL_Surface;
|
struct SDL_Surface;
|
||||||
struct SDL_Rect;
|
struct SDL_Rect;
|
||||||
class CAnimation;
|
class CAnimation;
|
||||||
class IImage;
|
class IImage;
|
||||||
class CFadeAnimation;
|
class CFadeAnimation;
|
||||||
class PlayerColor;
|
|
||||||
|
|
||||||
enum class EWorldViewIcon
|
enum class EWorldViewIcon
|
||||||
{
|
{
|
||||||
|
@ -13,21 +13,26 @@
|
|||||||
#include "../../lib/FunctionList.h"
|
#include "../../lib/FunctionList.h"
|
||||||
#include "Terrain.h"
|
#include "Terrain.h"
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
class CArmedInstance;
|
class CArmedInstance;
|
||||||
class CAnimation;
|
|
||||||
class CAnimImage;
|
|
||||||
class CShowableAnim;
|
|
||||||
class CFilledTexture;
|
|
||||||
class CGGarrison;
|
class CGGarrison;
|
||||||
class CGObjectInstance;
|
class CGObjectInstance;
|
||||||
class CGHeroInstance;
|
class CGHeroInstance;
|
||||||
class CGTownInstance;
|
class CGTownInstance;
|
||||||
class CButton;
|
|
||||||
struct Component;
|
struct Component;
|
||||||
class CComponent;
|
|
||||||
struct InfoAboutArmy;
|
struct InfoAboutArmy;
|
||||||
struct InfoAboutHero;
|
struct InfoAboutHero;
|
||||||
struct InfoAboutTown;
|
struct InfoAboutTown;
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
|
||||||
|
class CAnimation;
|
||||||
|
class CAnimImage;
|
||||||
|
class CShowableAnim;
|
||||||
|
class CFilledTexture;
|
||||||
|
class CButton;
|
||||||
|
class CComponent;
|
||||||
class CHeroTooltip;
|
class CHeroTooltip;
|
||||||
class CTownTooltip;
|
class CTownTooltip;
|
||||||
class CTextBox;
|
class CTextBox;
|
||||||
|
@ -14,17 +14,21 @@
|
|||||||
|
|
||||||
#include "../../lib/FunctionList.h"
|
#include "../../lib/FunctionList.h"
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
|
namespace config
|
||||||
|
{
|
||||||
|
struct ButtonInfo;
|
||||||
|
}
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
|
||||||
struct SDL_Surface;
|
struct SDL_Surface;
|
||||||
struct Rect;
|
struct Rect;
|
||||||
class CAnimImage;
|
class CAnimImage;
|
||||||
class CLabel;
|
class CLabel;
|
||||||
class CAnimation;
|
class CAnimation;
|
||||||
|
|
||||||
namespace config
|
|
||||||
{
|
|
||||||
struct ButtonInfo;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Typical Heroes 3 button which can be inactive or active and can
|
/// Typical Heroes 3 button which can be inactive or active and can
|
||||||
/// hold further information if you right-click it
|
/// hold further information if you right-click it
|
||||||
class CButton : public CKeyShortcut
|
class CButton : public CKeyShortcut
|
||||||
|
@ -11,12 +11,16 @@
|
|||||||
|
|
||||||
#include "MiscWidgets.h"
|
#include "MiscWidgets.h"
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
|
struct ArtifactLocation;
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
|
||||||
class CArtifactsOfHero;
|
class CArtifactsOfHero;
|
||||||
class CAnimImage;
|
class CAnimImage;
|
||||||
class CButton;
|
class CButton;
|
||||||
|
|
||||||
struct ArtifactLocation;
|
|
||||||
|
|
||||||
class CArtifactHolder
|
class CArtifactHolder
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -11,7 +11,12 @@
|
|||||||
|
|
||||||
#include "../gui/CIntObject.h"
|
#include "../gui/CIntObject.h"
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
struct Component;
|
struct Component;
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
|
||||||
class CAnimImage;
|
class CAnimImage;
|
||||||
class CLabel;
|
class CLabel;
|
||||||
|
|
||||||
|
@ -11,13 +11,18 @@
|
|||||||
|
|
||||||
#include "../windows/CWindowObject.h"
|
#include "../windows/CWindowObject.h"
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
|
class CArmedInstance;
|
||||||
|
class CCreatureSet;
|
||||||
|
class CStackInstance;
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
|
||||||
class CGarrisonInt;
|
class CGarrisonInt;
|
||||||
class CButton;
|
class CButton;
|
||||||
class CArmedInstance;
|
|
||||||
class CAnimImage;
|
class CAnimImage;
|
||||||
class CCreatureSet;
|
|
||||||
class CGarrisonSlot;
|
class CGarrisonSlot;
|
||||||
class CStackInstance;
|
|
||||||
class CLabel;
|
class CLabel;
|
||||||
|
|
||||||
/// A single garrison slot which holds one creature of a specific amount
|
/// A single garrison slot which holds one creature of a specific amount
|
||||||
|
@ -11,13 +11,18 @@
|
|||||||
|
|
||||||
#include "../gui/CIntObject.h"
|
#include "../gui/CIntObject.h"
|
||||||
|
|
||||||
class CLabel;
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
class CCreatureAnim;
|
|
||||||
class CComponent;
|
|
||||||
class CGGarrison;
|
class CGGarrison;
|
||||||
struct InfoAboutArmy;
|
struct InfoAboutArmy;
|
||||||
class CArmedInstance;
|
class CArmedInstance;
|
||||||
class IBonusBearer;
|
class IBonusBearer;
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
|
||||||
|
class CLabel;
|
||||||
|
class CCreatureAnim;
|
||||||
|
class CComponent;
|
||||||
class CAnimImage;
|
class CAnimImage;
|
||||||
|
|
||||||
/// Shows a text by moving the mouse cursor over the object
|
/// Shows a text by moving the mouse cursor over the object
|
||||||
|
@ -17,14 +17,19 @@
|
|||||||
|
|
||||||
#include "../../lib/spells/ViewSpellInt.h"
|
#include "../../lib/spells/ViewSpellInt.h"
|
||||||
|
|
||||||
class CCallback;
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
struct CGPath;
|
struct CGPath;
|
||||||
class CAdvMapInt;
|
|
||||||
class CGHeroInstance;
|
class CGHeroInstance;
|
||||||
class CGTownInstance;
|
class CGTownInstance;
|
||||||
class CHeroWindow;
|
|
||||||
class CSpell;
|
class CSpell;
|
||||||
class IShipyard;
|
class IShipyard;
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
|
||||||
|
class CCallback;
|
||||||
|
class CAdvMapInt;
|
||||||
|
class CHeroWindow;
|
||||||
enum class EMapAnimRedrawStatus;
|
enum class EMapAnimRedrawStatus;
|
||||||
class CFadeAnimation;
|
class CFadeAnimation;
|
||||||
|
|
||||||
|
@ -12,23 +12,28 @@
|
|||||||
#include "../widgets/CGarrisonInt.h"
|
#include "../widgets/CGarrisonInt.h"
|
||||||
#include "../widgets/Images.h"
|
#include "../widgets/Images.h"
|
||||||
|
|
||||||
class CButton;
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
class CBuilding;
|
class CBuilding;
|
||||||
|
class CGTownInstance;
|
||||||
|
class CSpell;
|
||||||
|
struct CStructure;
|
||||||
|
class CGHeroInstance;
|
||||||
|
class CCreature;
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
|
||||||
|
class CButton;
|
||||||
class CCastleBuildings;
|
class CCastleBuildings;
|
||||||
class CCreaturePic;
|
class CCreaturePic;
|
||||||
class CGStatusBar;
|
class CGStatusBar;
|
||||||
class CGTownInstance;
|
|
||||||
class CLabel;
|
class CLabel;
|
||||||
class CMinorResDataBar;
|
class CMinorResDataBar;
|
||||||
class CPicture;
|
class CPicture;
|
||||||
class CResDataBar;
|
class CResDataBar;
|
||||||
class CSpell;
|
|
||||||
class CTextBox;
|
class CTextBox;
|
||||||
class CTownList;
|
class CTownList;
|
||||||
struct CStructure;
|
|
||||||
class CGHeroInstance;
|
|
||||||
class CGarrisonInt;
|
class CGarrisonInt;
|
||||||
class CCreature;
|
|
||||||
class CComponent;
|
class CComponent;
|
||||||
class CComponentBox;
|
class CComponentBox;
|
||||||
|
|
||||||
|
@ -13,11 +13,16 @@
|
|||||||
#include "../widgets/MiscWidgets.h"
|
#include "../widgets/MiscWidgets.h"
|
||||||
#include "CWindowObject.h"
|
#include "CWindowObject.h"
|
||||||
|
|
||||||
class UnitView;
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
class CCommanderInstance;
|
class CCommanderInstance;
|
||||||
class CStackInstance;
|
class CStackInstance;
|
||||||
class CStack;
|
class CStack;
|
||||||
struct UpgradeInfo;
|
struct UpgradeInfo;
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
|
||||||
|
class UnitView;
|
||||||
class CTabbedInt;
|
class CTabbedInt;
|
||||||
class CButton;
|
class CButton;
|
||||||
class CMultiLineLabel;
|
class CMultiLineLabel;
|
||||||
|
@ -13,9 +13,14 @@
|
|||||||
#include "../widgets/CArtifactHolder.h"
|
#include "../widgets/CArtifactHolder.h"
|
||||||
#include "../widgets/CGarrisonInt.h"
|
#include "../widgets/CGarrisonInt.h"
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
|
class CGHeroInstance;
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
|
||||||
class CButton;
|
class CButton;
|
||||||
struct SDL_Surface;
|
struct SDL_Surface;
|
||||||
class CGHeroInstance;
|
|
||||||
class CHeroWindow;
|
class CHeroWindow;
|
||||||
class LClickableAreaHero;
|
class LClickableAreaHero;
|
||||||
class LRClickableAreaWText;
|
class LRClickableAreaWText;
|
||||||
|
@ -29,7 +29,12 @@
|
|||||||
#include "../../lib/NetPacksBase.h"
|
#include "../../lib/NetPacksBase.h"
|
||||||
#include "../../lib/mapObjects/CQuest.h"
|
#include "../../lib/mapObjects/CQuest.h"
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
struct QuestInfo;
|
struct QuestInfo;
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
|
||||||
class CAdvmapInterface;
|
class CAdvmapInterface;
|
||||||
|
|
||||||
void CQuestLabel::clickLeft(tribool down, bool previousState)
|
void CQuestLabel::clickLeft(tribool down, bool previousState)
|
||||||
|
@ -15,11 +15,17 @@
|
|||||||
#include "../widgets/Images.h"
|
#include "../widgets/Images.h"
|
||||||
#include "CWindowObject.h"
|
#include "CWindowObject.h"
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
class CCreature;
|
class CCreature;
|
||||||
class CStackInstance;
|
class CStackInstance;
|
||||||
|
class CGHeroInstance;
|
||||||
|
struct QuestInfo;
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
|
||||||
class CButton;
|
class CButton;
|
||||||
class CToggleButton;
|
class CToggleButton;
|
||||||
class CGHeroInstance;
|
|
||||||
class CComponentBox;
|
class CComponentBox;
|
||||||
class LRClickableAreaWText;
|
class LRClickableAreaWText;
|
||||||
class CButton;
|
class CButton;
|
||||||
@ -28,7 +34,6 @@ class CCreaturePic;
|
|||||||
class LRClickableAreaWTextComp;
|
class LRClickableAreaWTextComp;
|
||||||
class CSlider;
|
class CSlider;
|
||||||
class CLabel;
|
class CLabel;
|
||||||
struct QuestInfo;
|
|
||||||
|
|
||||||
const int QUEST_COUNT = 6;
|
const int QUEST_COUNT = 6;
|
||||||
const int DESCRIPTION_HEIGHT_MAX = 355;
|
const int DESCRIPTION_HEIGHT_MAX = 355;
|
||||||
|
@ -11,17 +11,22 @@
|
|||||||
|
|
||||||
#include "CWindowObject.h"
|
#include "CWindowObject.h"
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
|
class CGHeroInstance;
|
||||||
|
class CSpell;
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
|
||||||
struct SDL_Surface;
|
struct SDL_Surface;
|
||||||
struct SDL_Rect;
|
struct SDL_Rect;
|
||||||
class IImage;
|
class IImage;
|
||||||
class CAnimImage;
|
class CAnimImage;
|
||||||
class CPicture;
|
class CPicture;
|
||||||
class CLabel;
|
class CLabel;
|
||||||
class CGHeroInstance;
|
|
||||||
class CGStatusBar;
|
class CGStatusBar;
|
||||||
class CPlayerInterface;
|
class CPlayerInterface;
|
||||||
class CSpellWindow;
|
class CSpellWindow;
|
||||||
class CSpell;
|
|
||||||
|
|
||||||
/// The spell window
|
/// The spell window
|
||||||
class CSpellWindow : public CWindowObject
|
class CSpellWindow : public CWindowObject
|
||||||
|
@ -13,7 +13,12 @@
|
|||||||
#include "CWindowObject.h"
|
#include "CWindowObject.h"
|
||||||
#include "../../lib/FunctionList.h"
|
#include "../../lib/FunctionList.h"
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
class IMarket;
|
class IMarket;
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
|
||||||
class CSlider;
|
class CSlider;
|
||||||
class CTextBox;
|
class CTextBox;
|
||||||
class CGStatusBar;
|
class CGStatusBar;
|
||||||
|
@ -17,9 +17,14 @@
|
|||||||
#include "../widgets/CGarrisonInt.h"
|
#include "../widgets/CGarrisonInt.h"
|
||||||
#include "../widgets/Images.h"
|
#include "../widgets/Images.h"
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
class CGDwelling;
|
class CGDwelling;
|
||||||
class CreatureCostBox;
|
|
||||||
class IMarket;
|
class IMarket;
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
|
||||||
|
class CreatureCostBox;
|
||||||
class CCreaturePic;
|
class CCreaturePic;
|
||||||
class MoraleLuckBox;
|
class MoraleLuckBox;
|
||||||
class CHeroArea;
|
class CHeroArea;
|
||||||
|
@ -12,6 +12,12 @@
|
|||||||
#include "CWindowObject.h"
|
#include "CWindowObject.h"
|
||||||
#include "../../lib/FunctionList.h"
|
#include "../../lib/FunctionList.h"
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
|
class CGGarrison;
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
|
||||||
struct SDL_Surface;
|
struct SDL_Surface;
|
||||||
struct Rect;
|
struct Rect;
|
||||||
class CAnimImage;
|
class CAnimImage;
|
||||||
@ -19,7 +25,6 @@ class CLabel;
|
|||||||
class CAnimation;
|
class CAnimation;
|
||||||
class CComponent;
|
class CComponent;
|
||||||
class CSelectableComponent;
|
class CSelectableComponent;
|
||||||
class CGGarrison;
|
|
||||||
class CTextBox;
|
class CTextBox;
|
||||||
class CButton;
|
class CButton;
|
||||||
class CSlider;
|
class CSlider;
|
||||||
|
@ -12,6 +12,8 @@
|
|||||||
|
|
||||||
#include "Entity.h"
|
#include "Entity.h"
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
class ArtifactID;
|
class ArtifactID;
|
||||||
class CreatureID;
|
class CreatureID;
|
||||||
|
|
||||||
@ -25,3 +27,5 @@ public:
|
|||||||
virtual uint32_t getPrice() const = 0;
|
virtual uint32_t getPrice() const = 0;
|
||||||
virtual CreatureID getWarMachine() const = 0;
|
virtual CreatureID getWarMachine() const = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
@ -12,6 +12,8 @@
|
|||||||
|
|
||||||
#include "EntityService.h"
|
#include "EntityService.h"
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
class ArtifactID;
|
class ArtifactID;
|
||||||
class Artifact;
|
class Artifact;
|
||||||
|
|
||||||
@ -19,3 +21,5 @@ class DLL_LINKAGE ArtifactService : public EntityServiceT<ArtifactID, Artifact>
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
};
|
};
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
@ -12,6 +12,8 @@
|
|||||||
|
|
||||||
#include "Entity.h"
|
#include "Entity.h"
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
class CreatureID;
|
class CreatureID;
|
||||||
|
|
||||||
class DLL_LINKAGE Creature : public EntityWithBonuses<CreatureID>
|
class DLL_LINKAGE Creature : public EntityWithBonuses<CreatureID>
|
||||||
@ -43,3 +45,5 @@ public:
|
|||||||
|
|
||||||
virtual bool isDoubleWide() const = 0;
|
virtual bool isDoubleWide() const = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
@ -12,6 +12,8 @@
|
|||||||
|
|
||||||
#include "EntityService.h"
|
#include "EntityService.h"
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
class CreatureID;
|
class CreatureID;
|
||||||
class Creature;
|
class Creature;
|
||||||
|
|
||||||
@ -19,3 +21,5 @@ class DLL_LINKAGE CreatureService : public EntityServiceT<CreatureID, Creature>
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
};
|
};
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
@ -10,6 +10,8 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
class IBonusBearer;
|
class IBonusBearer;
|
||||||
|
|
||||||
class DLL_LINKAGE Entity
|
class DLL_LINKAGE Entity
|
||||||
@ -40,3 +42,5 @@ class DLL_LINKAGE EntityWithBonuses : public EntityT<IdType>
|
|||||||
public:
|
public:
|
||||||
virtual const IBonusBearer * accessBonuses() const = 0;
|
virtual const IBonusBearer * accessBonuses() const = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
@ -10,6 +10,8 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
class Entity;
|
class Entity;
|
||||||
|
|
||||||
class DLL_LINKAGE EntityService
|
class DLL_LINKAGE EntityService
|
||||||
@ -30,3 +32,5 @@ public:
|
|||||||
|
|
||||||
virtual void forEach(const std::function<void(const EntityType * entity, bool & stop)> & cb) const = 0;
|
virtual void forEach(const std::function<void(const EntityType * entity, bool & stop)> & cb) const = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
@ -10,6 +10,8 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
class Services;
|
class Services;
|
||||||
|
|
||||||
class IGameInfoCallback;
|
class IGameInfoCallback;
|
||||||
@ -23,8 +25,8 @@ namespace events
|
|||||||
class DLL_LINKAGE Environment
|
class DLL_LINKAGE Environment
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
using BattleCb = ::IBattleInfoCallback;
|
using BattleCb = IBattleInfoCallback;
|
||||||
using GameCb = ::IGameInfoCallback;
|
using GameCb = IGameInfoCallback;
|
||||||
|
|
||||||
virtual ~Environment() = default;
|
virtual ~Environment() = default;
|
||||||
|
|
||||||
@ -34,3 +36,5 @@ public:
|
|||||||
virtual vstd::CLoggerBase * logger() const = 0;
|
virtual vstd::CLoggerBase * logger() const = 0;
|
||||||
virtual events::EventBus * eventBus() const = 0;
|
virtual events::EventBus * eventBus() const = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
@ -12,6 +12,8 @@
|
|||||||
|
|
||||||
#include "Entity.h"
|
#include "Entity.h"
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
class FactionID;
|
class FactionID;
|
||||||
|
|
||||||
class DLL_LINKAGE Faction : public EntityT<FactionID>
|
class DLL_LINKAGE Faction : public EntityT<FactionID>
|
||||||
@ -19,3 +21,5 @@ class DLL_LINKAGE Faction : public EntityT<FactionID>
|
|||||||
public:
|
public:
|
||||||
virtual bool hasTown() const = 0;
|
virtual bool hasTown() const = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
@ -12,6 +12,8 @@
|
|||||||
|
|
||||||
#include "EntityService.h"
|
#include "EntityService.h"
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
class FactionID;
|
class FactionID;
|
||||||
class Faction;
|
class Faction;
|
||||||
|
|
||||||
@ -19,3 +21,5 @@ class DLL_LINKAGE FactionService : public EntityServiceT<FactionID, Faction>
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
};
|
};
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
@ -12,6 +12,8 @@
|
|||||||
|
|
||||||
#include "Entity.h"
|
#include "Entity.h"
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
class HeroClassID;
|
class HeroClassID;
|
||||||
|
|
||||||
class DLL_LINKAGE HeroClass : public EntityT<HeroClassID>
|
class DLL_LINKAGE HeroClass : public EntityT<HeroClassID>
|
||||||
@ -20,3 +22,5 @@ public:
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
@ -12,6 +12,8 @@
|
|||||||
|
|
||||||
#include "EntityService.h"
|
#include "EntityService.h"
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
class HeroClassID;
|
class HeroClassID;
|
||||||
class HeroClass;
|
class HeroClass;
|
||||||
|
|
||||||
@ -19,3 +21,5 @@ class DLL_LINKAGE HeroClassService : public EntityServiceT<HeroClassID, HeroClas
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
};
|
};
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
@ -12,6 +12,8 @@
|
|||||||
|
|
||||||
#include "Entity.h"
|
#include "Entity.h"
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
class HeroTypeID;
|
class HeroTypeID;
|
||||||
|
|
||||||
class DLL_LINKAGE HeroType : public EntityT<HeroTypeID>
|
class DLL_LINKAGE HeroType : public EntityT<HeroTypeID>
|
||||||
@ -20,3 +22,5 @@ public:
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
@ -12,6 +12,8 @@
|
|||||||
|
|
||||||
#include "EntityService.h"
|
#include "EntityService.h"
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
class HeroTypeID;
|
class HeroTypeID;
|
||||||
class HeroType;
|
class HeroType;
|
||||||
|
|
||||||
@ -19,3 +21,5 @@ class DLL_LINKAGE HeroTypeService : public EntityServiceT<HeroTypeID, HeroType>
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
};
|
};
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
@ -10,6 +10,8 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
enum class Metatype : uint32_t
|
enum class Metatype : uint32_t
|
||||||
{
|
{
|
||||||
UNKNOWN = 0,
|
UNKNOWN = 0,
|
||||||
@ -28,3 +30,5 @@ enum class Metatype : uint32_t
|
|||||||
SPELL
|
SPELL
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
@ -10,6 +10,8 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
class PlayerColor;
|
class PlayerColor;
|
||||||
class TeamID;
|
class TeamID;
|
||||||
class IBonusBearer;
|
class IBonusBearer;
|
||||||
@ -24,7 +26,4 @@ public:
|
|||||||
virtual int getResourceAmount(int type) const = 0;
|
virtual int getResourceAmount(int type) const = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -10,6 +10,8 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
namespace vstd
|
namespace vstd
|
||||||
{
|
{
|
||||||
class RNG;
|
class RNG;
|
||||||
@ -44,3 +46,5 @@ public:
|
|||||||
virtual void apply(BattleObstaclesChanged * pack) = 0;
|
virtual void apply(BattleObstaclesChanged * pack) = 0;
|
||||||
virtual void apply(CatapultAttack * pack) = 0;
|
virtual void apply(CatapultAttack * pack) = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
@ -12,6 +12,8 @@
|
|||||||
|
|
||||||
#include "Metatype.h"
|
#include "Metatype.h"
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
class ArtifactService;
|
class ArtifactService;
|
||||||
class CreatureService;
|
class CreatureService;
|
||||||
class FactionService;
|
class FactionService;
|
||||||
@ -63,3 +65,5 @@ public:
|
|||||||
virtual spells::effects::Registry * spellEffects() = 0;
|
virtual spells::effects::Registry * spellEffects() = 0;
|
||||||
//TODO: put map object types registry access here
|
//TODO: put map object types registry access here
|
||||||
};
|
};
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
@ -12,6 +12,8 @@
|
|||||||
|
|
||||||
#include "Entity.h"
|
#include "Entity.h"
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
class SecondarySkill;
|
class SecondarySkill;
|
||||||
|
|
||||||
class DLL_LINKAGE Skill : public EntityT<SecondarySkill>
|
class DLL_LINKAGE Skill : public EntityT<SecondarySkill>
|
||||||
@ -20,3 +22,5 @@ public:
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
@ -12,6 +12,8 @@
|
|||||||
|
|
||||||
#include "EntityService.h"
|
#include "EntityService.h"
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
class SecondarySkill;
|
class SecondarySkill;
|
||||||
class Skill;
|
class Skill;
|
||||||
|
|
||||||
@ -19,3 +21,5 @@ class DLL_LINKAGE SkillService : public EntityServiceT<SecondarySkill, Skill>
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
};
|
};
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
@ -13,6 +13,8 @@
|
|||||||
#include "Event.h"
|
#include "Event.h"
|
||||||
#include "SubscriptionRegistry.h"
|
#include "SubscriptionRegistry.h"
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
struct BattleStackAttacked;
|
struct BattleStackAttacked;
|
||||||
|
|
||||||
namespace battle
|
namespace battle
|
||||||
@ -43,3 +45,5 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
@ -10,6 +10,8 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
namespace events
|
namespace events
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -27,3 +29,5 @@ public:
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
@ -12,6 +12,8 @@
|
|||||||
|
|
||||||
#include "SubscriptionRegistry.h"
|
#include "SubscriptionRegistry.h"
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
class Environment;
|
class Environment;
|
||||||
|
|
||||||
namespace events
|
namespace events
|
||||||
@ -42,3 +44,5 @@ public:
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
@ -13,6 +13,8 @@
|
|||||||
#include "Event.h"
|
#include "Event.h"
|
||||||
#include "SubscriptionRegistry.h"
|
#include "SubscriptionRegistry.h"
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
namespace events
|
namespace events
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -33,3 +35,5 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
@ -13,6 +13,8 @@
|
|||||||
#include "Event.h"
|
#include "Event.h"
|
||||||
#include "SubscriptionRegistry.h"
|
#include "SubscriptionRegistry.h"
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
class PlayerColor;
|
class PlayerColor;
|
||||||
class ObjectInstanceID;
|
class ObjectInstanceID;
|
||||||
|
|
||||||
@ -38,3 +40,5 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
@ -13,6 +13,8 @@
|
|||||||
#include "Event.h"
|
#include "Event.h"
|
||||||
#include "SubscriptionRegistry.h"
|
#include "SubscriptionRegistry.h"
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
class PlayerColor;
|
class PlayerColor;
|
||||||
class ObjectInstanceID;
|
class ObjectInstanceID;
|
||||||
|
|
||||||
@ -41,3 +43,5 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
@ -13,6 +13,8 @@
|
|||||||
#include "Event.h"
|
#include "Event.h"
|
||||||
#include "SubscriptionRegistry.h"
|
#include "SubscriptionRegistry.h"
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
class PlayerColor;
|
class PlayerColor;
|
||||||
|
|
||||||
namespace events
|
namespace events
|
||||||
@ -39,3 +41,5 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
@ -10,6 +10,8 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
class Environment;
|
class Environment;
|
||||||
|
|
||||||
namespace events
|
namespace events
|
||||||
@ -164,3 +166,5 @@ private:
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
@ -13,6 +13,8 @@
|
|||||||
#include "Event.h"
|
#include "Event.h"
|
||||||
#include "SubscriptionRegistry.h"
|
#include "SubscriptionRegistry.h"
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
namespace events
|
namespace events
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -31,3 +33,5 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
@ -13,6 +13,8 @@
|
|||||||
#if SCRIPTING_ENABLED
|
#if SCRIPTING_ENABLED
|
||||||
#include <vcmi/Environment.h>
|
#include <vcmi/Environment.h>
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
class Services;
|
class Services;
|
||||||
class JsonNode;
|
class JsonNode;
|
||||||
class ServerCallback;
|
class ServerCallback;
|
||||||
@ -20,8 +22,8 @@ class ServerCallback;
|
|||||||
namespace scripting
|
namespace scripting
|
||||||
{
|
{
|
||||||
|
|
||||||
using BattleCb = ::Environment::BattleCb;
|
using BattleCb = Environment::BattleCb;
|
||||||
using GameCb = ::Environment::GameCb;
|
using GameCb = Environment::GameCb;
|
||||||
|
|
||||||
class DLL_LINKAGE Context
|
class DLL_LINKAGE Context
|
||||||
{
|
{
|
||||||
@ -79,4 +81,6 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
#endif
|
#endif
|
||||||
|
@ -10,6 +10,8 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
class PlayerColor;
|
class PlayerColor;
|
||||||
struct MetaString;
|
struct MetaString;
|
||||||
class ServerCallback;
|
class ServerCallback;
|
||||||
@ -66,3 +68,5 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
@ -10,6 +10,8 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
struct MetaString;
|
struct MetaString;
|
||||||
|
|
||||||
namespace battle
|
namespace battle
|
||||||
@ -24,7 +26,7 @@ class Caster;
|
|||||||
class Spell;
|
class Spell;
|
||||||
class Mechanics;
|
class Mechanics;
|
||||||
class BattleCast;
|
class BattleCast;
|
||||||
using Destination = ::battle::Destination;
|
using Destination = battle::Destination;
|
||||||
|
|
||||||
using Target = std::vector<Destination>;
|
using Target = std::vector<Destination>;
|
||||||
|
|
||||||
@ -67,3 +69,5 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
@ -12,6 +12,8 @@
|
|||||||
|
|
||||||
#include "../EntityService.h"
|
#include "../EntityService.h"
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
class SpellID;
|
class SpellID;
|
||||||
|
|
||||||
namespace spells
|
namespace spells
|
||||||
@ -24,3 +26,5 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
@ -12,6 +12,8 @@
|
|||||||
|
|
||||||
#include "../Entity.h"
|
#include "../Entity.h"
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
class SpellID;
|
class SpellID;
|
||||||
|
|
||||||
namespace spells
|
namespace spells
|
||||||
@ -54,3 +56,5 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
@ -10,6 +10,8 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
namespace ELogLevel
|
namespace ELogLevel
|
||||||
{
|
{
|
||||||
enum ELogLevel
|
enum ELogLevel
|
||||||
@ -191,3 +193,5 @@ extern DLL_LINKAGE vstd::CLoggerBase * logNetwork;
|
|||||||
extern DLL_LINKAGE vstd::CLoggerBase * logAi;
|
extern DLL_LINKAGE vstd::CLoggerBase * logAi;
|
||||||
extern DLL_LINKAGE vstd::CLoggerBase * logAnim;
|
extern DLL_LINKAGE vstd::CLoggerBase * logAnim;
|
||||||
extern DLL_LINKAGE vstd::CLoggerBase * logMod;
|
extern DLL_LINKAGE vstd::CLoggerBase * logMod;
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
@ -10,6 +10,8 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
namespace vstd
|
namespace vstd
|
||||||
{
|
{
|
||||||
template<typename K, typename V>
|
template<typename K, typename V>
|
||||||
@ -24,5 +26,4 @@ namespace vstd
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
|
||||||
|
@ -10,6 +10,8 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
namespace vstd
|
namespace vstd
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -56,3 +58,5 @@ namespace RandomGeneratorUtil
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
namespace vstd
|
namespace vstd
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -7,3 +9,5 @@ namespace vstd
|
|||||||
DLL_LINKAGE std::pair<std::string, std::string> splitStringToPair(std::string input, char separator);
|
DLL_LINKAGE std::pair<std::string, std::string> splitStringToPair(std::string input, char separator);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
@ -11,8 +11,12 @@
|
|||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
#include <QNetworkAccessManager>
|
#include <QNetworkAccessManager>
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
class JsonNode;
|
class JsonNode;
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
|
||||||
namespace Ui {
|
namespace Ui {
|
||||||
class UpdateDialog;
|
class UpdateDialog;
|
||||||
}
|
}
|
||||||
|
@ -12,6 +12,8 @@
|
|||||||
#include <vcmi/Entity.h>
|
#include <vcmi/Entity.h>
|
||||||
#include "BattleFieldHandler.h"
|
#include "BattleFieldHandler.h"
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
BattleFieldInfo * BattleFieldHandler::loadFromJson(const std::string & scope, const JsonNode & json, const std::string & identifier, size_t index)
|
BattleFieldInfo * BattleFieldHandler::loadFromJson(const std::string & scope, const JsonNode & json, const std::string & identifier, size_t index)
|
||||||
{
|
{
|
||||||
BattleFieldInfo * info = new BattleFieldInfo(BattleField(index), identifier);
|
BattleFieldInfo * info = new BattleFieldInfo(BattleField(index), identifier);
|
||||||
@ -105,4 +107,6 @@ void BattleFieldInfo::registerIcons(const IconRegistar & cb) const
|
|||||||
BattleField BattleFieldInfo::getId() const
|
BattleField BattleFieldInfo::getId() const
|
||||||
{
|
{
|
||||||
return battlefield;
|
return battlefield;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
@ -17,6 +17,8 @@
|
|||||||
#include "Terrain.h"
|
#include "Terrain.h"
|
||||||
#include "battle/BattleHex.h"
|
#include "battle/BattleHex.h"
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
class BattleFieldInfo : public EntityT<BattleField>
|
class BattleFieldInfo : public EntityT<BattleField>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@ -84,3 +86,5 @@ public:
|
|||||||
h & objects;
|
h & objects;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
@ -48,6 +48,8 @@
|
|||||||
ART_POS(SHOULDERS) \
|
ART_POS(SHOULDERS) \
|
||||||
ART_POS(HEAD)
|
ART_POS(HEAD)
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
int32_t CArtifact::getIndex() const
|
int32_t CArtifact::getIndex() const
|
||||||
{
|
{
|
||||||
return id.toEnum();
|
return id.toEnum();
|
||||||
@ -1434,3 +1436,5 @@ void CArtifactSet::serializeJsonSlot(JsonSerializeFormat & handler, const Artifa
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
@ -16,6 +16,8 @@
|
|||||||
#include "GameConstants.h"
|
#include "GameConstants.h"
|
||||||
#include "IHandlerBase.h"
|
#include "IHandlerBase.h"
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
class CArtHandler;
|
class CArtHandler;
|
||||||
class CArtifact;
|
class CArtifact;
|
||||||
class CGHeroInstance;
|
class CGHeroInstance;
|
||||||
@ -358,3 +360,5 @@ private:
|
|||||||
|
|
||||||
void serializeJsonSlot(JsonSerializeFormat & handler, const ArtifactPosition & slot, CMap * map);//normal slots
|
void serializeJsonSlot(JsonSerializeFormat & handler, const ArtifactPosition & slot, CMap * map);//normal slots
|
||||||
};
|
};
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
@ -20,7 +20,9 @@
|
|||||||
#include "CCreatureHandler.h"
|
#include "CCreatureHandler.h"
|
||||||
#include "spells/CSpellHandler.h"
|
#include "spells/CSpellHandler.h"
|
||||||
|
|
||||||
template class std::vector<CBonusType>;
|
template class std::vector<VCMI_LIB_WRAP_NAMESPACE(CBonusType)>;
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
///MacroString
|
///MacroString
|
||||||
|
|
||||||
@ -326,3 +328,5 @@ void CBonusTypeHandler::loadItem(const JsonNode & source, CBonusType & dest)
|
|||||||
}
|
}
|
||||||
dest.buildMacros();
|
dest.buildMacros();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user