/** * ******************************************************* Game mgmt model calls. * ******************************************************* */ public boolean enterGameFromLobby(int gameId) { obj = ServerAccess.getCardGame(gameId); if (obj != null) { currentGame = (CardGame) obj; setGameId(gameId); isInGame = true; gameType = currentLobbyType; leaveGameLobby(currentLobbyType, currentLobbyNumber); ServerAccess.incrementNumGames(new AchievementRequest(player, gameType)); return true; } return false; }