Examples of OnlineGameTable


Examples of com.barrybecker4.game.common.online.OnlineGameTable

                GameContext.log(2, "chat message=" + cmd.getArgument());
                useUpdateTable = false;
                responses.add(cmd);
                break;
            case START_GAME:
                OnlineGameTable tableToStart = (OnlineGameTable) cmd.getArgument();
                startGame(tableToStart);
                useUpdateTable = false;
                tableManager.removeTable(tableToStart);
                break;
            case DO_ACTION :
View Full Code Here

Examples of com.barrybecker4.game.common.online.OnlineGameTable

    /**
     * add another row to the end of the table.
     */
    public void addRow(String playersName, MultiGameOptions options) {
        OnlineGameTable onlineTable = createOnlineTable(playersName, options);
        addRow(onlineTable, true);
    }
View Full Code Here

Examples of com.barrybecker4.game.common.online.OnlineGameTable

            case UPDATE_TABLES :
                updateTables( (OnlineGameTableList) cmd.getArgument());
                handled = true;
                break;
            case START_GAME :
                OnlineGameTable readyTable = onlineGameTablesTable_.getSelectedTable();
                startGame(readyTable);
                handled = true;
                break;
            case CHAT_MESSAGE : break;
            case DO_ACTION : break;
View Full Code Here

Examples of com.barrybecker4.game.common.online.OnlineGameTable

        for (OnlineGameTable table : tableList) {
            onlineGameTablesTable_.addRow(table, table.hasPlayer(currentName_));
        }

        // see if the table that the player is at is ready to start playing.
        OnlineGameTable readyTable = tableList.getTableReadyToPlay(currentName_);

        if (readyTable != null) {
            // then the table the player is sitting at is ready to begin play.
            JOptionPane.showMessageDialog(null,
                      "All the players required \n(" + readyTable.getPlayersString()
                      + ")\n have joined this table. Play will now begin. ",
                      "Ready to Start", JOptionPane.INFORMATION_MESSAGE);

            startGame(readyTable);
View Full Code Here

Examples of com.barrybecker4.game.common.online.OnlineGameTable

     * The create new table button at the top was clicked.
     * Add the new table to this list as a new row and tell the server to add it.
     */
    public void createNewGameTable(MultiGameOptions options) {

        OnlineGameTable newTable =
            onlineGameTablesTable_.createOnlineTable(currentName_, options);

        connection_.addGameTable(newTable);
    }
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.