|
|
|
@ -53,11 +53,11 @@ public class RaceController extends Controller{
|
|
|
|
* @param boats boats that are to be displayed in the race
|
|
|
|
* @param boats boats that are to be displayed in the race
|
|
|
|
* @see ResizableRaceCanvas
|
|
|
|
* @see ResizableRaceCanvas
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
public void updateMap(ObservableList<BoatInRace> boats) {
|
|
|
|
public void updateMap(ObservableList<BoatInRace> boats) {
|
|
|
|
BoatInRace[] boatInRaces = new BoatInRace[boats.size()];
|
|
|
|
BoatInRace[] boatInRaces = new BoatInRace[boats.size()];
|
|
|
|
raceMap.setBoats(boats.toArray(boatInRaces));
|
|
|
|
raceMap.setBoats(boats.toArray(boatInRaces));
|
|
|
|
raceMap.drawRaceMap();
|
|
|
|
raceMap.drawRaceMap();
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
@ -103,7 +103,6 @@ public class RaceController extends Controller{
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
private ArrayList<Leg> generateBermudaCourseLegs() {
|
|
|
|
private ArrayList<Leg> generateBermudaCourseLegs() {
|
|
|
|
ArrayList<Leg> legs = new ArrayList<>();
|
|
|
|
ArrayList<Leg> legs = new ArrayList<>();
|
|
|
|
|
|
|
|
|
|
|
|
Leg leg1 = new Leg("Start to Mark 1", Constants.startLineMarker1, Constants.mark1, 0);
|
|
|
|
Leg leg1 = new Leg("Start to Mark 1", Constants.startLineMarker1, Constants.mark1, 0);
|
|
|
|
Leg leg2 = new Leg("Mark 1 to Leeward Gate", Constants.mark1, Constants.leewardGate1, 1);
|
|
|
|
Leg leg2 = new Leg("Mark 1 to Leeward Gate", Constants.mark1, Constants.leewardGate1, 1);
|
|
|
|
Leg leg3 = new Leg("Leeward Gate to Windward Gate", Constants.leewardGate1, Constants.windwardGate1, 2);
|
|
|
|
Leg leg3 = new Leg("Leeward Gate to Windward Gate", Constants.leewardGate1, Constants.windwardGate1, 2);
|
|
|
|
@ -134,7 +133,4 @@ public class RaceController extends Controller{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|