2018-01-05 19:21:07 +02:00
|
|
|
/*
|
|
|
|
* CSavingScreen.h, part of VCMI engine
|
|
|
|
*
|
|
|
|
* Authors: listed in file AUTHORS in main folder
|
|
|
|
*
|
|
|
|
* License: GNU General Public License v2.0 or later
|
|
|
|
* Full text of license available in license.txt file, in main folder
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "CSelectionBase.h"
|
|
|
|
|
2022-07-26 15:07:42 +02:00
|
|
|
VCMI_LIB_NAMESPACE_BEGIN
|
|
|
|
|
2018-01-05 19:21:07 +02:00
|
|
|
struct StartInfo;
|
|
|
|
class CMapInfo;
|
|
|
|
|
2022-07-26 15:07:42 +02:00
|
|
|
VCMI_LIB_NAMESPACE_END
|
|
|
|
|
|
|
|
class CSelectionBase;
|
|
|
|
|
2018-01-05 19:21:07 +02:00
|
|
|
class CSavingScreen : public CSelectionBase
|
|
|
|
{
|
|
|
|
public:
|
2018-04-07 17:21:28 +02:00
|
|
|
std::shared_ptr<CMapInfo> localMi;
|
2018-01-05 19:21:07 +02:00
|
|
|
|
|
|
|
CSavingScreen();
|
|
|
|
|
|
|
|
void changeSelection(std::shared_ptr<CMapInfo> to);
|
|
|
|
void saveGame();
|
|
|
|
|
|
|
|
const CMapInfo * getMapInfo() override;
|
|
|
|
const StartInfo * getStartInfo() override;
|
2023-10-07 01:44:37 +02:00
|
|
|
|
|
|
|
protected:
|
|
|
|
void close() override;
|
2018-01-05 19:21:07 +02:00
|
|
|
};
|