Tests for the Race class added
-Mostly to do with checking positions and updating correctly #test #story 9
This commit is contained in:
@@ -176,6 +176,7 @@ public abstract class Race implements Runnable {
|
||||
//boat has finished
|
||||
boatsFinished++;
|
||||
boat.setFinished(true);
|
||||
boat.setTimeFinished(timeElapsed);
|
||||
} else {
|
||||
boat.setDistanceTravelledInLeg(boat.getDistanceTravelledInLeg() - boat.getCurrentLeg().getDistance());
|
||||
Leg nextLeg = legs.get(boat.getCurrentLeg().getLegNumber() + 1);
|
||||
|
||||
Reference in New Issue
Block a user