-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMenu.hh
58 lines (52 loc) · 1.11 KB
/
Menu.hh
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
//
// Menu.hh for in /home/tolsa_c//svncapue/save
//
// Made by camille tolsa
// Login <tolsa_c@epitech.net>
//
// Started on Wed May 30 07:59:47 2012 camille tolsa
// Last update Sun Jun 3 22:43:39 2012 mathieu barnetche
//
#ifndef __MENU__
#define __MENU__
#include "BombermanCommon.hh"
class Menu
{
public:
Menu(std::string const&);
~Menu(){}
void setPos(int, int, int);
void initialize();
void init(Vector2d,Vector2d,Vector2d,Vector2d);
void initMenu();
void initCurseur();
int checkwd();
void draw();
void drawMain();
void drawNew();
void drawPlayer();
void drawLoad();
int update(gdl::Input&);
int updatePlayer(gdl::Input&);
int updateMain(gdl::Input&);
int updateNew(gdl::Input&);
int updateLoad(gdl::Input&);
void unload();
bool opt_random;
bool opt_xy;
int opt_x;
int opt_y;
gdl::Text fic;
std::string filename;
int nbPlay;
protected:
int which;
int choice;
Vector2d a;
Vector2d b;
Vector2d c;
Vector2d d;
gdl::Image img;
gdl::Text string[13];
};
#endif