Slight improvements to hosting.

Allow a host/client to disconnect and reconnect/make lobby, leave lobby and play the game.

#pair[kre39,hyi25] #story[1047]
This commit is contained in:
Kusal Ekanayake
2017-07-27 12:45:22 +12:00
parent 34704bd93d
commit 870dc07fd2
8 changed files with 64 additions and 28 deletions
@@ -33,10 +33,6 @@ public class GameState implements Runnable {
public GameState(String hostIpAddress) {
windDirection = 180d;
windSpeed = 10000d;
yachts = new HashMap<>();
players = new ArrayList<>();
this.hostIpAddress = hostIpAddress;
players = new ArrayList<>();
currentStage = GameStages.LOBBYING;