Sails can be toggled on the visualiser and the rotate sails button rotates the sail visually. #story[1098]

This commit is contained in:
Joseph Gardner
2017-08-07 15:01:16 +12:00
parent 7c5670f8c2
commit f6cdf66bfe
4 changed files with 69 additions and 6 deletions
@@ -90,6 +90,10 @@ public class Boat {
@Nullable
private ZonedDateTime timeAtLastMark;
/**
* The state of the boats sails. True if sails are out.
*/
private boolean sailsOut = false;
/**
* Constructs a boat object with a given sourceID, name, country/team abbreviation, and polars table.
@@ -395,4 +399,11 @@ public class Boat {
this.timeAtLastMark = timeAtLastMark;
}
public void setSailsOut(boolean sailsOut) {
this.sailsOut = sailsOut;
}
public boolean isSailsOut() {
return sailsOut;
}
}