public bool setGameLobbyStatus(Guid gamelobbyGuidP, GameLobbyStatus status) { GameLobby gl = getGameLobby(gamelobbyGuidP); gl.setStatus(status); return(true); }
public bool startGame(Guid gameLobbyGuidP) { GameLobby gl = getGameLobby(gameLobbyGuidP); if (gl != null) { if (gameGenerator.createGame(gl.getListOfClients(), gameLobbyGuidP, this)) { gl.setStatus(GameLobbyStatus.Game_In_Progress); return(true); } else { return(false); } } else { //Game does not exist return(false); } }