Package de.tum.cit.fop.maze.UI
Class LevelModeScreen
java.lang.Object
de.tum.cit.fop.maze.UI.LevelModeScreen
Screen for the Level Mode menu.
Allows the player to start a new game (select a level) or return to the main menu.
-
Constructor Summary
ConstructorsConstructorDescriptionLevelModeScreen(com.badlogic.gdx.scenes.scene2d.Stage stage, MazeRunnerGame game, MenuScreen menuScreen) Constructs a LevelModeScreen. -
Method Summary
Modifier and TypeMethodDescriptionReturns the LevelSelectionScreen associated with this screen.com.badlogic.gdx.scenes.scene2d.ui.TableReturns the table containing the level mode UI.
-
Constructor Details
-
LevelModeScreen
public LevelModeScreen(com.badlogic.gdx.scenes.scene2d.Stage stage, MazeRunnerGame game, MenuScreen menuScreen) Constructs a LevelModeScreen.- Parameters:
stage- The stage to add actors to.game- The main game instance.menuScreen- The main menu screen.
-
-
Method Details
-
getLevelTable
public com.badlogic.gdx.scenes.scene2d.ui.Table getLevelTable()Returns the table containing the level mode UI.- Returns:
- The level mode table.
-
getLevelSelectionScreen
Returns the LevelSelectionScreen associated with this screen.- Returns:
- The LevelSelectionScreen.
-