Class SettingsScreen

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

public class SettingsScreen extends com.badlogic.gdx.ScreenAdapter
The game screen containing the settings.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Disposes of resources and services associated with the main menu screen.
    void
    render(float delta)
    Renders the main gameplay screen.
    void
    resize(int width, int height)
    Called when the game window is resized.

    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
  • Constructor Details

    • SettingsScreen

      public SettingsScreen(GdxGame game)
  • Method Details

    • render

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

      public void resize(int width, int height)
      Called when the game window is resized.
      Specified by:
      resize in interface com.badlogic.gdx.Screen
      Overrides:
      resize in class com.badlogic.gdx.ScreenAdapter
      Parameters:
      width - The new width of the window.
      height - The new height of the window.
    • dispose

      public void dispose()
      Disposes of resources and services associated with the main menu screen. This method performs cleanup tasks such as disposing of the renderer, unloading assets, disposing of the render service, disposing of the entity service, disposing of the batch, and clearing the service locator.
      Specified by:
      dispose in interface com.badlogic.gdx.Screen
      Overrides:
      dispose in class com.badlogic.gdx.ScreenAdapter