Implemented wake lines

- Changed heading calculation in event class
- The boats now go to the marker, rather than the center of a gate

Tags: #story[466]
This commit is contained in:
Michael Rausch
2017-03-24 20:27:17 +13:00
parent 798fe4da0e
commit 5dd5e50738
6 changed files with 79 additions and 24 deletions
+9
View File
@@ -14,6 +14,7 @@ public class Boat {
private double distanceToNextMark;
private Color color;
private int markLastPast;
private double heading;
public Boat(String teamName) {
this.teamName = teamName;
@@ -110,4 +111,12 @@ public class Boat {
public int getMarkLastPast() {
return markLastPast;
}
public void setHeading(double heading){
this.heading = heading;
}
public double getHeading(){
return this.heading;
}
}