Package org.cspoker.client.common.gamestate.modifiers

Examples of org.cspoker.client.common.gamestate.modifiers.NewRoundState


    Round nextRound = lastState.getRound().getNextRound();
    if (nextRound == null) {
      throw new GameEndedException(lastState);
    }
//    List<Pot> pots = Collections.emptyList();
    NewRoundState newRoundState = new NewRoundState(lastState,
        new NewRoundEvent(nextRound, new Pots(lastState
            .getGamePotSize())));
    PlayerState firstToAct = newRoundState
        .getNextActivePlayerAfter(newRoundState.getDealer());
    if (firstToAct == null
        || newRoundState.getNextActivePlayerAfter(firstToAct
            .getPlayerId()) == null) {
      // no one/only one left
      return getNewRoundState(newRoundState);
    }
    return new NextPlayerState(newRoundState, new NextPlayerEvent(
View Full Code Here


    super.onShowHand(showHandEvent);
  }
 
  @Override
  public void onNewRound(NewRoundEvent newRoundEvent) {
    tableState.setGameState(new NewRoundState(tableState.getGameState(), newRoundEvent));
    super.onNewRound(newRoundEvent);
  }
View Full Code Here

TOP

Related Classes of org.cspoker.client.common.gamestate.modifiers.NewRoundState

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.