|
|
|
@ -32,7 +32,7 @@ public class Race implements Runnable {
|
|
|
|
protected int boatsFinished = 0;
|
|
|
|
protected int boatsFinished = 0;
|
|
|
|
protected long totalTimeElapsed;
|
|
|
|
protected long totalTimeElapsed;
|
|
|
|
protected int scaleFactor;
|
|
|
|
protected int scaleFactor;
|
|
|
|
protected int PRERACE_TIME = 180000; //time in milliseconds to pause during pre-race. At the moment, 3 minutes
|
|
|
|
protected int PRERACE_TIME = 180; //time in milliseconds to pause during pre-race. At the moment, 3 minutes
|
|
|
|
protected boolean countdownFinish = false;
|
|
|
|
protected boolean countdownFinish = false;
|
|
|
|
protected boolean runRace = true;
|
|
|
|
protected boolean runRace = true;
|
|
|
|
private int lastFPS = 20;
|
|
|
|
private int lastFPS = 20;
|
|
|
|
@ -202,8 +202,6 @@ public class Race implements Runnable {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}.start();
|
|
|
|
}.start();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void initialiseBoats() {
|
|
|
|
public void initialiseBoats() {
|
|
|
|
Leg officialStart = legs.get(0);
|
|
|
|
Leg officialStart = legs.get(0);
|
|
|
|
String name = officialStart.getName();
|
|
|
|
String name = officialStart.getName();
|
|
|
|
|