Package io.github.team6ENG.EscapeUni
Class PauseScreen
java.lang.Object
io.github.team6ENG.EscapeUni.PauseScreen
- All Implemented Interfaces:
com.badlogic.gdx.Screen,com.badlogic.gdx.utils.Disposable
screen when game is paused, contains volume settings
-
Constructor Summary
ConstructorsConstructorDescriptionPauseScreen(Main game, com.badlogic.gdx.Screen playScreen, AudioManager audioManager) initialise pause screen -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Called when this screen should release all resources.voidhide()Called when this screen is no longer the current screen for aGame.voidpause()voidrender(float delta) Called when the screen should render itself.voidresize(int width, int height) voidresume()voidshow()Called when this screen becomes the current screen for aGame.
-
Constructor Details
-
PauseScreen
initialise pause screen- Parameters:
game- current instance of MainplayScreen- screen to return toaudioManager- active audio manager
-
-
Method Details
-
render
public void render(float delta) Description copied from interface:com.badlogic.gdx.ScreenCalled when the screen should render itself.- Specified by:
renderin interfacecom.badlogic.gdx.Screen- Parameters:
delta- The time in seconds since the last render.
-
resize
public void resize(int width, int height) - Specified by:
resizein interfacecom.badlogic.gdx.Screen- See Also:
-
ApplicationListener.resize(int, int)
-
show
public void show()Description copied from interface:com.badlogic.gdx.ScreenCalled when this screen becomes the current screen for aGame.- Specified by:
showin interfacecom.badlogic.gdx.Screen
-
hide
public void hide()Description copied from interface:com.badlogic.gdx.ScreenCalled when this screen is no longer the current screen for aGame.- Specified by:
hidein interfacecom.badlogic.gdx.Screen
-
pause
public void pause()- Specified by:
pausein interfacecom.badlogic.gdx.Screen- See Also:
-
ApplicationListener.pause()
-
resume
public void resume()- Specified by:
resumein interfacecom.badlogic.gdx.Screen- See Also:
-
ApplicationListener.resume()
-
dispose
public void dispose()Description copied from interface:com.badlogic.gdx.ScreenCalled when this screen should release all resources.- Specified by:
disposein interfacecom.badlogic.gdx.utils.Disposable- Specified by:
disposein interfacecom.badlogic.gdx.Screen
-