Class Game

java.lang.Object
com.badlogic.gdx.Game
com.prineside.tdi2.Game
All Implemented Interfaces:
com.badlogic.gdx.ApplicationListener
Direct Known Subclasses:
HeadlessNetTestingGame, HeadlessReplayCleanupGame, HeadlessReplayValidationGame, NormalGame

public abstract class Game extends com.badlogic.gdx.Game
  • Field Details

  • Constructor Details

  • Method Details

    • getOkSdkHandler

      public OkSdkHandler getOkSdkHandler()
    • checkConfiguredForProduction

      public static void checkConfiguredForProduction()
    • exit

      public static void exit()
    • isLoaded

      public boolean isLoaded()
    • isInMainThread

      public boolean isInMainThread()
    • assertInMainThread

      public void assertInMainThread()
    • create

      public void create()
      Description copied from interface: com.badlogic.gdx.ApplicationListener
      Called when the Application is first created.
    • pause

      public void pause()
      Description copied from interface: com.badlogic.gdx.ApplicationListener
      Called when the Application is paused, usually when it's not active or visible on-screen. An Application is also paused before it is destroyed.
      Specified by:
      pause in interface com.badlogic.gdx.ApplicationListener
      Overrides:
      pause in class com.badlogic.gdx.Game
    • resume

      public void resume()
      Description copied from interface: com.badlogic.gdx.ApplicationListener
      Called when the Application is resumed from a paused state, usually when it regains focus.
      Specified by:
      resume in interface com.badlogic.gdx.ApplicationListener
      Overrides:
      resume in class com.badlogic.gdx.Game
    • isDisposed

      public boolean isDisposed()
    • dispose

      public void dispose()
      Description copied from interface: com.badlogic.gdx.ApplicationListener
      Called when the Application is destroyed. Preceded by a call to ApplicationListener.pause().
      Specified by:
      dispose in interface com.badlogic.gdx.ApplicationListener
      Overrides:
      dispose in class com.badlogic.gdx.Game
    • addListener

      public void addListener(Game.GameListener listener)
    • removeListener

      public void removeListener(Game.GameListener listener)
    • addScreenResizeListener

      public void addScreenResizeListener(Game.ScreenResizeListener listener)
    • removeScreenResizeListener

      public void removeScreenResizeListener(Game.ScreenResizeListener listener)
    • getRealTickCount

      public static long getRealTickCount()
      Returns:
      microseconds (1 / 1,000,000 s) (1 / 1,000 ms) с запуска игры
    • getTimestampSeconds

      public static int getTimestampSeconds()
    • getTimestampMillis

      public static long getTimestampMillis()
    • getMillisTillGameStart

      public long getMillisTillGameStart()
    • notifyVisibleDisplayFrameChanged

      public void notifyVisibleDisplayFrameChanged(int x, int y, int width, int height)
      Launcher вызывает этот метод в случае, если не весь экран виден
    • getVisibleDisplayFrame

      public com.badlogic.gdx.math.Rectangle getVisibleDisplayFrame()
    • render

      public void render()
      Description copied from interface: com.badlogic.gdx.ApplicationListener
      Called when the Application should render itself.
      Specified by:
      render in interface com.badlogic.gdx.ApplicationListener
      Overrides:
      render in class com.badlogic.gdx.Game
    • resize

      public void resize(int width, int height)
      Description copied from interface: com.badlogic.gdx.ApplicationListener
      Called when the Application is resized. This can happen at any point during a non-paused state but will never happen before a call to ApplicationListener.create().
      Specified by:
      resize in interface com.badlogic.gdx.ApplicationListener
      Overrides:
      resize in class com.badlogic.gdx.Game
      Parameters:
      width - the new width in pixels
      height - the new height in pixels
    • getFreeHeapSpaceSize

      public static long getFreeHeapSpaceSize()