-
Notifications
You must be signed in to change notification settings - Fork 0
/
bomb.h
49 lines (35 loc) · 840 Bytes
/
bomb.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef BOMB_H
#define BOMB_H
#include <QObject>
#include <QGraphicsPixmapItem>
#include <QTimer>
#include <QApplication>
#include <QCoreApplication>
#include <QGraphicsTextItem>
#include <QGraphicsProxyWidget>
#include <QPushButton>
#include <QGraphicsView>
#include <QProcess>
class QGraphicsScene;
class Explosion;
class Bomb : public QObject, public QGraphicsPixmapItem
{
Q_OBJECT
public:
Bomb(QGraphicsScene* scene, QGraphicsItem* parent = nullptr);
void handleExplosionExpired();
private slots:
void explode();
void handleExplosionFinished();
void handlePlayButton();
signals:
void expired();
private:
QTimer* timer;
QAction *actionReboot;
QGraphicsScene* resultScene;
Explosion* explosion;
QPushButton* playButton;
void handleExitButtonClicked();
};
#endif // BOMB_H