Examples of NewCommunityCardsEvent


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

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

    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

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

        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
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.