![]() |
FYP
1.0.0
Final Year Project -- Alexander Meuer
|
First menu shown to the user. More...
#include <MainMenu.hpp>


Public Member Functions | |
| MainMenu (tinyxml2::XMLElement *root) | |
| Constructs a menu from xml. More... | |
| bool | handleEvent (sf::Event &Event) override |
| Checks to see if buttons are being hovered over or clicked. | |
| void | update (sf::Time const &elapsedTime) override |
| Does nothing in this scene. | |
| void | draw (sf::RenderWindow &w) override |
| Draws background and buttons. | |
| void | cleanup () override |
| Stops the background music. | |
Private Attributes | |
| gui::DialogueBox | mQuitConfirmDialogue |
| sf::Sprite | mBackground |
| Background sprite. | |
| sf::Music | mMusic |
| Background music that will play in this scene. | |
| std::unique_ptr< gui::Button > | mStartButton |
| std::unique_ptr< gui::Button > | mCreditsButton |
| std::unique_ptr< gui::Button > | mOptionsButton |
| std::unique_ptr< gui::Button > | mQuitButton |
First menu shown to the user.
| MainMenu::MainMenu | ( | tinyxml2::XMLElement * | root | ) |
Constructs a menu from xml.
| root | Xml element, <Menu>, that contains button definitions and all other menu data. |