Spectate mode can be selected by clients when they join a game.

#story[1194]
This commit is contained in:
fjc40
2017-09-14 14:33:21 +12:00
parent a6eea88524
commit 43a1fbcb64
5 changed files with 80 additions and 34 deletions
@@ -14,15 +14,25 @@ public class ThisBoat {
}
public void setSailsOut(boolean sailsOut) {
this.boat.setSailsOut(sailsOut);
if (this.boat != null) {
this.boat.setSailsOut(sailsOut);
}
}
public boolean isSailsOut() {
return this.boat.isSailsOut();
if (this.boat != null) {
return this.boat.isSailsOut();
} else {
return true;//TODO junk value to allow the client to spectate.
}
}
public int getSourceID() {
return this.boat.getSourceID();
if (this.boat != null) {
return this.boat.getSourceID();
} else {
return 0;//TODO junk value to allow the client to spectate.
}
}
public void setBoat(VisualiserBoat boat) {