Class ResizableScreen

java.lang.Object
com.badlogic.gdx.ScreenAdapter
com.csse3200.game.screens.ResizableScreen
All Implemented Interfaces:
com.badlogic.gdx.Screen
Direct Known Subclasses:
AchievementsScreen, CombatScreen, EndGameStatsScreen, GameOverLoseScreen, LoadingScreen, MainMenuScreen, PreCombatCutsceneScreen, QuickTimeEventScreen

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

    Fields
    Modifier and Type
    Field
    Description
    protected final Renderer
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Dispose of current screen, only handles Render and Entity service.
    void
    Pause the current screen.
    void
    render(float delta)
    Render the Screen.
    void
    resize(int width, int height)
    Resize the screen to match window.
    void
    Resume the current screen.

    Methods inherited from class com.badlogic.gdx.ScreenAdapter

    hide, show

    Methods inherited from class java.lang.Object

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

    • renderer

      protected final Renderer renderer
  • Constructor Details

    • ResizableScreen

      public ResizableScreen()
  • Method Details

    • render

      public void render(float delta)
      Render the Screen.
      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)
      Resize the screen to match window.
      Specified by:
      resize in interface com.badlogic.gdx.Screen
      Overrides:
      resize in class com.badlogic.gdx.ScreenAdapter
      Parameters:
      width - The width of the new screen.
      height - The height of the new screen.
    • pause

      public void pause()
      Pause the current screen.
      Specified by:
      pause in interface com.badlogic.gdx.Screen
      Overrides:
      pause in class com.badlogic.gdx.ScreenAdapter
    • resume

      public void resume()
      Resume the current screen.
      Specified by:
      resume in interface com.badlogic.gdx.Screen
      Overrides:
      resume in class com.badlogic.gdx.ScreenAdapter
    • dispose

      public void dispose()
      Dispose of current screen, only handles Render and Entity service.
      Specified by:
      dispose in interface com.badlogic.gdx.Screen
      Overrides:
      dispose in class com.badlogic.gdx.ScreenAdapter