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,15 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "../mapObjects/CGHeroInstance.h"
|
||||
#include "../ResourceSet.h"
|
||||
|
||||
VCMI_LIB_NAMESPACE_BEGIN
|
||||
|
||||
struct Bonus;
|
||||
struct Component;
|
||||
class CStackBasicDescriptor;
|
||||
class CGHeroInstance;
|
||||
|
||||
namespace Rewardable
|
||||
{
|
||||
|
||||
@@ -78,17 +83,8 @@ struct DLL_LINKAGE Reward
|
||||
|
||||
si32 calculateManaPoints(const CGHeroInstance * h) const;
|
||||
|
||||
Reward() :
|
||||
heroExperience(0),
|
||||
heroLevel(0),
|
||||
manaDiff(0),
|
||||
manaPercentage(-1),
|
||||
movePoints(0),
|
||||
movePercentage(-1),
|
||||
primary(4, 0),
|
||||
removeObject(false),
|
||||
spellCast(SpellID::NONE, SecSkillLevel::NONE)
|
||||
{}
|
||||
Reward();
|
||||
~Reward();
|
||||
|
||||
template <typename Handler> void serialize(Handler &h, const int version)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user