Added a class for the marker, and added documentation

- Added documentation for the Race class
- Added a class for the Marker instead of just storing the name of the marker in a string

Tags: #docs #implement #story[4]
This commit is contained in:
Michael Rausch
2017-03-06 19:31:25 +13:00
parent 8c0cc67ae3
commit 9b1d90d2bf
4 changed files with 124 additions and 20 deletions
+9 -3
View File
@@ -27,6 +27,12 @@ public class App
race.addBoat(new Boat(boatNames.get(i)));
}
race.addLeg(new Leg(035, 100, "Start"));
race.addLeg(new Leg(010, 300, "Marker 1"));
race.addLeg(new Leg(350, 400, "Leeward Gate"));
race.addLeg(new Leg(010, 400, "Windward Gate"));
race.addLeg(new Leg(010, 400, "Leeward Gate"));
return race;
}
@@ -43,11 +49,11 @@ public class App
}
if (race != null){
race.displayStartingBoats();
System.out.println("");
race.startRace();
race.displayFinishingOrder();
}
else{
System.out.println("e");