-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMenuSystem.h
More file actions
69 lines (54 loc) · 1.3 KB
/
MenuSystem.h
File metadata and controls
69 lines (54 loc) · 1.3 KB
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
68
69
#ifndef MENUSYSTEM_H
#define MENUSYSTEM_H
#include "GraphicsSystem.h"
#include "Font.h"
#include "Color.h"
#include <Trackable.h>
#include <vector>
#include <string>
using namespace std;
enum MenuType
{
MAIN,
OPTIONS,
PAUSE,
LOSE,
CREDITS
};
class MenuSystem : public Trackable
{
public:
MenuSystem();
~MenuSystem();
void draw(GraphicsSystem* graphics, MenuType type);
void update(const float frameTime, MenuType type);
// Public interface for controlling menu
void menuDown();
void menuUp();
void selectCurrentOption();
void cleanup();
private:
vector<string> mMainMenuOptions;
vector<string> mOptionsMenuOptions;
vector<string> mPauseMenuOptions;
vector<string> mCreditsMenuOptions;
vector<string> mLoseMenuOptions;
const string MAIN_MENU_TITLE = "Spoose Invooders";
const string PAUSE_MENU_TITLE = "Game Paused";
const string OPTIONS_MENU_TITLE = "Options";
const string CREDITS_MENU_TITLE = "Created By";
const string LOSE_MENU_TITLE = "Game Over";
const int Y_PADDING = 64;
const string CREDITS_MESSAGE = "Ben Russell & Stevie Ulfelder";
int mSelectedIndex, mOldIndex;
// TODO: add m, p in front of these
Font* mpHeaderFont;
Font* mpMainFont;
Color mBackgroundColor;
Color mUnselectedColor;
Color mSelectedColor;
Color mDrawColor;
void toggleDrawColor();
int mFrameNum;
};
#endif