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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user