summaryrefslogtreecommitdiffstats
path: root/examples/animation/sub-attaq/graphicsscene.h
diff options
context:
space:
mode:
authorAlexis Menard <alexis.menard@nokia.com>2009-04-24 15:04:19 (GMT)
committerAlexis Menard <alexis.menard@nokia.com>2009-04-24 15:04:19 (GMT)
commita8cce89940e42fb05efef049122286652bae61e3 (patch)
tree071e9e59bf3871d4261487bd34e3b205654a4fdf /examples/animation/sub-attaq/graphicsscene.h
parentdfe6974c1e7103ad46fa1162d7c9fd6a426894b7 (diff)
downloadQt-a8cce89940e42fb05efef049122286652bae61e3.zip
Qt-a8cce89940e42fb05efef049122286652bae61e3.tar.gz
Qt-a8cce89940e42fb05efef049122286652bae61e3.tar.bz2
Add an OSD to display game progress in the scene
Diffstat (limited to 'examples/animation/sub-attaq/graphicsscene.h')
-rw-r--r--examples/animation/sub-attaq/graphicsscene.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/animation/sub-attaq/graphicsscene.h b/examples/animation/sub-attaq/graphicsscene.h
index 875f59f..bc9734c 100644
--- a/examples/animation/sub-attaq/graphicsscene.h
+++ b/examples/animation/sub-attaq/graphicsscene.h
@@ -58,6 +58,7 @@ class SubMarine;
class Torpedo;
class Bomb;
class PixmapItem;
+class ProgressItem;
class QAction;
class GraphicsScene : public QGraphicsScene
@@ -109,6 +110,7 @@ private slots:
private:
Mode mode;
PixmapItem *backgroundItem;
+ ProgressItem *progressItem;
QAction * newAction;
QAction * quitAction;
Boat *boat;
@@ -121,8 +123,11 @@ private:
friend class PauseState;
friend class PlayState;
+ friend class LevelState;
friend class LostState;
friend class WinState;
+ friend class WinTransition;
+ friend class UpdateScoreTransition;
};
#endif //__GRAPHICSSCENE__H__