Package de.tum.cit.ase.maze.screens
Class PauseScreen
java.lang.Object
de.tum.cit.ase.maze.screens.PauseScreen
- All Implemented Interfaces:
com.badlogic.gdx.Screen
The PauseScreen class represents the game screen that appears when the game is paused.
It provides functionality to resume the game, exit the game, choose a new map, or restart the game.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
PauseScreen
Constructor for PauseScreen. Sets up the camera, viewport, stage, and UI elements.- Parameters:
game- The main game class, used to access global resources and methods.
-
-
Method Details
-
show
public void show()- Specified by:
showin interfacecom.badlogic.gdx.Screen
-
render
public void render(float delta) - Specified by:
renderin interfacecom.badlogic.gdx.Screen
-
resize
public void resize(int width, int height) - Specified by:
resizein interfacecom.badlogic.gdx.Screen
-
pause
public void pause()- Specified by:
pausein interfacecom.badlogic.gdx.Screen
-
resume
public void resume()- Specified by:
resumein interfacecom.badlogic.gdx.Screen
-
hide
public void hide()- Specified by:
hidein interfacecom.badlogic.gdx.Screen
-
dispose
public void dispose()- Specified by:
disposein interfacecom.badlogic.gdx.Screen
-