-
Notifications
You must be signed in to change notification settings - Fork 0
/
game.h
39 lines (38 loc) · 821 Bytes
/
game.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
#ifndef GAME_H
#define GAME_H
#include <QGraphicsView>
#include <QGraphicsScene>
#include "pacman.h"
#include "lives.h"
#include <score.h>
#include "pellets.h"
#include "superpellets.h"
#include "ghost.h"
#include <QMediaPlayer>
#include "fruit.h"
class Game: public QGraphicsView
{
Q_OBJECT
public:
Game();
QGraphicsScene *scene;
int boardData[31][28];
Lives *lives;
QVector<QGraphicsPixmapItem*> *vec;
Score *score;
pellets *pellet[31][28];
superPellets *super[4];
ghost *ghosts[3];
Pacman *pacman;
void deletelife();
void initializeghosts();
void starttimer();
QTimer *fruittimer, *fruittimer2;
QMediaPlayer *player;
Fruit *fruit;
QVector<int> rowsvec, colsvec;
public slots:
void createfruit();
void destroyfruit();
};
#endif // GAME_H