|
@@ -451,8 +451,6 @@ class DLL_LINKAGE HillFort : public CGObjectInstance, public ICreatureUpgrader
|
|
|
friend class HillFortInstanceConstructor;
|
|
|
|
|
|
std::vector<int> upgradeCostPercentage;
|
|
|
- std::string descriptionToolTip;
|
|
|
- std::string unavailableUpgradeMessage;
|
|
|
|
|
|
protected:
|
|
|
void onHeroVisit(const CGHeroInstance * h) const override;
|
|
@@ -461,22 +459,13 @@ protected:
|
|
|
public:
|
|
|
using CGObjectInstance::CGObjectInstance;
|
|
|
|
|
|
- const std::string & getDescriptionToolTip() const
|
|
|
- {
|
|
|
- return descriptionToolTip;
|
|
|
- }
|
|
|
-
|
|
|
- const std::string & getUnavailableUpgradeMessage() const
|
|
|
- {
|
|
|
- return unavailableUpgradeMessage;
|
|
|
- }
|
|
|
+ std::string getDescriptionToolTip() const;
|
|
|
+ std::string getUnavailableUpgradeMessage() const;
|
|
|
|
|
|
template <typename Handler> void serialize(Handler &h)
|
|
|
{
|
|
|
h & static_cast<CGObjectInstance&>(*this);
|
|
|
h & upgradeCostPercentage;
|
|
|
- h & descriptionToolTip;
|
|
|
- h & unavailableUpgradeMessage;
|
|
|
}
|
|
|
};
|
|
|
|