summaryrefslogtreecommitdiffstats
path: root/examples/statemachine/tankgame/gameovertransition.h
blob: 9a86b836afb99b3c294905be6351c7042859ab95 (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);

private:
    QList<TankItem *> m_tankItems;
};

#endif