Examples of PokerOptions


Examples of com.barrybecker4.game.multiplayer.poker.PokerOptions

    @Override
    protected void addRobotPlayer(int i) {

        Color newColor = MultiGamePlayer.getNewPlayerColor(getPlayers());

        PokerOptions options = (PokerOptions) getGameOptions();
        String name = "Robot " + (i+1);
        PokerPlayer robot = PokerRobotPlayer.getRandomRobotPlayer(name, options.getInitialCash(), newColor);
        //SurrogateMultiPlayer sp = new SurrogateMultiPlayer(robot);
        this.addPlayer(robot);
    }
View Full Code Here

Examples of com.barrybecker4.game.multiplayer.poker.PokerOptions

        // false if active player is in this table.
        // You cannot join a table you are already at
        d[JOIN_INDEX] = localPlayerAtTable ? "leave" : "join";
        d[NUM_PLAYERS_INDEX] = onlineTable.getNumPlayersNeeded();
        d[PLAYER_NAMES_INDEX] = onlineTable.getPlayerNames();
        PokerOptions options = (PokerOptions) onlineTable.getGameOptions();
        d[ANTE_INDEX] = options.getAnte();
        d[MAX_RAISE_INDEX] = options.getMaxAbsoluteRaise();
        d[INITIAL_CASH_INDEX] = options.getInitialCash();
        return d;
    }
View Full Code Here

Examples of com.barrybecker4.game.multiplayer.poker.PokerOptions

    }

    void showRaiseDialog() {
        // open a dlg to get an order
        PokerController pc = (PokerController)controller_;
        PokerOptions options = (PokerOptions)controller_.getOptions();
        RaiseDialog raiseDialog =
                new RaiseDialog((PokerPlayer)player_, callAmount_, pc.getAllInAmount(),
                                options.getMaxAbsoluteRaise(), options.getAnte());

        raiseDialog.setLocation((int)(this.getLocation().getX() + 40), (int)(this.getLocation().getY() +170));

        boolean canceled = raiseDialog.showDialog();
View Full Code Here

Examples of com.barrybecker4.game.multiplayer.poker.PokerOptions

     * @return an array of panels to put in the parent controller param panel.
     */
    @Override
    protected JComponent[] getControllerParamComponents() {

        PokerOptions options = (PokerOptions)controller_.getOptions();
        ante_ = new NumberInput( GameContext.getLabel("ANTE"), options.getAnte(),
                                 GameContext.getLabel("ANTE_TIP"),
                                 1, 100 * PokerOptions.DEFAULT_ANTE, true);
        initialChips_ =
                new NumberInput(GameContext.getLabel("INITIAL_CASH"), options.getInitialCash(),
                                GameContext.getLabel("INITIAL_CASH_TIP"),
                                1, 1000 * PokerOptions.DEFAULT_INITIAL_CASH, true);
        maxAbsoluteRaise_ =
                new NumberInput(GameContext.getLabel("MAX_RAISE"), options.getMaxAbsoluteRaise(),
                                GameContext.getLabel("MAX_RAISE_TIP"),
                                1, 100 * PokerOptions.DEFAULT_MAX_ABS_RAISE, true);

        initMultiControllerParamComponents(options);

View Full Code Here

Examples of com.barrybecker4.game.multiplayer.poker.PokerOptions

    }


    @Override
    public GameOptions getOptions() {
        return new PokerOptions(maxNumPlayers_.getIntValue(),
                                numRobotPlayers_.getIntValue(),
                                ante_.getIntValue(),
                                maxAbsoluteRaise_.getIntValue(),
                                initialChips_.getIntValue());
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.