Saving games & starting from the next un-passed level (draft).
[evilplumber] / src / game.h
index 61cdd79..681aac8 100644 (file)
@@ -243,6 +243,8 @@ private slots:
 
 private:
     void initiateLevel();
+    void readSavedGames();
+    void writeSavedGames();
 
     GameController* gameController; // Not owned
     QWidget* levelWidget; // Not owned
@@ -256,9 +258,11 @@ private:
     QLabel* scoreLabel; // Not owned
 
     QStringList levelCollections;
+    QString curColl;
     QStringList levels;
     int level;
     int totalScore;
+    QHash<QString, int> savedGames; // level collection -> next level ix
 };
 
 #endif