IBonusTypeHandler.h 752 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * IBonusTypeHandler.h, part of VCMI engine
  3. *
  4. * Authors: listed in file AUTHORS in main folder
  5. *
  6. * License: GNU General Public License v2.0 or later
  7. * Full text of license available in license.txt file, in main folder
  8. *
  9. */
  10. #pragma once
  11. #include "filesystem/ResourcePath.h"
  12. #include "IHandlerBase.h"
  13. VCMI_LIB_NAMESPACE_BEGIN
  14. class IBonusBearer;
  15. struct Bonus;
  16. ///High level interface for BonusTypeHandler
  17. class DLL_LINKAGE IBonusTypeHandler : public IHandlerBase
  18. {
  19. public:
  20. virtual ~IBonusTypeHandler() = default;
  21. virtual std::string bonusToString(const std::shared_ptr<Bonus> & bonus, const IBonusBearer * bearer) const = 0;
  22. virtual ImagePath bonusToGraphics(const std::shared_ptr<Bonus> & bonus) const = 0;
  23. };
  24. VCMI_LIB_NAMESPACE_END