-
Notifications
You must be signed in to change notification settings - Fork 0
/
PlayScreen.h
58 lines (50 loc) · 1.4 KB
/
PlayScreen.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
52
53
54
55
56
57
58
/**
* Copyright (C) Kevin J. Estevez (kenystev) and Luis C. Isaula (lisaula)
*
* GNU GENERAL PUBLIC LICENSE Version 2
* The licenses for most software are designed to take away your
* freedom to share and change it. By contrast, the GNU General Public
* License is intended to guarantee your freedom to share and change free
* software--to make sure the software is free for all its users. This
* General Public License applies to most of the Free Software
* Foundation's software and to any other program whose authors commit to
* using it.
*/
#ifndef PLAYSCREEN_H
#define PLAYSCREEN_H
#include "Screen.h"
#include "Game.h"
#include "Pista.h"
#include "Car.h"
#include "Font.h"
#include <map>
#include "Buttons.h"
#include "Scores.h"
class PlayScreen : public Screen
{
public:
BackButton* back_button;
Image* background, *bu, *bd,*G_over;
bool finish;
string n="";
int time, num_rt;
Scores *scr;
Pista *track;
Car *player_car;
map<int,Car*> cars;
Font *display_laps;
Game *game;
PlayScreen(Game*);
void loadCars(string);
void show ();
void render (RosalilaGraphics*);
// void resize (int width, int height);
void pause ();
void resume ();
void hide ();
void dispose ();
virtual ~PlayScreen();
protected:
private:
};
#endif // PLAYSCREEN_H