Package com.mygdx.auber.Screens
Class ChooseDifficultyScreen
- java.lang.Object
-
- com.mygdx.auber.Screens.ChooseDifficultyScreen
-
- All Implemented Interfaces:
com.badlogic.gdx.Screen
public final class ChooseDifficultyScreen extends java.lang.Object implements com.badlogic.gdx.Screen
-
-
Constructor Summary
Constructors Constructor Description ChooseDifficultyScreen(Auber game)Lets the player choose dificulty based on button press.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()Method called when this screen is deleted.voidhide()Method implemented from abstract superclass.voidpause()Method implemented from abstract superclass.voidrender(float delta)Called every frame to render this screen.voidresize(int width, int height)Method implemented from abstract superclass.voidresume()Method implemented from abstract superclass.voidshow()Method implemented from abstract superclass.
-
-
-
Constructor Detail
-
ChooseDifficultyScreen
public ChooseDifficultyScreen(Auber game)
Lets the player choose dificulty based on button press. Calls PlayScreen with a number based on the difficulty: 0 - Easy 1 - Normal 2 - Hard.- Parameters:
game- The instance of the game currently running.
-
-
Method Detail
-
show
public void show()
Method implemented from abstract superclass.- Specified by:
showin interfacecom.badlogic.gdx.Screen
-
render
public void render(float delta)
Called every frame to render this screen.- Specified by:
renderin interfacecom.badlogic.gdx.Screen- Parameters:
delta- The time in seconds between the previous frame and this one.
-
resize
public void resize(int width, int height)Method implemented from abstract superclass.- Specified by:
resizein interfacecom.badlogic.gdx.Screen
-
pause
public void pause()
Method implemented from abstract superclass.- Specified by:
pausein interfacecom.badlogic.gdx.Screen
-
resume
public void resume()
Method implemented from abstract superclass.- Specified by:
resumein interfacecom.badlogic.gdx.Screen
-
hide
public void hide()
Method implemented from abstract superclass.- Specified by:
hidein interfacecom.badlogic.gdx.Screen
-
dispose
public void dispose()
Method called when this screen is deleted.- Specified by:
disposein interfacecom.badlogic.gdx.Screen
-
-