Boats now store whether autoVMG is on or off, boat speed scales off their bearing relative to the TWA. #story[1094]

This commit is contained in:
Joseph Gardner
2017-08-03 16:56:52 +12:00
parent c8621a7be5
commit 40a3ed1bb0
4 changed files with 286 additions and 24 deletions
@@ -22,6 +22,11 @@ public class MockBoat extends Boat {
*/
private long timeSinceTackChange = 0;
/**
* Stores whether the boat is on autoVMG or not
*/
private boolean autoVMG = true;
/**
@@ -191,4 +196,11 @@ public class MockBoat extends Boat {
return distanceTravelledMeters;
}
public boolean isAutoVMG() {
return autoVMG;
}
public void setAutoVMG(boolean autoVMG) {
this.autoVMG = autoVMG;
}
}