-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbeedril.h
49 lines (42 loc) · 978 Bytes
/
beedril.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
47
48
49
/**@file beedril.h
* @brief declaration for the beedril class
*
* Contains the declarations of the member funcitons.
*/
#ifndef BEEDRIL_H
#define BEEDRIL_H
#include <QObject>
#include <QGraphicsPixmapItem>
#include <QGraphicsItem>
#include <QTimer>
#include <QMediaPlayer>
#include "ash.h"
/**@class Beedril
* This class deals with the moving enemy Beedril in the game.
* @brief The Beedril class constructs an object type.
*/
class Beedril : public QObject, public QGraphicsPixmapItem
{
Q_OBJECT
public:
explicit Beedril(QGraphicsItem *parent = 0);
void setAsh(Ash* player);
void set_vertical();
void start_movement();
signals:
public slots:
void attack();
void up();
void down();
void left();
void right();
void move_vertical();
void move_horizontal();
private:
QTimer* beedril_timer;
QTimer* movement_timer;
bool isVertical = false;
QMediaPlayer* attack_sound;
Ash* ash;
};
#endif // BEEDRIL_H