1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

vcmi: a bunch of forward definitions

This commit is contained in:
Konstantin 2023-05-06 00:45:09 +03:00
parent 057a33c508
commit e60a4318c3
11 changed files with 19 additions and 4 deletions

View File

@ -13,6 +13,7 @@
#include "VCMI_Lib.h"
#include "GameConstants.h"
#include "GameSettings.h"
#include "JsonNode.h"
#include "bonuses/BonusList.h"
#include "bonuses/Bonus.h"
#include "bonuses/IBonusBearer.h"

View File

@ -11,6 +11,7 @@
#include <vcmi/Entity.h>
#include "BattleFieldHandler.h"
#include "JsonNode.h"
VCMI_LIB_NAMESPACE_BEGIN

View File

@ -7,7 +7,6 @@
* Full text of license available in license.txt file, in main folder
*
*/
#include "GameConstants.h"
#include "StdInc.h"
#include "CModHandler.h"
#include "mapObjects/CObjectClassesHandler.h"

View File

@ -20,6 +20,7 @@ class ILimiter;
class IPropagator;
class IUpdater;
class BonusList;
class CSelector;
using TBonusSubtype = int32_t;
using TBonusListPtr = std::shared_ptr<BonusList>;

View File

@ -13,6 +13,8 @@
#include "BonusEnum.h"
#include "../JsonNode.h"
VCMI_LIB_NAMESPACE_BEGIN
#define BONUS_NAME(x) { #x, BonusType::x },

View File

@ -10,10 +10,10 @@
#pragma once
#include "../JsonNode.h"
VCMI_LIB_NAMESPACE_BEGIN
class JsonNode;
#define BONUS_LIST \
BONUS_NAME(NONE) \
BONUS_NAME(LEVEL_COUNTER) /* for commander artifacts*/ \

View File

@ -11,6 +11,8 @@
#include "StdInc.h"
#include "CBonusSystemNode.h"
#include "../JsonNode.h"
VCMI_LIB_NAMESPACE_BEGIN
BonusList::BonusList(bool BelongsToTree) : belongsToTree(BelongsToTree)

View File

@ -9,6 +9,8 @@
*/
#pragma once
#include "GameConstants.h"
#include "BonusList.h"
#include "IBonusBearer.h"

View File

@ -9,10 +9,14 @@
*/
#include "Bonus.h"
#include "battle/BattleHex.h"
#include "../GameConstants.h"
#include "../battle/BattleHex.h"
VCMI_LIB_NAMESPACE_BEGIN
class CCreature;
extern DLL_LINKAGE const std::map<std::string, TLimiterPtr> bonusLimiterMap;
struct BonusLimitationContext

View File

@ -11,6 +11,8 @@
#include "BonusSystem.h"
#include "../../../lib/JsonNode.h"
#include "../../../lib/bonuses/BonusList.h"
#include "../../../lib/bonuses/Bonus.h"
#include "../../../lib/bonuses/IBonusBearer.h"

View File

@ -11,6 +11,7 @@
#pragma once
#include <vcmi/spells/Spell.h>
#include "GameConstants.h"
namespace spells
{