-
Notifications
You must be signed in to change notification settings - Fork 0
/
fireball.h
38 lines (35 loc) · 839 Bytes
/
fireball.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
#ifndef FIREBALL_H
#define FIREBALL_H
#include <QObject>
#include <QGraphicsPixmapItem>
/** @class fireball
* @brief The fireball class represents the projectiles for enemies such as bosses.
*/
class fireball : public QObject, public QGraphicsPixmapItem
{
Q_OBJECT
public:
/**
* @brief fireball constructor
* @param value controls the direction of the fireball's motion
*
* value:
* value == 0 for up motion \n
* value == 1 for down motion \n
* value == 2 for left motion \n
* value == 3 for right motion \n
*/
fireball(int value);
/**
* @brief fireball destructor
*/
~fireball();
private:
int direction;
public slots:
/**
* @brief move is a custom slot that controls the motion of the fireball
*/
void move();
};
#endif // FIREBALL_H