Class StoryModeScreen

java.lang.Object
de.tum.cit.fop.maze.UI.StoryModeScreen

public class StoryModeScreen extends Object
Screen for the Story Mode menu. Allows the player to start a new story game or continue an existing one.
  • 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.