Examples of PokerGameViewer


Examples of com.barrybecker4.game.multiplayer.poker.ui.PokerGameViewer

     * Advance to the next player turn in order.
     */
    @Override
    protected void doAdvanceToNextPlayer() {

        PokerGameViewer pviewer = (PokerGameViewer) getViewer();
        pviewer.refresh();
        advanceToNextPlayerIndex();

        if (round.roundOver(getPlayers(), playIndex_)) {
            // every player left in the game has called.
            //PokerRound round = pviewer.createMove(getLastMove());
            // records the result on the board.
            makeMove(round);
            pviewer.refresh();

            doRoundOverBookKeeping(pviewer);
        }

        // show message when done.
        // moved from above.
        if (isDone()) {
            pviewer.sendGameChangedEvent(null);
        }

        if (!getCurrentPlayer().isHuman() && !isDone()) {
            pviewer.doComputerMove(getCurrentPlayer());
        }

        // fire game changed event
        pviewer.sendGameChangedEvent(null);
    }
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.