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,12 +10,27 @@
|
||||
|
||||
#include "StdInc.h"
|
||||
#include "Limiter.h"
|
||||
|
||||
#include "../IGameCallback.h"
|
||||
#include "../CGameStateFwd.h"
|
||||
#include "../CPlayerState.h"
|
||||
#include "../mapObjects/CGHeroInstance.h"
|
||||
|
||||
VCMI_LIB_NAMESPACE_BEGIN
|
||||
|
||||
Rewardable::Limiter::Limiter()
|
||||
: dayOfWeek(0)
|
||||
, daysPassed(0)
|
||||
, heroExperience(0)
|
||||
, heroLevel(0)
|
||||
, manaPercentage(0)
|
||||
, manaPoints(0)
|
||||
, primary(GameConstants::PRIMARY_SKILLS, 0)
|
||||
{
|
||||
}
|
||||
|
||||
Rewardable::Limiter::~Limiter() = default;
|
||||
|
||||
bool Rewardable::Limiter::heroAllowed(const CGHeroInstance * hero) const
|
||||
{
|
||||
if(dayOfWeek != 0)
|
||||
|
||||
Reference in New Issue
Block a user