Fix for now - Need to change
This commit is contained in:
@@ -102,7 +102,7 @@ public class StartController extends Controller implements Observer {
|
||||
@Override
|
||||
public void handle(long arg0) {
|
||||
ZonedDateTime currentTime = raceClock.getTime();
|
||||
if (visualiserInput.getRaceStatus().getRaceStatus() == 2) {
|
||||
//race about to start
|
||||
raceStat = visualiserInput.getRaceStatus().getRaceStatus();
|
||||
raceStatusLabel.setText("Race Status: " + visualiserInput.getRaceStatus().getRaceStatus());
|
||||
if (raceStat == 2 || raceStat == 3) {
|
||||
@@ -117,7 +117,6 @@ public class StartController extends Controller implements Observer {
|
||||
updateTime(String.format("Race starts in: %d:%02d:%02d", seconds / 3600, (seconds % 3600) / 60, (seconds % 60)));
|
||||
}
|
||||
}
|
||||
}
|
||||
}.start();
|
||||
}
|
||||
|
||||
|
||||
@@ -210,9 +210,11 @@ public class ResizableRaceCanvas extends Canvas {
|
||||
if (this.raceBoundaries == null) {
|
||||
return;
|
||||
}
|
||||
gc.setFill(Color.AQUA);
|
||||
//gc.setFill(Color.AQUA);
|
||||
setRaceBoundCoordinates();
|
||||
gc.fillPolygon(xpoints, ypoints, xpoints.length);
|
||||
|
||||
gc.setLineWidth(1);
|
||||
gc.strokePolygon(xpoints, ypoints, xpoints.length);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -248,10 +250,9 @@ public class ResizableRaceCanvas extends Canvas {
|
||||
this.map.setWidth((int) width);
|
||||
|
||||
gc.setLineWidth(2);
|
||||
drawBoundaries();
|
||||
drawMarkers();
|
||||
|
||||
updateBoats();
|
||||
drawMarkers();
|
||||
drawBoundaries();
|
||||
|
||||
//display wind direction arrow - specify origin point and angle - angle now set to random angle
|
||||
displayArrow(new GraphCoordinate((int) getWidth() - 40, 40), 150);
|
||||
|
||||
Reference in New Issue
Block a user