예제 #1
0
        public bool setGameLobbyStatus(Guid gamelobbyGuidP, GameLobbyStatus status)
        {
            GameLobby gl = getGameLobby(gamelobbyGuidP);

            gl.setStatus(status);
            return(true);
        }
예제 #2
0
        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);
            }
        }