Examples of BlindEvent


Examples of org.cspoker.common.api.lobby.holdemtable.event.BlindEvent

    player.transferAmountToBetPile(getGame().getTableConfiguration().getSmallBlind());
    setBet(getGame().getTableConfiguration().getSmallBlind());
    getBettingRules().setBetPlaced(true);
    getBettingRules().setLastBetAmount(getGame().getTableConfiguration().getSmallBlind());
    playerMadeEvent(player);
    gameMediator.publishBlindEvent(new BlindEvent(player.getId(), getGame().getTableConfiguration()
        .getSmallBlind()));
    BettingRound.logger.info(player.getName() + ": posts small blind "
        + Util.parseDollars(getGame().getTableConfiguration().getSmallBlind()));
   
  }
View Full Code Here

Examples of org.cspoker.common.api.lobby.holdemtable.event.BlindEvent

    player.transferAmountToBetPile(getGame().getTableConfiguration().getBigBlind());
    getBettingRules().setBetPlaced(true);
    getBettingRules().setLastBetAmount(getGame().getTableConfiguration().getBigBlind());
    setBet(getGame().getTableConfiguration().getBigBlind());
    playerMadeEvent(player);
    gameMediator.publishBlindEvent(new BlindEvent(player.getId(), getGame().getTableConfiguration()
        .getBigBlind()));
    BettingRound.logger.info(getGame().getCurrentPlayer().getName() + ": posts big blind "
        + Util.parseDollars(getGame().getTableConfiguration().getBigBlind()));
  }
View Full Code Here

Examples of org.cspoker.common.api.lobby.holdemtable.event.BlindEvent

      int amount = blind.getAmount();
      //      if(getGameState().get)
      if(amount == getGameState().getPlayer(id).getStack())
        dispatch(new AllInEvent(id, amount));
      else if(amount==config.getSmallBlind() || amount==config.getBigBlind())
        dispatch(new BlindEvent(id, amount));
      else throw new IllegalStateException("Unknown blind amount: "+amount+" (sb="+config.getSmallBet()+")");
    }
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.