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

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


    getBettingRules().incrementNBRaises();
    getBettingRules().setLastBetAmount(amount);
    playerMadeEvent(player);
    game.nextPlayer();
   
    gameMediator.publishRaiseEvent(new RaiseEvent(player.getId(), amount, movedAmount));
    BettingRound.logger.info(player.getName() + ": raises with " + Util.parseDollars(amount) + " to "
        + Util.parseDollars(player.getMemento().getBetChipsValue()));
  }
View Full Code Here


    GameState raiseState;
    if (movedAmount >= stack) {
      raiseState = new AllInState(gameState, new AllInEvent(actor, movedAmount));
    } else {
      raiseState = new RaiseState(gameState, new RaiseEvent(actor, amount, movedAmount));
    }
    return raiseState;
  }
View Full Code Here

    gamePlayerAction(foldState, playerId);
  }

  @Override
  public void visitRaiseState(RaiseState raiseState) {
    RaiseEvent event = raiseState.getEvent();
    PlayerId playerId = event.getPlayerId();
    signalAction(playerId);
    gamePlayerAction(raiseState, playerId);
  }
View Full Code Here

      if(movedAmount == getGameState().getPlayer(id).getStack())
        dispatch(new AllInEvent(id, movedAmount));
      else if(callValue == 0)
        dispatch(new BetEvent(id, movedAmount));
      else
        dispatch(new RaiseEvent(id, movedAmount-callValue, movedAmount));
    }
View Full Code Here

TOP

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

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.