summaryrefslogtreecommitdiffstats
path: root/examples/animation/sub-attaq/boat.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/boat.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/boat.h')
-rw-r--r--examples/animation/sub-attaq/boat.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/animation/sub-attaq/boat.h b/examples/animation/sub-attaq/boat.h
index b8d5772..44de367 100644
--- a/examples/animation/sub-attaq/boat.h
+++ b/examples/animation/sub-attaq/boat.h
@@ -57,6 +57,8 @@
class PixmapItem;
class Bomb;
class QVariantAnimation;
+class QAbstractAnimation;
+class QStateMachine;
class Boat : public QGraphicsWidget
{
@@ -71,6 +73,8 @@ public:
enum { Type = UserType + 2 };
Boat(QGraphicsItem *parent = 0, Qt::WindowFlags wFlags = 0);
void destroy();
+ void run();
+ void stop();
int bombsLaunched() const;
void setBombsLaunched(int number);
@@ -94,6 +98,8 @@ private:
int bombsAlreadyLaunched;
Movement direction;
QVariantAnimation *movementAnimation;
+ QAbstractAnimation *destroyAnimation;
+ QStateMachine *machine;
PixmapItem *pixmapItem;
};