1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-14 10:12:59 +02:00
vcmi/lib/mapObjectConstructors/CRewardableConstructor.h

36 lines
914 B
C++
Raw Normal View History

/*
* CRewardableConstructor.h, part of VCMI engine
*
* Authors: listed in file AUTHORS in main folder
*
* License: GNU General Public License v2.0 or later
* Full text of license available in license.txt file, in main folder
*
*/
#pragma once
#include "AObjectTypeHandler.h"
2023-04-30 15:13:07 +02:00
#include "../rewardable/Info.h"
VCMI_LIB_NAMESPACE_BEGIN
class DLL_LINKAGE CRewardableConstructor : public AObjectTypeHandler
{
2023-04-30 15:13:07 +02:00
Rewardable::Info objectInfo;
void initTypeData(const JsonNode & config) override;
2023-04-29 22:59:02 +02:00
bool blockVisit = false;
2023-02-12 22:39:17 +02:00
public:
bool hasNameTextID() const override;
2024-01-01 16:37:48 +02:00
CGObjectInstance * create(IGameCallback * cb, std::shared_ptr<const ObjectTemplate> tmpl = nullptr) const override;
2014-05-17 17:50:11 +03:00
void configureObject(CGObjectInstance * object, CRandomGenerator & rng) const override;
std::unique_ptr<IObjectInfo> getObjectInfo(std::shared_ptr<const ObjectTemplate> tmpl) const override;
};
VCMI_LIB_NAMESPACE_END