You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
579 B
C++

#ifndef QUESTNEWGAMEEVENT_H
#define QUESTNEWGAMEEVENT_H
#include "qw_abstractlevelevent.h"
/* QWNewGameEvent
* Creates new savefile and begins the game from clear sheet. */
class QWNewGameEvent : public QWAbstractLevelEvent
{
private:
QString str_savefile;
QString composeFileName(const QString &str);
public:
explicit QWNewGameEvent(const QString &savefile);
virtual ~QWNewGameEvent() override {}
void virtual execute() override;
////////////////////////
void writeToJson(QJsonObject &event_data) override;
};
#endif // QUESTNEWGAMEEVENT_H