Class Engine

java.lang.Object
buildengine.engine.Engine
All Implemented Interfaces:
Runnable

public class Engine extends Object implements Runnable
This is the class containing the game_loop thread and all the managing of the display, time and rendering.

Since version v1.0s don't create an instance of Engine on your own. Instead use .

Author:
Kai v. Maurik
See Also:
  • Field Details

    • DEFAULT_FPS

      public static float DEFAULT_FPS
    • DEFAULT_FIXED_UPDATES_PER_SECOND

      public static float DEFAULT_FIXED_UPDATES_PER_SECOND
  • Constructor Details

    • Engine

      public Engine(String windowTitle, Dimension resolution, boolean borderless, boolean vSync)
  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable
    • start

      public void start()
    • stop

      public void stop()
    • sync

      public void sync()
    • getTargetFps

      public float getTargetFps()
    • setTargetFps

      public void setTargetFps(float targetFps)
    • getTargetFixedUpdates

      public float getTargetFixedUpdates()
    • setTargetFixedUpdates

      public void setTargetFixedUpdates(float targetFixedUpdates)
    • getFpsCount

      public static int getFpsCount()
    • getUpsCount

      public static int getUpsCount()
    • getDisplay

      public Display getDisplay()
    • getStage

      public Stage getStage()