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
FieldsModifier and TypeFieldDescriptionstatic floatstatic float -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intgetStage()floatfloatstatic intvoidrun()voidsetTargetFixedUpdates(float targetFixedUpdates) voidsetTargetFps(float targetFps) voidstart()voidstop()voidsync()
-
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
-