Problem.h 757 B

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