-
Notifications
You must be signed in to change notification settings - Fork 0
/
bouton.h
37 lines (32 loc) · 827 Bytes
/
bouton.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
#ifndef BOUTON_H
#define BOUTON_H
#include "rect.h"
#include <iostream>
#include <allegro.h>
using namespace std;
class bouton : public rectangle
{
public:
bouton();
bouton(float, float, char*);
~bouton();
bouton(const bouton&);
bouton& operator=(const bouton&);
void init(char*);
void affiche();
int selection();
string Getch() { return ch; }
void Setch(string val) { ch = val; }
int Getnb() { return nb; }
void Setnb(int val) { nb = val; }
float Getxch() { return xch; }
void Setxch(float val) { xch = val; }
float Getych() { return ych; }
void Setych(float val) { ych = val; }
protected:
string ch;
int nb;
float xch;
float ych;
};
#endif // BOUTON_H