public interface IGameLoop extends ILoop
| Modifier and Type | Method and Description |
|---|---|
long |
convertToMs(long ticks) |
long |
convertToTicks(int ms) |
int |
execute(int delay,
java.lang.Runnable action) |
long |
getDeltaTime()
Gets the time that passed since the last tick in ms.
|
long |
getDeltaTime(long ticks)
Calculates the deltatime between the current game time and the specified
ticks in ms.
|
long |
getTicks() |
float |
getTimeScale() |
int |
getUpdateRate() |
void |
setTimeScale(float timeScale) |
void |
updateExecutionTime(int index,
long ticks) |
start, terminatelong convertToMs(long ticks)
long convertToTicks(int ms)
int execute(int delay,
java.lang.Runnable action)
void updateExecutionTime(int index,
long ticks)
long getDeltaTime()
long getDeltaTime(long ticks)
ticks - The ticks for which to calculate the delta time.long getTicks()
float getTimeScale()
int getUpdateRate()
void setTimeScale(float timeScale)