Bandidos
Public Member Functions | Protected Member Functions | List of all members
com.mygdx.game.engine.scenes.BaseScenesManager Class Referenceabstract
Inheritance diagram for com.mygdx.game.engine.scenes.BaseScenesManager:
com.mygdx.game.scenes.GameScenesManager

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)
 

Detailed Description

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.

Author
Ramses Di Perna

Constructor & Destructor Documentation

◆ BaseScenesManager()

com.mygdx.game.engine.scenes.BaseScenesManager.BaseScenesManager ( RenderComponents  renderComponents)

Member Function Documentation

◆ getRenderComponents()

RenderComponents com.mygdx.game.engine.scenes.BaseScenesManager.getRenderComponents ( )

The Render Components available to the current scene to render its assets with.

Returns
returns the RenderComponents given in this class's constructor.

◆ getScene()

abstract BaseScene com.mygdx.game.engine.scenes.BaseScenesManager.getScene ( int  sceneId)
abstractprotected

This method will return a new instance of a scene. The scene to return is specified by the extending class.

Parameters
sceneIdto determine the returning Scene by.
Returns
Instance of Scene which represents the sceneId

◆ render()

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.

◆ setScene()

void com.mygdx.game.engine.scenes.BaseScenesManager.setScene ( int  sceneId)

Sets the current scene to the scene which is given by the 'getScene' method.

Parameters
sceneIdof scene wanting to set. Specified by the extending class.

◆ update()

void com.mygdx.game.engine.scenes.BaseScenesManager.update ( float  dt)

This method will be called every frame as long as the application is active.

Parameters
dtstands for the deltaTime passed.

The documentation for this class was generated from the following file: