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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user