The SceneManager takes care of scene transitions, preserving scene states and everything else to maintain and ensure the control flow between different scenes.
The scene stack.
A sdl2.ext.events.EventHandler that is invoked, when a new Scene is started.
Pushes a new Scene to the scene stack.
The current scene will be put on the scene stack for later execution, while the passed scene will be set as current one. Once the newly pushed scene has ended or was paused, the previous scene will continue its execution.
Pops a scene from the scene stack, bringing it into place for being executed on the next update.
Updates the scene state and switches to the next scene, if any has been pushed into place.
A simple scene state object used to maintain the application workflow based on the presentation of an application.
The SceneManager, the Scene is currently executed on.
Note
This will be set automatically on starting the Scene by the SceneManager. If the Scene is ended, it will be reset.
The current scene state.
A sdl2.ext.events.EventHandler that is invoked, when the Scene starts.
A sdl2.ext.events.EventHandler that is invoked, when the Scene is paused.
A sdl2.ext.events.EventHandler that is invoked, when the Scene is unpaused.
A sdl2.ext.events.EventHandler that is invoked, when the Scene ends.
Indicates, if the scene is currently running.
Indicates, if the scene is currently paused.
Indicates, if the scene has ended.