Added finishing events #implement and rotated the map by 180 degrees#fix

This commit is contained in:
Michael Rausch
2017-03-22 12:51:03 +13:00
parent 00f9cc4698
commit ef098e63d7
11 changed files with 168 additions and 63 deletions
+6 -1
View File
@@ -104,8 +104,9 @@ public class Race {
// There are no more marks after this event
else{
Event event = new Event(time, boat, course.get(i), course.get(i));
Event event = new Event(time, boat, course.get(i));
events.get(boat).add(event);
}
}
}
@@ -132,4 +133,8 @@ public class Race {
public HashMap<Boat, List> getEvents() {
return events;
}
public void setBoatFinished(Boat boat){
this.finishingOrder.add(boat);
}
}