mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 14:28:43 +00:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user