-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmuk.h
44 lines (37 loc) · 815 Bytes
/
muk.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
/**@file muk.h
* @brief declaration for the muk class
*
* Contains the declarations of the member funcitons.
*/
#ifndef MUK_H
#define MUK_H
#include <QObject>
#include <QGraphicsPixmapItem>
#include <QGraphicsItem>
#include <QTimer>
#include <QMediaPlayer>
#include "ash.h"
/**@class Muk
* This class deals with the enemy Muk in the game.
* @brief The Muk class constructs an object type.
*/
class Muk : public QObject, public QGraphicsPixmapItem
{
Q_OBJECT
public:
explicit Muk(QGraphicsItem *parent = 0);
void setAsh(Ash* player);
void start_movement();
signals:
public slots:
void attack();
void left();
void right();
void move_horizontal();
private:
QTimer* muk_timer;
QTimer* movement_timer;
QMediaPlayer* attack_sound;
Ash* ash;
};
#endif // MUK_H