Examples of BetState


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

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

    return tableState.getGameState();
  }
 
  @Override
  public void onBet(BetEvent betEvent) {
    tableState.setGameState(new BetState(tableState.getGameState(), betEvent));
    super.onBet(betEvent);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.