aboutsummaryrefslogtreecommitdiff
path: root/src/LevelSelectionScene.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/LevelSelectionScene.h')
-rw-r--r--src/LevelSelectionScene.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/LevelSelectionScene.h b/src/LevelSelectionScene.h
new file mode 100644
index 0000000..61eb70a
--- /dev/null
+++ b/src/LevelSelectionScene.h
@@ -0,0 +1,36 @@
+#ifndef LevelSelectionScene_h
+#define LevelSelectionScene_h
+
+#include "GameScene.h"
+
+#include "ParallaxScrollerStatic.h"
+
+class LevelSelectionScene : public GameScene
+{
+ Q_OBJECT
+public:
+ LevelSelectionScene(const QString &name, const QRectF &rect, GameView *parent = 0);
+ virtual ~LevelSelectionScene();
+
+ /**
+ * Updates graphics on scene. Mainly background but levelselectionbuttons too.
+ */
+ void updateLogic();
+
+ /**
+ * Loads level data and creates selection grid
+ */
+ void initializeScene();
+
+private slots:
+ /**
+ * This function calls ActionScene with information about what level to load.
+ */
+ void levelSelection();
+
+private:
+ ParallaxScrollerStatic* m_background;
+
+};
+
+#endif // LevelSelectionScene_h