forked from dzui42unit/pacman
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gameclass.h
51 lines (48 loc) · 1.68 KB
/
gameclass.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
50
51
#ifndef GAMECLASS_H
#define GAMECLASS_H
#include <fstream>
#include <string>
#include <ctime>
#include <random>
#include <vector>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <QTimer>
#include <QObject>
#include <QApplication>
#include <QGraphicsView>
#include <QGraphicsScene>
#include <QGraphicsPixmapItem>
#include "pacman.h"
#include "ghost.h"
#include "blinky.h"
#include "pinky.h"
#include "clyde.h"
#include "inky.h"
class GameLoop : public QGraphicsView
{
private:
QGraphicsScene *scene;
QGraphicsView *view;
QGraphicsPixmapItem **map_pix;
PacMan *pacman;
Blinky *blinky;
Pinky *pinky;
Clyde *clyde;
Inky *inky;
int **map_int;
QTimer *timer_pacman;
QTimer *timer_blinky;
QTimer *timer_pinky;
QTimer *timer_clyde;
QTimer *timer_inky;
public:
GameLoop(char *file_name);
~GameLoop();
void ft_write_line_map(int *map, std::string str);
void ft_roll_game();
void ft_create_map();
int ft_check_file_inp(std::string str);
};
#endif // GAMECLASS_H