-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMenu.h
46 lines (40 loc) · 1.05 KB
/
Menu.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
/*****************************************************************//**
* \file Menu.h
* \brief Menu Screen. Go to game options or settings screen
*
* \author Chau Le
* \date July 2021
*********************************************************************/
#ifndef MENU_H
#define MENU_H
#include "StateScreen.h"
#include "Utils.h"
#include <SFML/Graphics.hpp>
#include "StateManager.h"
#include "GameOptions.h"
#include "Settings.h"
#include "MapEditorSelect.h"
/**
* Controls menu screen.
*/
class Menu : public StateScreen
{
private:
sf::Text text;
sf::Sprite buttonImage;
Button beginButton;
Button beatmapButton;
Button tutorialButton;
Button settingsButton;
Button exitButton;
public:
Menu(StateManager &stateManager);
~Menu();
// StateScreen functions
//**************************************************
void tick(const float & dt, sf::RenderWindow& window);
void render(sf::RenderWindow& window);
void keyEvent(const float & dt, sf::Event event);
void mouseEvent(const float & dt, sf::RenderWindow& window, sf::Event event);
};
#endif