Package org.cspoker.client.common.gamestate

Examples of org.cspoker.client.common.gamestate.DetailedHoldemTableState


   * @param lobbyWindow The lobby reference
   * @param table The table to display in the game window
   */
  public GameWindow(LobbyWindow lobbyWindow, DetailedHoldemTable table) {
    super(new Shell(lobbyWindow.getDisplay(), SWT.CLOSE | SWT.RESIZE), SWT.NONE, lobbyWindow.getClientCore());
    tableState = new GameStateContainer(new DetailedHoldemTableState(table));
    smartListener = new SmartHoldemTableListener(this, tableState);
    detailedTable = table;
    try {
      user = new UserSeatedPlayer(this, getClientCore(), smartListener);
    } catch (IllegalValueException e) {
View Full Code Here


 
  @Override
  public SmartHoldemTableContext joinHoldemTable(TableId tableId, HoldemTableListener holdemTableListener)
      throws RemoteException, IllegalActionException {
    DetailedHoldemTable table = getHoldemTableInformation(tableId);
    GameStateContainer state = new GameStateContainer(new DetailedHoldemTableState(table));
    SmartHoldemTableListener smartListener = new SmartHoldemTableListener(holdemTableListener, state);
    return new SmartHoldemTableContext(super.joinHoldemTable(tableId, smartListener), state, playerId);
  }
View Full Code Here

    public void onTable(Table table) {
      game_id = table.getId();
      conn.startPolling(game_id);
      String bettingStruct = table.getBetting_structure();
      changeConfig(new TableConfiguration(100*Integer.parseInt(bettingStruct.split("-")[1]),0,default_rake));
      gameState = new GameStateContainer(new DetailedHoldemTableState(new DetailedHoldemTable(tableId, config)));
      smartListener = new SmartHoldemTableListener(holdemTableListener, gameState);
      tableInfoObtained.countDown();
      dispatch(new ConfigChangeEvent(config));
    }
View Full Code Here

TOP

Related Classes of org.cspoker.client.common.gamestate.DetailedHoldemTableState

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.