Class Screen

java.lang.Object
com.prineside.tdi2.Screen
All Implemented Interfaces:
com.badlogic.gdx.Screen
Direct Known Subclasses:
AboutScreen, AccountScreen, AccountSettingsScreen, CrashReportScreen, CustomMapSelectScreen, GameScreen, HotkeyScreen, LanguageSelectScreen, LevelSelectScreen, LoadingScreen, MainMenuScreen, MapEditorScreen, MoneyScreen, ResearchesScreen, SettingsScreen, StatisticsScreen, TicTacToeScreen

public abstract class Screen extends Object implements com.badlogic.gdx.Screen
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called when this screen should release all resources.
    abstract void
    draw(float delta)
     
    void
    Called when this screen is no longer the current screen for a Game.
    void
     
    void
    render(float delta)
    Called when the screen should render itself.
    void
    resize(int width, int height)
     
    void
     
    void
    Called when this screen becomes the current screen for a Game.

    Methods inherited from class java.lang.Object

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

    • Screen

      public Screen()
  • Method Details

    • draw

      public abstract void draw(float delta)
    • render

      public void render(float delta)
      Description copied from interface: com.badlogic.gdx.Screen
      Called when the screen should render itself.
      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)
      Specified by:
      resize in interface com.badlogic.gdx.Screen
      See Also:
      • ApplicationListener.resize(int, int)
    • pause

      public void pause()
      Specified by:
      pause in interface com.badlogic.gdx.Screen
      See Also:
      • ApplicationListener.pause()
    • resume

      public void resume()
      Specified by:
      resume in interface com.badlogic.gdx.Screen
      See Also:
      • ApplicationListener.resume()
    • show

      public void show()
      Description copied from interface: com.badlogic.gdx.Screen
      Called when this screen becomes the current screen for a Game.
      Specified by:
      show in interface com.badlogic.gdx.Screen
    • hide

      public void hide()
      Description copied from interface: com.badlogic.gdx.Screen
      Called when this screen is no longer the current screen for a Game.
      Specified by:
      hide in interface com.badlogic.gdx.Screen
    • dispose

      public void dispose()
      Description copied from interface: com.badlogic.gdx.Screen
      Called when this screen should release all resources.
      Specified by:
      dispose in interface com.badlogic.gdx.Screen