1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-27 22:49:25 +02:00

Split some map object files into smaller files. Reduced includes usage.

This commit is contained in:
Ivan Savenko
2023-06-02 21:47:37 +03:00
parent b04b11b9d1
commit d6a357fd17
116 changed files with 1864 additions and 1593 deletions

View File

@@ -10,10 +10,14 @@
#pragma once
#include "../mapObjects/CGHeroInstance.h"
#include "../GameConstants.h"
#include "../ResourceSet.h"
VCMI_LIB_NAMESPACE_BEGIN
class CGHeroInstance;
class CStackBasicDescriptor;
namespace Rewardable {
struct Limiter;
@@ -66,15 +70,8 @@ struct DLL_LINKAGE Limiter
/// sub-limiters, none should pass for this limiter to pass
LimitersList noneOf;
Limiter():
dayOfWeek(0),
daysPassed(0),
heroExperience(0),
heroLevel(0),
manaPercentage(0),
manaPoints(0),
primary(GameConstants::PRIMARY_SKILLS, 0)
{}
Limiter();
~Limiter();
bool heroAllowed(const CGHeroInstance * hero) const;