Examples of GameCommand


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

    /**
     * Request an initial update when we enter the room with the game tables.
     */
    @Override
    public void enterRoom() {
        sendCommand(new GameCommand(GameCommand.Name.ENTER_ROOM, ""));
    }
View Full Code Here

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

     * Tell the server to add another game table to the list that is available.
     * @param newTable  to add.
     */
    @Override
    public void addGameTable(OnlineGameTable newTable) {
        sendCommand(new GameCommand(GameCommand.Name.ADD_TABLE, newTable));
    }
View Full Code Here

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

    }

    @Override
    public void nameChanged(String oldName, String newName) {
        String changer = oldName + GameCommand.CHANGE_TO + newName;
        sendCommand(new GameCommand(GameCommand.Name.CHANGE_NAME, changer));
    }
View Full Code Here

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

     * The server will look at the most recently added player to this table to determine who was added.
     */
    @Override
    public void joinTable(Player p, OnlineGameTable table) {
        table.addPlayer(p);
        sendCommand(new GameCommand(GameCommand.Name.JOIN_TABLE, table));
    }
View Full Code Here

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

        sendCommand(new GameCommand(GameCommand.Name.JOIN_TABLE, table));
    }

    @Override
    public void leaveRoom(String playerName) {
        sendCommand(new GameCommand(GameCommand.Name.LEAVE_ROOM, playerName));
    }
View Full Code Here

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

        sendCommand(new GameCommand(GameCommand.Name.LEAVE_ROOM, playerName));
    }

    @Override
    public void playerActionPerformed(PlayerAction action) {
        sendCommand(new GameCommand(GameCommand.Name.DO_ACTION, action));
    }
View Full Code Here

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

                      + ")\n have joined this table. Play will now begin. ",
                      "Ready to Start", JOptionPane.INFORMATION_MESSAGE);

            startGame(readyTable);

            GameCommand startCmd = new GameCommand(GameCommand.Name.START_GAME, readyTable);
            connection_.sendCommand(startCmd);
        }
    }
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.