-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainMenuState.h
67 lines (60 loc) · 2.31 KB
/
MainMenuState.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
//////////////////////////////////////////////////////////////////////////
// Filename : MainMenuState.h
//
// Author : Ramon Johannessen (RJ)
//
// Purpose : The Main Menu will be the first menu loaded when the game
// starts. It will display all menu selections available.
//////////////////////////////////////////////////////////////////////////
#ifndef CMAINMENU_H
#define CMAINMENU_H
#include "BaseMenuState.h"
enum {PLAY, HOWTOPLAY, LOAD, OPTIONS, CREDITS, EXIT, NULL_END };
class CMainMenuState : CBaseMenuState
{
private:
CMainMenuState();
~CMainMenuState();
CMainMenuState(const CMainMenuState&);
CMainMenuState& operator= (const CMainMenuState&);
public:
//////////////////////////////////////////////////////////////////////////
// Function : GetInstance
//
// Purpose : Return the only instance of this object
//////////////////////////////////////////////////////////////////////////
CMainMenuState* GetInstance();
//////////////////////////////////////////////////////////////////////////
// Function : Update
//
// Purpose : Update the main menu
//////////////////////////////////////////////////////////////////////////
void Update(float fElapsedTime);
//////////////////////////////////////////////////////////////////////////
// Function : Render
//
// Purpose : Render the main menu
//////////////////////////////////////////////////////////////////////////
void Render();
//////////////////////////////////////////////////////////////////////////
// Function : Input
//
// Purpose : Handle any user input for this menu state, mouse or keyboard
//
// Return : true/false, false if we are exiting the game
//////////////////////////////////////////////////////////////////////////
bool Input();
//////////////////////////////////////////////////////////////////////////
// Function : Enter
//
// Purpose : Load the bg image, set up the sound, and all singletons used
//////////////////////////////////////////////////////////////////////////
void Enter();
//////////////////////////////////////////////////////////////////////////
// Function : Exit
//
// Purpose : Clean up any dynamic memory, release textures, etc...
//////////////////////////////////////////////////////////////////////////
void Exit();
};
#endif