-
Notifications
You must be signed in to change notification settings - Fork 1
/
playernamemenu.h
38 lines (33 loc) · 1.01 KB
/
playernamemenu.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
#ifndef __PLAYER_NAME_MENU__
#define _PLAYER_NAME_MENU__
#include "input.h"
#include "clickablebutton.h"
#include "resourcemgr.h"
class PlayerNameMenu
{
private:
Input* input;
Window* window;
ResourceMgr* resourceMgr;
bool isOpen;
vector< ClickableButton > buttons;
bool initStart;
bool inFieldHighlighted;
bool gatherInput;
string player;
int numInput;
int clickNum;
bool finished;
public:
PlayerNameMenu();
void checkInput();
void draw();
void open();
bool inMenu();
bool isStart();
void saveName();
void createNewProfile( string name );
bool isNewName( string desiredName );
~PlayerNameMenu();
};
#endif