Linked raceData from new xml formats to current program. Current app now shows the starting list and course boundary. #story[782]

This commit is contained in:
Joseph Gardner
2017-04-25 16:06:24 +12:00
parent cb40302c13
commit c328c4f3bc
9 changed files with 435 additions and 15 deletions
@@ -318,6 +318,8 @@ public class ResizableRaceCanvas extends Canvas {
* Draws boats while race in progress, when leg heading is set.
*/
public void updateBoats() {
// TODO Remove null when boats are ready
boats = null;
if (boats != null) {
for (BoatInRace boat : boats) {
boolean finished = boat.getCurrentLeg().getName().equals("Finish") || boat.getCurrentLeg().getName().equals("DNF");