FYP  1.0.0
Final Year Project -- Alexander Meuer
SettingsMenu Class Reference
Inheritance diagram for SettingsMenu:
Inheritance graph
Collaboration diagram for SettingsMenu:
Collaboration graph

Public Member Functions

 SettingsMenu (tinyxml2::XMLElement *xml)
 
bool handleEvent (sf::Event &Event) override
 
void update (sf::Time const &elapsedTime) override
 
void draw (sf::RenderWindow &w) override
 
void cleanup () override
 

Private Member Functions

void updateAll (const int mouseX, const int mouseY)
 

Private Attributes

gui::DialogueBox mSaveChangesDialogueBox
 
bool mSettingsChanged
 
const sf::Sprite mBackdrop
 
sf::Music mBgMusic
 
gui::Button mBackButton
 
std::map< std::string, gui::SlidermSliders
 Map of setting names to sliders.
 
std::list< sf::Text > mLabels
 Map of setting names to buttons. More...
 

Member Function Documentation

void SettingsMenu::draw ( sf::RenderWindow &  w)
overridevirtual

Should draw the scene to the renderwindow

Parameters
wThe RenderWindow that the scene should be drawn to.

Implements I_Scene.

bool SettingsMenu::handleEvent ( sf::Event &  Event)
overridevirtual
Parameters
EventThe event to be handled.
Returns
True if the event has been processed, false if the event is not processed or required.

Implements I_Scene.

void SettingsMenu::update ( sf::Time const &  elapsedTime)
overridevirtual
Parameters
elapsedTimeThe amount of time that has past since the last time update was called.

Implements I_Scene.

Member Data Documentation

std::list<sf::Text> SettingsMenu::mLabels
private

Map of setting names to buttons.

List of labels


The documentation for this class was generated from the following file: