aboutsummaryrefslogtreecommitdiff
path: root/src/LevelSelectionScene.h
diff options
context:
space:
mode:
authorSamu Laaksonen <laaksonen.sj@gmail.com>2012-09-25 20:00:41 +0300
committerSamu Laaksonen <laaksonen.sj@gmail.com>2012-09-25 20:00:41 +0300
commit685fe05def77b039221edf06c74af74915d536c5 (patch)
tree9c1a14b8f68bc0f801bdec3edc447d04fdbf7a4c /src/LevelSelectionScene.h
parent29eabac0670574efd384182c065f53d08c42a483 (diff)
downloadprism-685fe05def77b039221edf06c74af74915d536c5.tar.gz
prism-685fe05def77b039221edf06c74af74915d536c5.zip
Initial code commit
Added some stuff for project base - tiled sources - few Qt based classes for gfx
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