@@ -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"
@@ -11,6 +11,7 @@
#include <vcmi/Entity.h>
#include "BattleFieldHandler.h"
VCMI_LIB_NAMESPACE_BEGIN
@@ -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"
@@ -20,6 +20,7 @@ class ILimiter;
class IPropagator;
class IUpdater;
class BonusList;
+class CSelector;
using TBonusSubtype = int32_t;
using TBonusListPtr = std::shared_ptr<BonusList>;
@@ -13,6 +13,8 @@
#include "BonusEnum.h"
+#include "../JsonNode.h"
+
#define BONUS_NAME(x) { #x, BonusType::x },
@@ -10,10 +10,10 @@
#pragma once
-#include "../JsonNode.h"
-
+class JsonNode;
#define BONUS_LIST \
BONUS_NAME(NONE) \
BONUS_NAME(LEVEL_COUNTER) /* for commander artifacts*/ \
@@ -11,6 +11,8 @@
#include "CBonusSystemNode.h"
BonusList::BonusList(bool BelongsToTree) : belongsToTree(BelongsToTree)
@@ -9,6 +9,8 @@
+#include "GameConstants.h"
#include "BonusList.h"
#include "IBonusBearer.h"
@@ -9,10 +9,14 @@
#include "Bonus.h"
-#include "battle/BattleHex.h"
+#include "../GameConstants.h"
+#include "../battle/BattleHex.h"
+class CCreature;
extern DLL_LINKAGE const std::map<std::string, TLimiterPtr> bonusLimiterMap;
struct BonusLimitationContext
#include "BonusSystem.h"
+#include "../../../lib/JsonNode.h"
#include "../../../lib/bonuses/BonusList.h"
#include "../../../lib/bonuses/Bonus.h"
#include "../../../lib/bonuses/IBonusBearer.h"
#include <vcmi/spells/Spell.h>
namespace spells
{