forked from Sicatriz/CppGame
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbullet.h
42 lines (33 loc) · 973 Bytes
/
bullet.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
#ifndef BULLET_H
#define BULLET_H
#include <QGraphicsItem>
#include <QGraphicsPixmapItem>
#include <QObject>
#include <QTimer>
#include <QGraphicsScene>
#include <QList>
#include "score.h"
#include "movableObjects.h"
#include <qmediaplayer.h>
#include <QAudioOutput>
/*******************************************/
/*******************************************/
/*** BULLET CLASS (is a movable object) ***/
/*******************************************/
/*******************************************/
namespace insemi
{
class Bullet: public MovableObjects /****1 usefull and correct class ****/
{
Q_OBJECT // is a Q object / movable object
public:
Bullet(QGraphicsItem * parent=0);
/*** argumented constructor ****/
Bullet(QGraphicsItem * parent=0, int xas =0, int yas=0, Score* scoore = 0);
Score* score;
public slots: //slots let's you connect signals to your function.
//bullet movement function
void move();
};
}
#endif // BULLET_H