Package org.cspoker.common.elements.table

Examples of org.cspoker.common.elements.table.DetailedHoldemTable


  public GameWindow getGameWindow(TableId tableId, boolean createNew) {
    GameWindow w = gameWindows.get(tableId);
    if (w == null && createNew) {
      // No Game Window for this table yet
     
      DetailedHoldemTable table;
      try {
        table = getLobby().getContext().getHoldemTableInformation(tableId);
        w = new GameWindow(getLobby(), table);
      } catch (RemoteException e) {
        throw new IllegalStateException("Could not retrieve remote table information", 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

   
  }

  @Override
  public DetailedHoldemTable getTableInformation() {
    return new DetailedHoldemTable(mediatingTable.getTableId(), mediatingTable.getName(), getSeatedPlayers(), isPlaying(),
        mediatingTable.getTableConfiguration());
  }
View Full Code Here

    game.getTable().removePlayer(seated);
  }

  @Override
  public DetailedHoldemTable getTableInformation() {
    return new DetailedHoldemTable(mediatingTable.getTableId(), mediatingTable.getName(), getSeatedPlayers(),
        isPlaying(), mediatingTable.getTableConfiguration(), getGame().getPots().getSnapshot(), getGame()
        .getDealer().getMemento(), getGame().getCommunityCards(), round.getRound());
  }
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

    throw new UnsupportedOperationException();
  }

  @Override
  public DetailedHoldemTable getHoldemTableInformation(TableId tableId) {
    if(config == null) return new DetailedHoldemTable(tableId, null);
    else return new DetailedHoldemTable(tableId, config);
  }
View Full Code Here

TOP

Related Classes of org.cspoker.common.elements.table.DetailedHoldemTable

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.