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,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)
{