Package de.tum.cit.fop.maze.UI
Class StoryModeScreen
java.lang.Object
de.tum.cit.fop.maze.UI.StoryModeScreen
Screen for the Story Mode menu.
Allows the player to start a new story game or continue an existing one.
-
Constructor Summary
ConstructorsConstructorDescriptionStoryModeScreen(com.badlogic.gdx.scenes.scene2d.Stage stage, MazeRunnerGame game, MenuScreen menuScreen) Constructs a StoryModeScreen. -
Method Summary
Modifier and TypeMethodDescriptionvoidReturns to the story mode menu from the confirmation dialog.voidShows the confirmation dialog for starting a new game.com.badlogic.gdx.scenes.scene2d.ui.TableReturns the table containing the story mode UI.
-
Constructor Details
-
StoryModeScreen
public StoryModeScreen(com.badlogic.gdx.scenes.scene2d.Stage stage, MazeRunnerGame game, MenuScreen menuScreen) Constructs a StoryModeScreen.- Parameters:
stage- The stage to add actors to.game- The main game instance.menuScreen- The main menu screen for navigation.
-
-
Method Details
-
getStoryTable
public com.badlogic.gdx.scenes.scene2d.ui.Table getStoryTable()Returns the table containing the story mode UI.- Returns:
- The story mode table.
-
confirmNewGame
public void confirmNewGame()Shows the confirmation dialog for starting a new game. -
backToStory
public void backToStory()Returns to the story mode menu from the confirmation dialog.
-