|
R-Type 0.1
|
Title screen, which waits for the Confirm action. More...
#include <scene/menuScene.hpp>
Public Member Functions | |
| MenuScene (rtk::RenderWindow &window) | |
| Creates the scene. | |
| void | onEnter (rtk::EngineContext &context) |
| Shows the menu picture. | |
| std::optional< SceneType > | onUpdate (rtk::EngineContext &context, const rtk::InputState &inputState, float dt) |
| Goes to the connection scene when Confirm is pressed. | |
| void | onExit (rtk::EngineContext &context) |
| Destroys the menu entities. | |
Static Public Attributes | |
| static constexpr SceneType | Type = SceneType::Menu |
| Identifier of this scene. | |
Title screen, which waits for the Confirm action.
|
explicit |
Creates the scene.
| window | Window used to load the menu texture. |
| void rtype::client::MenuScene::onEnter | ( | rtk::EngineContext & | context | ) |
Shows the menu picture.
| context | Engine services. |
| std::optional< SceneType > rtype::client::MenuScene::onUpdate | ( | rtk::EngineContext & | context, |
| const rtk::InputState & | inputState, | ||
| float | dt ) |
Goes to the connection scene when Confirm is pressed.
| context | Engine services. |
| inputState | Input state of the frame. |
| dt | Elapsed time since the last frame, in seconds. |
| void rtype::client::MenuScene::onExit | ( | rtk::EngineContext & | context | ) |
Destroys the menu entities.
| context | Engine services. |