Fixed Yacht position initialise. TO-DO: check if the boat is participating before showing up on leaderboard.

This commit is contained in:
Zhi You Tan
2017-05-23 11:53:23 +12:00
parent ffd40fef6d
commit 2686dac62e
+1 -1
View File
@@ -55,7 +55,6 @@ public class Yacht {
this.velocity = boatVelocity; this.velocity = boatVelocity;
this.shortName = shortName; this.shortName = shortName;
this.sourceID = id; this.sourceID = id;
this.position = "-";
} }
public Yacht(String boatType, Integer sourceID, String hullID, String shortName, public Yacht(String boatType, Integer sourceID, String hullID, String shortName,
@@ -66,6 +65,7 @@ public class Yacht {
this.shortName = shortName; this.shortName = shortName;
this.boatName = boatName; this.boatName = boatName;
this.country = country; this.country = country;
this.position = "-";
} }
public String getBoatType() { public String getBoatType() {