Package de.tum.cit.fop.maze.UI
Class GameWonScreen
java.lang.Object
de.tum.cit.fop.maze.UI.GameWonScreen
- All Implemented Interfaces:
com.badlogic.gdx.Screen
Screen displayed when the player wins the game.
Shows a victory message or story text depending on the game mode.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Disposes of the screen and its resources.voidhide()Called when this screen is no longer the current screen for the game.voidpause()Called when the application is paused.voidrender(float delta) Renders the screen.voidresize(int width, int height) Called when the screen size changes.voidresume()Called when the application is resumed from a paused state.voidshow()Called when this screen becomes the current screen for the game.
-
Constructor Details
-
GameWonScreen
Constructs a GameWonScreen.- Parameters:
game- The main game instance.
-
-
Method Details
-
show
public void show()Called when this screen becomes the current screen for the game.- Specified by:
showin interfacecom.badlogic.gdx.Screen
-
render
public void render(float delta) Renders the screen.- 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) Called when the screen size changes.- Specified by:
resizein interfacecom.badlogic.gdx.Screen- Parameters:
width- The new width.height- The new height.
-
dispose
public void dispose()Disposes of the screen and its resources.- Specified by:
disposein interfacecom.badlogic.gdx.Screen
-
hide
public void hide()Called when this screen is no longer the current screen for the game.- Specified by:
hidein interfacecom.badlogic.gdx.Screen
-
pause
public void pause()Called when the application is paused.- Specified by:
pausein interfacecom.badlogic.gdx.Screen
-
resume
public void resume()Called when the application is resumed from a paused state.- Specified by:
resumein interfacecom.badlogic.gdx.Screen
-