Bandidos
Public Member Functions | Protected Member Functions | List of all members
com.mygdx.game.engine.scenes.BaseScene Class Referenceabstract
Inheritance diagram for com.mygdx.game.engine.scenes.BaseScene:
com.mygdx.game.scenes.GameScene com.mygdx.game.scenes.LoadScene com.mygdx.game.scenes.MenuScene

Public Member Functions

void Initialize (BaseScenesManager manager)
 
void destroy ()
 
abstract void update (float dt)
 
abstract void render ()
 

Protected Member Functions

abstract void created ()
 
abstract void destroyed ()
 
BaseScenesManager getScenesManager ()
 
RenderComponents getRenderComponents ()
 

Detailed Description

The BaseScene is a class to extend to create game specific scenes which can be used in the BaseScenesManager

Author
Ramses Di Perna

Member Function Documentation

◆ created()

abstract void com.mygdx.game.engine.scenes.BaseScene.created ( )
abstractprotected

This method will be called when the class is initialized.

◆ destroy()

void com.mygdx.game.engine.scenes.BaseScene.destroy ( )

This method is called by the BaseScenesManager when the current scene is being destroyed

◆ destroyed()

abstract void com.mygdx.game.engine.scenes.BaseScene.destroyed ( )
abstractprotected

This method is called by the BaseScenesManager when the current scene is being destroyed Here all the cleaning logic of the class must be created.

◆ getRenderComponents()

RenderComponents com.mygdx.game.engine.scenes.BaseScene.getRenderComponents ( )
protected

◆ getScenesManager()

BaseScenesManager com.mygdx.game.engine.scenes.BaseScene.getScenesManager ( )
protected

Getter for the BaseScenesManager parent of the scene.

Returns
the BaseScenesManager which was given at the initialization of this class.

◆ Initialize()

void com.mygdx.game.engine.scenes.BaseScene.Initialize ( BaseScenesManager  manager)

Initializes the class. After this method is called it can not be called again. This method will call the 'created' method

Parameters
managewhich controls the current scenes.

◆ render()

abstract void com.mygdx.game.engine.scenes.BaseScene.render ( )
abstract

This method will be called every frame after the 'update' method as long as the scene is active.

◆ update()

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

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

Parameters
dtstands for the deltaTime passed.

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