-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenemylongrange.h
43 lines (34 loc) · 909 Bytes
/
enemylongrange.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 ENEMYLONGRANGE_H
#define ENEMYLONGRANGE_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 long-range enemy objects.
*/
class EnemyLongRange : public Thing
{
public:
EnemyLongRange(QPixmap &pixmap, GameWindow *parent, QGraphicsScene *scene);
~EnemyLongRange();
private:
QGraphicsScene *scene_;
GameWindow *parent_;
/** This is the maximum distance from the top of the screen that this enemy will travel */
int yBarrier;
public slots:
void move();
};
#endif // ENEMYLONGRANGE_H