Merge remote-tracking branch 'origin/1273_Changing_Cameras' into 1281_Server_Discovery_Internet

This commit is contained in:
Michael Rausch
2017-09-25 00:18:35 +13:00
9 changed files with 259 additions and 16 deletions
@@ -19,6 +19,7 @@ import jdk.nashorn.internal.objects.annotations.Function;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import seng302.model.token.TokenType;
import seng302.visualiser.fxObjects.assets_3D.BoatObject;
/**
* Yacht class for the racing boat. <p> Class created to store more variables (eg. boat statuses)
@@ -66,6 +67,8 @@ public class ClientYacht extends Observable {
private Integer boatStatus;
private Double currentVelocity;
private BoatObject boatObject;
private List<YachtLocationListener> locationListeners = new ArrayList<>();
private List<MarkRoundingListener> markRoundingListeners = new ArrayList<>();
private List<PowerUpListener> powerUpListeners = new ArrayList<>();
@@ -314,4 +317,12 @@ public class ClientYacht extends Observable {
public Double getCurrentVelocity() {
return currentVelocity;
}
public void setBoatObject(BoatObject newBoatObject) {
this.boatObject = newBoatObject;
}
public BoatObject getBoatObject() {
return this.boatObject;
}
}