-
Notifications
You must be signed in to change notification settings - Fork 0
/
Buttons.h
101 lines (90 loc) · 2.58 KB
/
Buttons.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
/**
* 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 BUTTONS_H
#define BUTTONS_H
#include "Button.h"
#include "Game.h"
class CarButton : public Button
{
public:
int num;
CarButton(int num,int x_position, int y_position, Image* up, Image* down, RosalilaGraphics* painter);
void funcionamiento();
virtual ~CarButton();
protected:
private:
};
class TrackButton : public Button
{
public:
string name;
int num_pista;
TrackButton(int i,string name,int x_position, int y_position, Image* up, Image* down, RosalilaGraphics* painter);
void funcionamiento();
virtual ~TrackButton();
};
class PlayButton : public Button
{
public:
Game* game;
void funcionamiento();
PlayButton(int x_position, int y_position, Image* up, Image* down,RosalilaGraphics* painter, Game* game);
PlayButton();
virtual ~PlayButton();
protected:
private:
};
class BackButton : public Button
{
public:
Game* game;
void funcionamiento();
BackButton(int x_position, int y_position, Image* up, Image* down,RosalilaGraphics* painter,Game*);
BackButton();
virtual ~BackButton();
protected:
private:
};
class ExitButton: public Button
{
public:
void funcionamiento();
ExitButton(int x_position, int y_position, Image* up, Image* down,RosalilaGraphics* painter);
ExitButton();
virtual ~ExitButton();
protected:
private:
};
class InstrButton : public Button
{
public:
Game *game;
void funcionamiento();
InstrButton(int x_position, int y_position, Image* up, Image* down,RosalilaGraphics* painter, Game* game);
InstrButton();
virtual ~InstrButton();
protected:
private:
};
class RankButton : public Button
{
public:
Game *game;
void funcionamiento();
RankButton(int x_position, int y_position, Image* up, Image* down,RosalilaGraphics* painter, Game* game);
RankButton();
virtual ~RankButton();
protected:
private:
};
#endif // BUTTONS_H