-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainMenuState.h
More file actions
44 lines (37 loc) · 902 Bytes
/
MainMenuState.h
File metadata and controls
44 lines (37 loc) · 902 Bytes
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
///
/// @brief Defines the class that actively handles the main menu.
/// @author James Rhodes
///
#ifndef __MIR_MAIN_MENU_STATE_H
#define __MIR_MAIN_MENU_STATE_H
#include "Engine.h"
#include "BaseState.h"
///
/// @brief Monitors and updates the main menu.
///
class MainMenuState : public BaseState
{
private:
bool m_Blink;
std::string m_Status;
int m_RenderSteps;
public:
MainMenuState(Engine* engine)
: BaseState(engine), ErrorMessage("") { }
virtual void Activate();
virtual void Deactivate();
virtual void Render();
virtual void Update();
std::string ErrorMessage;
// Private variables, but must be exposed for C handlers.
std::string m_KeyboardBuffer;
typedef enum
{
STATE_INPUT,
STATE_RESOLVING,
STATE_CONNECTING,
STATE_SWITCHING
} MainMenuStateEnum;
MainMenuStateEnum m_State;
};
#endif