Added tests, and sails to all clients.

#story[1111]
This commit is contained in:
Kusal Ekanayake
2017-08-06 15:43:22 +12:00
parent ae28ccf228
commit ecf2c52cfa
4 changed files with 64 additions and 25 deletions
+5 -1
View File
@@ -62,7 +62,7 @@ public class Yacht {
private CompoundMark lastMarkRounded;
private Integer positionInt = 0;
private Color colour;
private Boolean clientSailsIn = false;
private Boolean clientSailsIn = true;
public Yacht(String boatType, Integer sourceId, String hullID, String shortName,
String boatName, String country) {
@@ -397,6 +397,10 @@ public class Yacht {
this.velocity = velocity;
}
public Boolean getClientSailsIn(){
return clientSailsIn;
}
public void updateLocation (double lat, double lon, double heading, double velocity) {
this.lat = lat;
this.lon = lon;