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

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


  protected void removeBrokePlayers() {
    for (MutableSeatedPlayer player : getGame().getTable().getMutableSeatedPlayers()) {
      if (player.isBroke()) {
        try {
          getGame().sitOut(player, true);
          gameMediator.publishSitOutEvent(new SitOutEvent(player.getId()));
          if(!game.getTableConfiguration().isAutoDeal()){
            game.pauzeGame();
          }
        } catch (IllegalActionException e) {
          throw new IllegalStateException();
View Full Code Here


    game.unpauzeGame();
    for (MutableSeatedPlayer newlySittingOut : game.getPlayersSittingOutNextRound().keySet()) {
      newlySittingOut.setSittingIn(false);
      for (Entry<MutableSeatedPlayer, Boolean> sitOutPlayer : game.getPlayersSittingOutNextRound().entrySet()) {
        gameMediator
            .publishSitOutEvent(new SitOutEvent(sitOutPlayer.getKey().getId()));
      }
    }
   
    if (!(game.getTable().getNbPlayers() > 1)) {
      throw new IllegalActionException("There should at least be 2 players to begin a new deal.");
View Full Code Here

  }
 
  @Override
  public void sitOut(MutableSeatedPlayer player) {
    player.setSittingIn(false);
    mediatingTable.publishSitOutEvent(new SitOutEvent(player.getId()));
  }
View Full Code Here

      if(isPastFirstFakeSitOut || sitOut.getSerial()!=serial){
        if(sitOut.getSerial() == serial && psPlayerContext!=null){
          psPlayerContext.signalSitOut();
          psPlayerContext = null;
        }
        dispatch(new SitOutEvent(new PlayerId(sitOut.getSerial())));
      }else{
        if(sitOut.getSerial()==serial){
          logger.info("Ignoring first fake sitout.");
          isPastFirstFakeSitOut = true;
        }
View Full Code Here

TOP

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

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.