summaryrefslogtreecommitdiffstats
path: root/examples/statemachine/tankgame/gameovertransition.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/statemachine/tankgame/gameovertransition.h')
-rw-r--r--examples/statemachine/tankgame/gameovertransition.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/examples/statemachine/tankgame/gameovertransition.h b/examples/statemachine/tankgame/gameovertransition.h
new file mode 100644
index 0000000..9a86b83
--- /dev/null
+++ b/examples/statemachine/tankgame/gameovertransition.h
@@ -0,0 +1,22 @@
+#ifndef GAMEOVERTRANSITION_H
+#define GAMEOVERTRANSITION_H
+
+#include <QSignalTransition>
+
+class TankItem;
+class GameOverTransition: public QSignalTransition
+{
+ Q_OBJECT
+public:
+ GameOverTransition(QAbstractState *targetState);
+
+ void addTankItem(TankItem *tankItem);
+
+protected:
+ bool eventTest(QEvent *event);
+
+private:
+ QList<TankItem *> m_tankItems;
+};
+
+#endif