jfreerails.client.top
Class GameLoop
java.lang.Object
jfreerails.client.top.GameLoop
- All Implemented Interfaces:
- java.lang.Runnable
public final class GameLoop
- extends java.lang.Object
- implements java.lang.Runnable
This thread updates the GUI Client window.
- Author:
- Luke
Method Summary |
void |
run()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
private static final java.util.logging.Logger logger
LIMIT_FRAME_RATE
private static final boolean LIMIT_FRAME_RATE
- See Also:
- Constant Field Values
gameNotDone
private boolean gameNotDone
screenHandler
private final ScreenHandler screenHandler
TARGET_FPS
private static final int TARGET_FPS
- See Also:
- Constant Field Values
fPScounter
private FPScounter fPScounter
frameStartTime
private long frameStartTime
model
private final GameModel[] model
loopMonitor
private final java.lang.Integer loopMonitor
GameLoop
public GameLoop(ScreenHandler s)
GameLoop
public GameLoop(ScreenHandler s,
GameModel[] gm)
run
public void run()
- Specified by:
run
in interface java.lang.Runnable