|
Study Dungeon
1.0.0
A group project for COSC345
|
Class for a scene to show the program instructions. More...
#include <howto_scene.h>
Public Member Functions | |
| HowToScene (ConsoleUI::UIManager &uiManager, std::function< void()> goBack) | |
| Construct a new HowTo Scene object. More... | |
| void | update () override |
| function for continuous updates to the program state seperate from rendering and input handling | |
| void | render (std::shared_ptr< ConsoleUI::ConsoleWindow > window) override |
| renders the scene on the console window More... | |
| void | init () |
| Initialise the scene. | |
| void | handleInput () override |
| Handle the input for the scene. | |
| void | setStaticDrawn (bool staticDrawn) override |
| Sets the static drawn state of the scene. More... | |
Public Member Functions inherited from ConsoleUI::Scene | |
| virtual | ~Scene ()=default |
| Destroy the Scene object. | |
Class for a scene to show the program instructions.
| HowToScene::HowToScene | ( | ConsoleUI::UIManager & | uiManager, |
| std::function< void()> | goBack | ||
| ) |
Construct a new HowTo Scene object.
| uiManager | reference to the current UI mananger object |
| goBack | a function to go back a scene |
|
overridevirtual |
renders the scene on the console window
| window | shared pointer to the console window that is rendered on |
draws the title of the scene, sets up a counter for the current number of the fib sequence and draws the buttons: reset, update and back.
Implements ConsoleUI::Scene.
|
overridevirtual |
Sets the static drawn state of the scene.
| staticDrawn | Boolean indicating whether the static elements have been drawn. |
Implements ConsoleUI::Scene.