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

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


  }
 
  protected void drawOpenCardAndPublishCommonCard() {
    Card card = drawCard();
    game.addOpenCard(card);
    gameMediator.publishNewCommonCardsEvent(new NewCommunityCardsEvent(EnumSet.of(card)));
  }
View Full Code Here


    drawOpenCard();
    drawOpenCard();
    drawOpenCard();
    EnumSet<Card> cards = EnumSet.noneOf(Card.class);
    cards.addAll(getGame().getCommunityCards());
    gameMediator.publishNewCommonCardsEvent(new NewCommunityCardsEvent(cards));
    FlopRound.logger.info("*** FLOP *** " + game.getCommunityCards());
    if (getGame().getCurrentPlayer() != null && getGame().getNbCurrentDealPlayers() > 1) {
      gameMediator.publishNextPlayerEvent(new NextPlayerEvent(game.getCurrentPlayer().getId()));
    }
   
View Full Code Here

        cards.add(Card.fromPokersourceInt(c));
      }
      //BoardCards has up to all 5 cards.
      cards.removeAll(getGameState().getCommunityCards());
      if(cards.size()>0)
        dispatch(new NewCommunityCardsEvent(cards));
    }
View Full Code Here

TOP

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

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.