Class DifficultyScreen

java.lang.Object
com.badlogic.gdx.ScreenAdapter
com.csse3200.game.screens.DifficultyScreen
All Implemented Interfaces:
com.badlogic.gdx.Screen

public class DifficultyScreen extends com.badlogic.gdx.ScreenAdapter
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final GdxGame
    Game instance for navigation and context.
    protected final Renderer
    Renderer responsible for drawing.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Entity
    createUIScreen(com.badlogic.gdx.scenes.scene2d.Stage stage)
    Subclasses must provide the screen's UI entity (added to the stage by this base).
    void
     
    void
    render(float delta)
     
    void
    resize(int width, int height)
     

    Methods inherited from class com.badlogic.gdx.ScreenAdapter

    hide, pause, resume, show

    Methods inherited from class java.lang.Object

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

    • game

      protected final GdxGame game
      Game instance for navigation and context.
    • renderer

      protected final Renderer renderer
      Renderer responsible for drawing.
  • Constructor Details

    • DifficultyScreen

      public DifficultyScreen(GdxGame game)
  • Method Details

    • createUIScreen

      protected Entity createUIScreen(com.badlogic.gdx.scenes.scene2d.Stage stage)
      Subclasses must provide the screen's UI entity (added to the stage by this base).
      Parameters:
      stage - stage for UI
      Returns:
      UI entity to register
    • render

      public void render(float delta)
      Specified by:
      render in interface com.badlogic.gdx.Screen
      Overrides:
      render in class com.badlogic.gdx.ScreenAdapter
    • resize

      public void resize(int width, int height)
      Specified by:
      resize in interface com.badlogic.gdx.Screen
      Overrides:
      resize in class com.badlogic.gdx.ScreenAdapter
    • dispose

      public void dispose()
      Specified by:
      dispose in interface com.badlogic.gdx.Screen
      Overrides:
      dispose in class com.badlogic.gdx.ScreenAdapter