Added the ability to reads boats from both race.xml and boat.xml. Linked the two xmls via the StreamedCource class. #story[782]

This commit is contained in:
Joseph Gardner
2017-04-25 13:14:59 +12:00
parent a59342a668
commit 3461a2c0b7
7 changed files with 143 additions and 36 deletions
@@ -10,10 +10,18 @@ import seng302.Model.BoatInRace;
*/
public class StreamedBoat extends BoatInRace {
private int sourceID;
private boolean complete;
public StreamedBoat(int sourceID, String name, Color colour, String abbrev) {
super(name, colour, abbrev);
this.sourceID = sourceID;
this.complete = true;
}
public StreamedBoat(int sourceID) {
super("None", Color.BLACK, "None");
this.sourceID = sourceID;
this.complete = false;
}
@@ -32,6 +40,5 @@ public class StreamedBoat extends BoatInRace {
* @param velocity of boat
*/
public void setScaledVelocity(double velocity) {
}
}