Package org.cspoker.common.elements.chips

Examples of org.cspoker.common.elements.chips.IllegalValueException


   * @throws IllegalValueException
   */
  protected void collectSmallBlind(MutableSeatedPlayer player)
      throws IllegalValueException {
    if (player.getStack().getValue() <= getGame().getTableConfiguration().getSmallBlind()) {
      throw new IllegalValueException();
    }
    player.transferAmountToBetPile(getGame().getTableConfiguration().getSmallBlind());
    setBet(getGame().getTableConfiguration().getSmallBlind());
    getBettingRules().setBetPlaced(true);
    getBettingRules().setLastBetAmount(getGame().getTableConfiguration().getSmallBlind());
View Full Code Here


   * @throws IllegalValueException
   */
  protected void collectBigBlind(MutableSeatedPlayer player)
      throws IllegalValueException {
    if (player.getStack().getValue() <= getGame().getTableConfiguration().getBigBlind()) {
      throw new IllegalValueException();
    }
    player.transferAmountToBetPile(getGame().getTableConfiguration().getBigBlind());
    getBettingRules().setBetPlaced(true);
    getBettingRules().setLastBetAmount(getGame().getTableConfiguration().getBigBlind());
    setBet(getGame().getTableConfiguration().getBigBlind());
View Full Code Here

TOP

Related Classes of org.cspoker.common.elements.chips.IllegalValueException

Copyright © 2018 www.massapicom. 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.