diff options
author | Alexis Menard <alexis.menard@nokia.com> | 2009-04-24 15:04:19 (GMT) |
---|---|---|
committer | Alexis Menard <alexis.menard@nokia.com> | 2009-04-24 15:04:19 (GMT) |
commit | a8cce89940e42fb05efef049122286652bae61e3 (patch) | |
tree | 071e9e59bf3871d4261487bd34e3b205654a4fdf /examples/animation/sub-attaq/graphicsscene.h | |
parent | dfe6974c1e7103ad46fa1162d7c9fd6a426894b7 (diff) | |
download | Qt-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.h | 5 |
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__ |