IBonusTypeHandler.h 752 B

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