Modifier and Type | Field and Description |
---|---|
static IGameSpeed |
FAST
Fast.
|
static IGameSpeed |
FASTER
Faster.
|
static IGameSpeed |
NORMAL
Normal.
|
static IGameSpeed |
SLOW
Slow.
|
static IGameSpeed |
SLOWER
Slower.
|
static java.util.List<IGameSpeed> |
VALUE_LIST
An unmodifiable list of all the game speeds.
|
Modifier and Type | Method and Description |
---|---|
long |
convertToGameTime(long realTimeValue)
Converts a real-time value to game-time value (value can be game loop, time).
|
long |
convertToRealTime(long gameTimeValue)
Converts a game-time value to real-time value (value can be game loop, time).
|
long |
getRelativeSpeed()
Returns the relative time speed value (relative to other game speeds).
|
static final IGameSpeed SLOWER
static final IGameSpeed SLOW
static final IGameSpeed NORMAL
static final IGameSpeed FAST
static final IGameSpeed FASTER
static final java.util.List<IGameSpeed> VALUE_LIST
long getRelativeSpeed()
long convertToRealTime(long gameTimeValue)
gameTimeValue
- game-time value to be converted to real-timelong convertToGameTime(long realTimeValue)
realTimeValue
- game-time value to be converted to real-time
This API documentation is public and is intended for / allowed to be used by anyone.
Scelight home page: https://sites.google.com/site/scelight/
Scelight is a trademark of András Belicza. Copyright © András Belicza, 2013-2015. All rights reserved.