|
|
|
|
@ -40,6 +40,7 @@ public class StartController extends Controller implements Observer {
|
|
|
|
|
@FXML private TableColumn<Boat, String> boatCodeColumn;
|
|
|
|
|
@FXML private Label timeZoneTime;
|
|
|
|
|
@FXML private Label timer;
|
|
|
|
|
@FXML private Label raceStatusLabel;
|
|
|
|
|
@FXML private int PRERACE_TIME = 10;
|
|
|
|
|
|
|
|
|
|
//@FXML Button fifteenMinButton;
|
|
|
|
|
@ -48,6 +49,7 @@ public class StartController extends Controller implements Observer {
|
|
|
|
|
|
|
|
|
|
private StreamedCourse raceData;
|
|
|
|
|
private long timeLeft = 1;
|
|
|
|
|
private int raceStat;
|
|
|
|
|
|
|
|
|
|
private VisualiserInput visualiserInput;
|
|
|
|
|
|
|
|
|
|
@ -107,7 +109,9 @@ public class StartController extends Controller implements Observer {
|
|
|
|
|
@Override
|
|
|
|
|
public void handle(long arg0) {
|
|
|
|
|
timeLeft = startTime - currentTime;
|
|
|
|
|
if (visualiserInput.getRaceStatus().getRaceStatus()==2) {
|
|
|
|
|
raceStat = visualiserInput.getRaceStatus().getRaceStatus();
|
|
|
|
|
raceStatusLabel.setText("Race Status: " + visualiserInput.getRaceStatus().getRaceStatus());
|
|
|
|
|
if (raceStat==2 || raceStat == 3) {
|
|
|
|
|
updateTime("Race is starting...");
|
|
|
|
|
stop();
|
|
|
|
|
parent.beginRace(visualiserInput);
|
|
|
|
|
|