Package org.cspoker.common.api.lobby.holdemtable.event

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


 
  private static Logger logger = Logger.getLogger(TurnRound.class);
 
  public TurnRound(PokerTable gameMediator, Game game) {
    super(gameMediator, game);
    gameMediator.publishNewRoundEvent(new NewRoundEvent(getRound(), game.getPots().getSnapshot()));
    drawMuckCard();
    drawOpenCardAndPublishCommonCard();
    TurnRound.logger.info("*** TURN *** " + game.getCommunityCards());
    if (getGame().getCurrentPlayer() != null && getGame().getNbCurrentDealPlayers() > 1) {
      gameMediator.publishNextPlayerEvent(new NextPlayerEvent(game.getCurrentPlayer().getId()));
View Full Code Here


  private static Logger logger = Logger.getLogger(FinalRound.class);
 
  public FinalRound(PokerTable gameMediator, Game game) {
    super(gameMediator, game);
   
    gameMediator.publishNewRoundEvent(new NewRoundEvent(getRound(), game.getPots().getSnapshot()));
   
    drawMuckCard();
    drawOpenCardAndPublishCommonCard();
    FinalRound.logger.info("*** RIVER *** " + game.getCommunityCards());
    if (getGame().getCurrentPlayer() != null && getGame().getNbCurrentDealPlayers() > 1) {
View Full Code Here

 
  private static Logger logger = Logger.getLogger(FlopRound.class);
 
  public FlopRound(PokerTable gameMediator, Game game) {
    super(gameMediator, game);
    gameMediator.publishNewRoundEvent(new NewRoundEvent(getRound(), game.getPots().getSnapshot()));
    drawMuckCard();
    drawOpenCard();
    drawOpenCard();
    drawOpenCard();
    EnumSet<Card> cards = EnumSet.noneOf(Card.class);
View Full Code Here

  private boolean bigBlindAllIn = false;
 
  public PreFlopRound(PokerTable gameMediator, Game game) {
    super(gameMediator, game);
   
    gameMediator.publishNewRoundEvent(new NewRoundEvent(getRound(), game.getPots().getSnapshot()));
   
    try {
      // If there are only 2 players, blinds are inverted.
      if (game.getNbCurrentDealPlayers() == 2) {
        game.nextPlayer();
View Full Code Here

    if (nextRound == null) {
      throw new GameEndedException(lastState);
    }
//    List<Pot> pots = Collections.emptyList();
    NewRoundState newRoundState = new NewRoundState(lastState,
        new NewRoundEvent(nextRound, new Pots(lastState
            .getGamePotSize())));
    PlayerState firstToAct = newRoundState
        .getNextActivePlayerAfter(newRoundState.getDealer());
    if (firstToAct == null
        || newRoundState.getNextActivePlayerAfter(firstToAct
View Full Code Here

      }
      if(dealerId == null) throw new IllegalSelectorException();
      blindsDone.set(false);
      endLastRound.set(false);
      dispatch(new NewDealEvent(players, dealerId));
      dispatch(new NewRoundEvent(Round.PREFLOP, new Pots(0)));
    }
View Full Code Here

      }
    }

    @Override
    public void onEndRound(EndRound endRound) {
      dispatch(new NewRoundEvent(getGameState().getRound().getNextRound(),new Pots(getGameState().getGamePotSize())));
    }
View Full Code Here

TOP

Related Classes of org.cspoker.common.api.lobby.holdemtable.event.NewRoundEvent

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.