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
4class PauseMenuState;
5
7private:
8 bool soundOn;
9 float volume;
10 sf::Font font;
11 sf::Text soundButton;
12 sf::Text backButton;
13 sf::Music* m;
14
15
16public:
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);
26
27};
Definition PauseMenuState.h:8
void setupButton(sf::Text &button, const std::string &label, float x, float y)
Definition SettingMenuState.cpp:19
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
void setMusicReference(sf::Music &music)
Definition SettingMenuState.cpp:72
PauseMenuState * menu
New function to set menu reference.
Definition SettingMenuState.h:25
void toggleSound()
Definition SettingMenuState.cpp:49
bool isSoundOn() const
Definition SettingMenuState.cpp:69
void draw(sf::RenderWindow &window)
Definition SettingMenuState.cpp:44
void handleClick(sf::RenderWindow &window)
Definition SettingMenuState.cpp:27
void setMenuReference(PauseMenuState *menuPtr)
Definition SettingMenuState.cpp:75