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

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


    GameState betState;
    int stack = gameState.getPlayer(actor).getStack();
    if (stack == amount) {
      betState = new AllInState(gameState, new AllInEvent(actor, amount));
    } else if (stack > amount) {
      betState = new BetState(gameState, new BetEvent(actor, amount));
    } else throw new IllegalStateException("Can't bet amount: "+amount+", with stack: " + stack);
    return betState;
  }
View Full Code Here


    return tableState.getGameState();
  }
 
  @Override
  public void onBet(BetEvent betEvent) {
    tableState.setGameState(new BetState(tableState.getGameState(), betEvent));
    super.onBet(betEvent);
  }
View Full Code Here

TOP

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

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.