-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgame.h
50 lines (40 loc) · 1003 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
40
41
42
43
44
45
46
47
48
49
50
#ifndef GAME_H
#define GAME_H
#include <QGraphicsView>
#include <QWidget>
#include <QGraphicsScene>
#include <QGraphicsRectItem>
#include <QVector>
#include "goomba_mob.h"
#include "floor_block.h"
#include "mystery_block.h"
#include "brick_block.h"
#include "player.h"
#include "iobserver.h"
#include "isubject.h"
class Game : public QGraphicsView, public IObserver
{
public:
Game(ISubject &gLoop, QWidget *parent = 0);
QGraphicsScene * scene;
void check_mario_center_screen();
void update() override;
private:
void assemble_blocks();
void assemble_scenery();
void moveScreen(double quant);
QList <Goomba_Mob *> goombas_mobs;
bool add_goomba1 = false;
bool add_goomba2 = false;
bool add_goomba3 = false;
bool add_goomba4 = false;
bool add_goomba5 = false;
bool add_goomba6 = false;
bool add_goomba7 = false;
Player *player;
ISubject &gameLoop;
int floor = 416;
int lvl1 = 288;
int lvl2 = 160;
};
#endif // GAME_H