EchoesOfFate
A game for our COMP315 Project
 
Loading...
Searching...
No Matches
MainMenuState.h
Go to the documentation of this file.
1#pragma once
2#include "State.h"
3#include "Button.h"
4
5class MainMenuState : public State
6{
7public:
9 MainMenuState(sf::RenderWindow& window);
11
12 void update(sf::RenderWindow& window, StateManager& stateManager) override;
13 void render(sf::RenderWindow& window) override;
14
15private:
16 sf::Font font;
17 sf::Text enterText;
20 Button playButton, aboutButton, tutorialButton, settingsButton, exitButton;
21 sf::Clock clock;
22 int cutsceneCount = 0;
23 bool ePressed = false;
24 void adjustScale();
25};
Definition Button.h:8
MainMenuState(sf::RenderWindow &window)
Constructor/Destructor.
Definition MainMenuState.cpp:10
void update(sf::RenderWindow &window, StateManager &stateManager) override
Used for handling input and game updates.
Definition MainMenuState.cpp:46
~MainMenuState()
Definition MainMenuState.cpp:43
void render(sf::RenderWindow &window) override
Renders current state.
Definition MainMenuState.cpp:131
Definition State.h:16
All the possible states included here to make switching easier.
Definition StateManager.h:14