EchoesOfFate
A game for our COMP315 Project
Loading...
Searching...
No Matches
SettingMenuState.h
Go to the documentation of this file.
1
#pragma once
2
#include "
State.h
"
3
4
class
PauseMenuState
;
5
6
class
SettingMenuState
{
7
private
:
8
bool
soundOn;
9
float
volume;
10
sf::Font font;
11
sf::Text soundButton;
12
sf::Text backButton;
13
sf::Music* m;
14
15
16
public
:
17
SettingMenuState
();
18
void
setupButton
(sf::Text& button,
const
std::string& label,
float
x,
float
y);
19
void
handleClick
(sf::RenderWindow& window);
20
void
draw
(sf::RenderWindow& window);
21
void
toggleSound
();
22
bool
isSoundOn
()
const
;
23
void
setMusicReference
(sf::Music& music);
24
void
setMenuReference
(
PauseMenuState
* menuPtr);
25
PauseMenuState
*
menu
;
26
27
};
State.h
PauseMenuState
Definition
PauseMenuState.h:8
SettingMenuState::setupButton
void setupButton(sf::Text &button, const std::string &label, float x, float y)
Definition
SettingMenuState.cpp:19
SettingMenuState::SettingMenuState
SettingMenuState()
Please note this is a Very old version of the options Needs to work with the new audio manager class.
Definition
SettingMenuState.cpp:7
SettingMenuState::setMusicReference
void setMusicReference(sf::Music &music)
Definition
SettingMenuState.cpp:72
SettingMenuState::menu
PauseMenuState * menu
New function to set menu reference.
Definition
SettingMenuState.h:25
SettingMenuState::toggleSound
void toggleSound()
Definition
SettingMenuState.cpp:49
SettingMenuState::isSoundOn
bool isSoundOn() const
Definition
SettingMenuState.cpp:69
SettingMenuState::draw
void draw(sf::RenderWindow &window)
Definition
SettingMenuState.cpp:44
SettingMenuState::handleClick
void handleClick(sf::RenderWindow &window)
Definition
SettingMenuState.cpp:27
SettingMenuState::setMenuReference
void setMenuReference(PauseMenuState *menuPtr)
Definition
SettingMenuState.cpp:75
EchosOfTime
SettingMenuState.h
Generated by
1.13.2