Package org.cspoker.common.elements.chips

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


     * way and not directly collected to the main pot, because all-in logic
     * would be to complicated. By doing the all-in logic at the end of a
     * round, the code is easier to write.
     */
    if (player.getBetChips().getValue() > 0) {
      Chips chips = new Chips();
      player.getBetChips().transferAllChipsTo(chips);
      betsFromFoldedPlayers.add(chips);
    }
    game.removePlayerFromCurrentDeal(player);
    game.getPots().removeContributor(player);
View Full Code Here


   */
  public MutableSeatedPlayer(MutablePlayer player, int buyIn) {
    this.player = player;
    player.getStack().discard();
   
    new Chips(buyIn).transferAllChipsTo(player.getStack());
    betChips = new Chips(0);
   
    pocketCards = new CopyOnWriteArrayList<Card>();
    // TODO Kenzo: Why default false??
    sittingIn = false;
  }
View Full Code Here

   * @param player The {@link SeatedPlayer} object
   * @throws IllegalArgumentException If the player is in an illegal state
   */
  public MutableSeatedPlayer(SeatedPlayer seatedPlayer) {
    this.player = new MutablePlayer(seatedPlayer);
    betChips = new Chips(seatedPlayer.getBetChipsValue());
    pocketCards = new CopyOnWriteArrayList<Card>();
    this.sittingIn = seatedPlayer.isSittingIn();
  }
View Full Code Here

   * @throws IllegalArgumentException The given initial value is not valid.
   */
  public MutablePlayer(PlayerId id, String name, int initialNbChips) {
    this.id = id;
    this.name = name;
    stack = new Chips(initialNbChips);
  }
View Full Code Here

TOP

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

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.