-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenemyprojectile.h
44 lines (34 loc) · 875 Bytes
/
enemyprojectile.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
#ifndef ENEMYPROJECTILE_H
#define ENEMYPROJECTILE_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 "thing.h"
class GameWindow;
/**
This class contains all data necessary to manage enemy projectile objects.
*/
class EnemyProjectile : public Thing
{
public:
EnemyProjectile(QPixmap &pixmap, GameWindow *parent, QGraphicsScene *scene);
~EnemyProjectile();
void setIntPos(int x, int y);
void setVelocity(int vx, int vy);
private:
QGraphicsScene *scene_;
GameWindow *parent_;
public slots:
void move();
};
#endif // ENEMYPROJECTILE_H