Package de.tum.cit.fop.maze.UI
Class LevelSelectionScreen
java.lang.Object
de.tum.cit.fop.maze.UI.LevelSelectionScreen
Screen for selecting a level to play.
Displays a list of available levels loaded from the maps directory.
-
Constructor Summary
ConstructorsConstructorDescriptionLevelSelectionScreen(com.badlogic.gdx.scenes.scene2d.Stage stage, MazeRunnerGame game, LevelModeScreen levelyModeScreen, MenuScreen menuScreen) Constructs a LevelSelectionScreen. -
Method Summary
Modifier and TypeMethodDescriptioncom.badlogic.gdx.scenes.scene2d.ui.TableReturns the table containing the level selection UI.
-
Constructor Details
-
LevelSelectionScreen
public LevelSelectionScreen(com.badlogic.gdx.scenes.scene2d.Stage stage, MazeRunnerGame game, LevelModeScreen levelyModeScreen, MenuScreen menuScreen) Constructs a LevelSelectionScreen.- Parameters:
stage- The stage to add actors to.game- The main game instance.levelyModeScreen- The parent level mode screen.menuScreen- The main menu screen for accessing the sound controller.
-
-
Method Details
-
getLevelSelectionTable
public com.badlogic.gdx.scenes.scene2d.ui.Table getLevelSelectionTable()Returns the table containing the level selection UI.- Returns:
- The level selection table.
-