IBonusTypeHandler.h 706 B

12345678910111213141516171819202122232425262728
  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. VCMI_LIB_NAMESPACE_BEGIN
  12. class IBonusBearer;
  13. struct Bonus;
  14. ///High level interface for BonusTypeHandler
  15. class DLL_LINKAGE IBonusTypeHandler
  16. {
  17. public:
  18. virtual ~IBonusTypeHandler(){};
  19. virtual std::string bonusToString(const std::shared_ptr<Bonus> & bonus, const IBonusBearer * bearer, bool description) const = 0;
  20. virtual std::string bonusToGraphics(const std::shared_ptr<Bonus> & bonus) const = 0;
  21. };
  22. VCMI_LIB_NAMESPACE_END