Package buildengine.engine
Class Engine
java.lang.Object
buildengine.engine.Engine
- All Implemented Interfaces:
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 Summary
Modifier and TypeFieldDescriptionstatic float
static float
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
getStage()
float
float
static int
void
run()
void
setTargetFixedUpdates
(float targetFixedUpdates) void
setTargetFps
(float targetFps) void
start()
void
stop()
void
sync()
-
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
-
-
Method Details
-
run
public void run() -
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
-
getStage
-