jfreerails.client.top
Class GameLoop

java.lang.Object
  extended by 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

Field Summary
private  FPScounter fPScounter
           
private  long frameStartTime
           
private  boolean gameNotDone
           
private static boolean LIMIT_FRAME_RATE
           
private static java.util.logging.Logger logger
           
private  java.lang.Integer loopMonitor
           
private  GameModel[] model
           
private  ScreenHandler screenHandler
           
private static int TARGET_FPS
           
 
Constructor Summary
GameLoop(ScreenHandler s)
           
GameLoop(ScreenHandler s, GameModel[] gm)
           
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

GameLoop

public GameLoop(ScreenHandler s)

GameLoop

public GameLoop(ScreenHandler s,
                GameModel[] gm)
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable