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

Examples of org.cspoker.common.api.lobby.holdemtable.holdemplayer.event.NewPocketCardsEvent


      player.dealPocketCard(drawCard());
      player.dealPocketCard(drawCard());
     
      PreFlopRound.logger.info("Dealt to " + player.getName() + " " + player.getPocketCards());
     
      gameMediator.publishNewPocketCardsEvent(player.getId(), new NewPocketCardsEvent(EnumSet.copyOf(player
          .getPocketCards())));
    }
   
    if (game.getCurrentPlayer() != null && getGame().getNbCurrentDealPlayers() > 1
        || !onlyOnePlayerLeftBesidesAllInPlayersAndCalled()) {
View Full Code Here


   
    PreFlopRound.logger.info("Dealt to " + player.getName() + " " + player.getPocketCards());
   
    EnumSet<Card> cards = EnumSet.noneOf(Card.class);
    cards.addAll(player.getPocketCards());
    gameMediator.publishNewPocketCardsEvent(player.getId(), new NewPocketCardsEvent(cards));
  }
View Full Code Here

      //don't consider card 255 which is a hidden card
      if(playerCards.getSerial() == serial
          && gameStateContainer.getGameState().getPlayer(new PlayerId(serial)).getCards().size()==0){
        Card card0 = Card.fromPokersourceInt(playerCards.getCards()[0]);
        Card card1 = Card.fromPokersourceInt(playerCards.getCards()[1]);
        smartListener.onNewPocketCards(new NewPocketCardsEvent(EnumSet.of(card0, card1)));
      }
    }
View Full Code Here

TOP

Related Classes of org.cspoker.common.api.lobby.holdemtable.holdemplayer.event.NewPocketCardsEvent

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.