-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexplosion.h
43 lines (36 loc) · 922 Bytes
/
explosion.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
#ifndef EXPLOSION_H
#define EXPLOSION_H
#include <QtGui/QMainWindow>
#include <QGraphicsScene>
#include <QGraphicsView>
#include <QGraphicsRectItem>
#include <QTimer>
#include <QTimeLine>
#include <QGraphicsItemAnimation>
#include <QPushButton>
#include <QTextEdit>
#include <QLineEdit>
#include <QListView>
#include <QGraphicsSimpleTextItem>
#include <QGraphicsSceneMouseEvent>
#include <sstream>
#include "thing.h"
class GameWindow;
/**
This class contains all data necessary to manage explosion objects, which will be created when collisions occur and destroyed soon after.
*/
class Explosion : public Thing
{
public:
Explosion(QPixmap &pixmap, GameWindow *parent, QGraphicsScene *scene);
~Explosion();
void setIntPos(int x, int y);
void makeLinger();
bool linger;
private:
QGraphicsScene *scene_;
GameWindow *parent_;
public slots:
void move();
};
#endif // EXPLOSION_H