Bandidos
|
Public Member Functions | |
BaseScenesManager (RenderComponents renderComponents) | |
void | update (float dt) |
void | render () |
void | setScene (int sceneId) |
RenderComponents | getRenderComponents () |
Protected Member Functions | |
abstract BaseScene | getScene (int sceneId) |
The BaseScenesManager is the system which controls the switching of scenes. This class must be inherited to specify the scenes which are able to be switched to. These scenes are defined in the 'getScene' method.
com.mygdx.game.engine.scenes.BaseScenesManager.BaseScenesManager | ( | RenderComponents | renderComponents | ) |
RenderComponents com.mygdx.game.engine.scenes.BaseScenesManager.getRenderComponents | ( | ) |
The Render Components available to the current scene to render its assets with.
|
abstractprotected |
This method will return a new instance of a scene. The scene to return is specified by the extending class.
sceneId | to determine the returning Scene by. |
void com.mygdx.game.engine.scenes.BaseScenesManager.render | ( | ) |
This method will be called every frame after the 'update' method as long as the application is active.
void com.mygdx.game.engine.scenes.BaseScenesManager.setScene | ( | int | sceneId | ) |
Sets the current scene to the scene which is given by the 'getScene' method.
sceneId | of scene wanting to set. Specified by the extending class. |
void com.mygdx.game.engine.scenes.BaseScenesManager.update | ( | float | dt | ) |
This method will be called every frame as long as the application is active.
dt | stands for the deltaTime passed. |