added a markpos value to event for use in displaying the team positions #story[426]

This commit is contained in:
Peter
2017-03-23 21:19:39 +13:00
parent 8578bc4a5b
commit bb8c681270
6 changed files with 61 additions and 46 deletions
+2 -2
View File
@@ -92,7 +92,7 @@ public class Race {
// If there are singleMarks after this event
if (i < numberOfMarks - 1) {
Event event = new Event(time, boat, course.get(i), course.get(i + 1));
Event event = new Event(time, boat, course.get(i), course.get(i + 1), i);
try {
events.get(boat).add(event);
@@ -106,7 +106,7 @@ public class Race {
// There are no more marks after this event
else{
Event event = new Event(time, boat, course.get(i));
Event event = new Event(time, boat, course.get(i), i);
events.get(boat).add(event);
}
}