You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
749 B
34 lines
749 B
package visualiser.model;
|
|
|
|
/**
|
|
* The properties of the boat currently being controlled by the player. Singleton.
|
|
*/
|
|
public class ThisBoat {
|
|
// TODO Initialise sourceID to the sourceID given by the network
|
|
private int sourceID = 125;
|
|
private boolean sailsOut = false;
|
|
private static ThisBoat instance = new ThisBoat();
|
|
|
|
private ThisBoat(){}
|
|
|
|
public static ThisBoat getInstance(){
|
|
return instance;
|
|
}
|
|
|
|
public void setSailsOut(boolean sailsOut) {
|
|
this.sailsOut = sailsOut;
|
|
}
|
|
|
|
public void setSourceID(int sourceID) {
|
|
this.sourceID = sourceID;
|
|
}
|
|
|
|
public boolean isSailsOut() {
|
|
return sailsOut;
|
|
}
|
|
|
|
public int getSourceID() {
|
|
return sourceID;
|
|
}
|
|
}
|