Class GameWonScreen

java.lang.Object
de.tum.cit.fop.maze.UI.GameWonScreen
All Implemented Interfaces:
com.badlogic.gdx.Screen

public class GameWonScreen extends Object implements com.badlogic.gdx.Screen
Screen displayed when the player wins the game. Shows a victory message or story text depending on the game mode.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs a GameWonScreen.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Disposes of the screen and its resources.
    void
    Called when this screen is no longer the current screen for the game.
    void
    Called when the application is paused.
    void
    render(float delta)
    Renders the screen.
    void
    resize(int width, int height)
    Called when the screen size changes.
    void
    Called when the application is resumed from a paused state.
    void
    Called when this screen becomes the current screen for the game.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GameWonScreen

      public GameWonScreen(MazeRunnerGame game)
      Constructs a GameWonScreen.
      Parameters:
      game - The main game instance.
  • Method Details

    • show

      public void show()
      Called when this screen becomes the current screen for the game.
      Specified by:
      show in interface com.badlogic.gdx.Screen
    • render

      public void render(float delta)
      Renders the screen.
      Specified by:
      render in interface com.badlogic.gdx.Screen
      Parameters:
      delta - The time in seconds since the last render.
    • resize

      public void resize(int width, int height)
      Called when the screen size changes.
      Specified by:
      resize in interface com.badlogic.gdx.Screen
      Parameters:
      width - The new width.
      height - The new height.
    • dispose

      public void dispose()
      Disposes of the screen and its resources.
      Specified by:
      dispose in interface com.badlogic.gdx.Screen
    • hide

      public void hide()
      Called when this screen is no longer the current screen for the game.
      Specified by:
      hide in interface com.badlogic.gdx.Screen
    • pause

      public void pause()
      Called when the application is paused.
      Specified by:
      pause in interface com.badlogic.gdx.Screen
    • resume

      public void resume()
      Called when the application is resumed from a paused state.
      Specified by:
      resume in interface com.badlogic.gdx.Screen