Package rekit.core

Class GameTime

java.lang.Object
rekit.core.GameTime

public final class GameTime extends Object
This class manages the time of the game and replaces System.currentTimeMillis().
Author:
Dominik Fuchss
  • Method Details

    • getTime

      public static long getTime()
      Get the current time in the game.
      Returns:
      the current time
    • pause

      public static void pause()
      Pause the game.
    • resume

      public static void resume()
      Resume from pause.
    • isPaused

      public static boolean isPaused()
      Indicates whether the time has been stopped.
      Returns:
      true if stopped, false otherwise