Added race boats to XML Generator

Tags: #story[1047]
This commit is contained in:
Michael Rausch
2017-07-21 16:56:46 +12:00
parent 5df7efda03
commit 33fae9d69a
10 changed files with 40 additions and 15 deletions
+6 -1
View File
@@ -74,6 +74,7 @@ public class Yacht {
this.velocity = boatVelocity;
this.shortName = shortName;
this.sourceID = id;
this.location = new GeoPoint(0.0, 0.0);
}
public Yacht(String boatType, Integer sourceID, String hullID, String shortName,
@@ -126,11 +127,14 @@ public class Yacht {
return boatType;
}
public Integer getSourceID() {
public Integer getSourceId() {
//@TODO Remove and merge with Creating Game Loop
if (sourceID == null) return 0;
return sourceID;
}
public String getHullID() {
if (hullID == null) return "";
return hullID;
}
@@ -143,6 +147,7 @@ public class Yacht {
}
public String getCountry() {
if (country == null) return "";
return country;
}