Problem.h 739 B

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