CSavingScreen.h 687 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * CSavingScreen.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 "CSelectionBase.h"
  12. VCMI_LIB_NAMESPACE_BEGIN
  13. struct StartInfo;
  14. class CMapInfo;
  15. VCMI_LIB_NAMESPACE_END
  16. class CSelectionBase;
  17. class CSavingScreen : public CSelectionBase
  18. {
  19. public:
  20. std::shared_ptr<CMapInfo> localMi;
  21. CSavingScreen();
  22. void changeSelection(std::shared_ptr<CMapInfo> to);
  23. void saveGame();
  24. const CMapInfo * getMapInfo() override;
  25. const StartInfo * getStartInfo() override;
  26. protected:
  27. void close() override;
  28. };