Works for clients and server.

Due to the information being sent and received, it only currently works on client side boats.

#story[1111]
This commit is contained in:
Kusal Ekanayake
2017-08-03 19:07:30 +12:00
parent 99d5545ed3
commit f8af9cc259
2 changed files with 23 additions and 22 deletions
+1 -4
View File
@@ -282,9 +282,6 @@ public class Yacht {
this.velocityProperty.set(velocity);
}
public void updateSailsInProperty(Boolean clientSails) {
this.clientSailsIn = clientSails;
}
public void setMarkRoundingTime(Long markRoundingTime) {
this.markRoundTime = markRoundingTime;
@@ -407,7 +404,7 @@ public class Yacht {
this.velocity = velocity;
updateVelocityProperty(velocity);
for (YachtLocationListener yll : locationListeners) {
yll.notifyLocation(this, lat, lon, heading, velocity, this.clientSailsIn);
yll.notifyLocation(this, lat, lon, heading, velocity, clientSailsIn);
}
}