Examples of joinGame()


Examples of bluffinmuffin.protocol.GameTCPServer.joinGame()

                }
               
                // Verify the player does not already playing on that table.
                if (!table.containsPlayer(command.getPlayerName()))
                {
                    final boolean ok = client.joinGame();
                    if (!ok)
                    {
                        sendMessage(command.encodeErrorResponse());
                    }
                    else
View Full Code Here

Examples of models.data.FixedTimeChallengeGame.joinGame()

        game.setMaxPlayers(gameForm.maxPlayers);
        game.setOwner((Player) user);
        game.setOpenBalance(gameForm.openBalance);
        //adding game player to list
        game.save();
        game.joinGame(user);
        return game;
    }

    /**
     * This creates a Lump sum game. The goal of this game is to achieve the
View Full Code Here

Examples of models.data.Game.joinGame()

        }

        GamePlayer gamePlayer = game.getPlayerInGame(currentUser);
        if (gamePlayer == null) {
            Logger.info("joining game");
            gamePlayer = game.joinGame(currentUser);
            if (gamePlayer != null) {
                Logger.info("Successfully joined game.");
            } else {
                return badRequest(game_playGame_cant_join.render(game, true));
            }
View Full Code Here

Examples of net.yura.lobby.database.GameRoom.joinGame()

            // we need to increase the number of available places in this game
            // to allow this new player to be added to it with game.joinGame
            if (serverGame!=null) {
                game.setMaxPlayers( game.getMaxPlayers()+1 );
            }
            game.joinGame( user );

            database.saveGame(game);
        }
        finally {
            database.endTransaction();
View Full Code Here

Examples of scotlandyard.server.GameServer.joinGame()

    GameServer game = MainServer.getMainServerInstance().getGameServerByGameName(gameName);
   
    session.setAttribute("GameServerInstance",game );
    //session.setAttribute("PlayerName", playerName);
    // see MainServerManagementTest
    game.joinGame(playerName);
  }

  @Override
  public void quitGame(String gameName) {
    HttpServletRequest request = this.getThreadLocalRequest();
View Full Code Here

Examples of scotlandyard.server.GameServer.joinGame()

    // see MainServerManagementTest
    MainServer.getMainServerInstance().openGame(gameName);
    GameServer game = MainServer.getMainServerInstance().getGameServerByGameName(gameName);
    game.setCaso (caseNumber);
    session.setAttribute("GameServerInstance", game);
    game.joinGame(playerName);
  }

  @Override
  public void closeGame(String gameName) {
    // see MainServerManagementTest
View Full Code Here

Examples of scotlandyard.server.GameServer.joinGame()

    GameServer game = MainServer.getMainServerInstance().getGameServerByGameName(gameName);
   
    session.setAttribute("GameServerInstance",game );
    //session.setAttribute("PlayerName", playerName);
    // see MainServerManagementTest
    game.joinGame(playerName);
  }

  @Override
  public void quitGame(String gameName) {
    HttpServletRequest request = this.getThreadLocalRequest();
View Full Code Here

Examples of scotlandyard.server.GameServer.joinGame()

    // see MainServerManagementTest
    MainServer.getMainServerInstance().openGame(gameName);
    GameServer game = MainServer.getMainServerInstance().getGameServerByGameName(gameName);
   
    session.setAttribute("GameServerInstance", game);
    game.joinGame(playerName);
  }

  @Override
  public void closeGame(String gameName) {
    // see MainServerManagementTest
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.