summaryrefslogtreecommitdiffstats
path: root/examples/statemachine/tankgame/gameovertransition.h
blob: 53c9b863fc071db4286b31db7a9a261ca63c19c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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) const;

private:
    mutable QList<TankItem *> m_tankItems;
};

#endif