Problem.h 729 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * Problem.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 <vcmi/spells/Magic.h>
  12. VCMI_LIB_NAMESPACE_BEGIN
  13. namespace spells
  14. {
  15. namespace detail
  16. {
  17. class DLL_LINKAGE ProblemImpl : public Problem
  18. {
  19. public:
  20. void add(MetaString && description, Severity severity = CRITICAL) override;
  21. void getAll(std::vector<std::string> & target) const override;
  22. // void getMostSevere(std::vector<std::string> & target) const;
  23. // std::string getMostSevere() const;
  24. private:
  25. std::vector<std::pair<MetaString, Severity>> data;
  26. };
  27. }
  28. }
  29. VCMI_LIB_NAMESPACE_END