[WIP] Adding player position, boat speed, boat heading

#story[1245]
This commit is contained in:
Zhi You Tan
2017-09-12 18:25:46 +12:00
parent b25c3367a9
commit f0fc75feec
5 changed files with 96 additions and 15 deletions
+1 -1
View File
@@ -253,7 +253,7 @@ public class ClientYacht extends Observable {
public void updateLocation(double lat, double lng, double heading, double velocity) {
setLocation(lat, lng);
this.heading = heading;
// this.currentVelocity = velocity;
this.currentVelocity = velocity;
updateVelocityProperty(velocity);
for (YachtLocationListener yll : locationListeners) {
yll.notifyLocation(this, lat, lng, heading, sailIn, velocity);