Package org.cspoker.common.elements.table

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


          TestAPI.logger.info(tableRemovedEvent);
        }
       
      };
      LobbyContext lobbyContext = kenzo.getLobbyContext(listener);
      lobbyContext.createHoldemTable("test", new TableConfiguration());
    } catch (LoginException e) {
      fail(e.getMessage());
    }
  }
View Full Code Here


    client.getGui().setLobby(lobby);
//    final LobbyWindow lobby2 = new LobbyWindow(client2);
//    lobby2.setLobbyContext(client2.getCommunication());
//    client2.getGui().setLobby(lobby2);

    tConfig = new TableConfiguration(smallBet, delay, false, false, true,0);
    lobby.getContext().createHoldemTable(u.getUserName() + "'s test table", tConfig);
    // Run blocking calls in extra thread
    displayexecutor.execute(new Runnable() {

      public void run() {
View Full Code Here

      final LobbyWindow lobby = new LobbyWindow(client);
      lobby.setLobbyContext(client.getCommunication());
      client.getGui().setLobby(lobby);

      TableConfiguration tConfig = new TableConfiguration(smallBlind, delay,0);
      lobby.getContext().createHoldemTable(u.getUserName() + "'s test table", tConfig);
      // Run blocking calls in extra thread
      displayexecutor.execute(new Runnable() {

        public void run() {
View Full Code Here

        public void widgetSelected(SelectionEvent evt) {
          logger.debug("tableCreationButton.mouseDown, event=" + evt);
          try {
            int smallBlind = (int) ((Double.parseDouble(stakeCombo.getText().substring(0,
                stakeCombo.getText().indexOf("/")))) * 100);
            TableConfiguration tConfig = new TableConfiguration(smallBlind * 2, 2000,0);
           
            try {
              lobby.getContext().createHoldemTable(nameInput.getText(), tConfig);
            } catch (IllegalActionException e) {
              logger.error("This should not happen", e);
View Full Code Here

        ti.dispose();
        redraw();
        return;
      }
    }
    TableConfiguration tInfo = t.getTableConfiguration();
    TableItem item = new TableItem(availableGameTables, SWT.NONE);
    item.setText(new String[] { t.getName(), Long.toString(t.getId().getId()),
        ClientGUI.formatBet(tInfo.getSmallBlind()) + "/" + ClientGUI.formatBet(tInfo.getBigBlind()),
        "Holdem No Limit", Integer.toString(t.getNbPlayers()) + "/" + tInfo.getMaxNbPlayers() });
    item.setData(t);
  }
View Full Code Here

  private static List<Events> newDealEvents = Arrays.asList(Events.newDeal, Events.newRound, Events.smallBlind, Events.bigBlind, Events.nextPlayer);

  @Override
  public void setUp(){
    events = new EventSequenceChecker();
    TableConfiguration configuration = new TableConfiguration();
    table = new ServerTable(configuration);
    pokerTable = new PokerTable(new TableId(0), "table", configuration, new ExtendedAccountContext(){

      public void changePassword(String passwordHash) {
View Full Code Here

  public void test2AllInOneActivePlayerCase() {
    try {
      kenzo = new MutableSeatedPlayer(factory.createNewPlayer("Kenzo", 100), 100);
      cedric = new MutableSeatedPlayer(factory.createNewPlayer("Cedric", 100),100);
      guy = new MutableSeatedPlayer(factory.createNewPlayer("Guy", 200),200);
      TableConfiguration configuration = new TableConfiguration();
      table = new ServerTable(configuration);
      table.addPlayer(kenzo);
      table.addPlayer(cedric);
      table.addPlayer(guy);
    } catch (IllegalValueException e) {
View Full Code Here

    try {
      kenzo = new MutableSeatedPlayer(factory.createNewPlayer("Kenzo", 200), 200);
      cedric = new MutableSeatedPlayer(factory.createNewPlayer("Cedric", 100),100);
      guy = new MutableSeatedPlayer(factory.createNewPlayer("Guy", 150),150);

      TableConfiguration configuration = new TableConfiguration();
      table = new ServerTable(configuration);
      table.addPlayer(kenzo);
      table.addPlayer(cedric);
      table.addPlayer(guy);
    } catch (IllegalValueException e) {
View Full Code Here

    try {
      kenzo = new MutableSeatedPlayer(factory.createNewPlayer("Kenzo", 100), 100);
      cedric = new MutableSeatedPlayer(factory.createNewPlayer("Cedric", 100),100);
      guy = new MutableSeatedPlayer(factory.createNewPlayer("Guy", 100),9);

      TableConfiguration configuration = new TableConfiguration();
      table = new ServerTable(configuration);
      table.addPlayer(kenzo);
      table.addPlayer(cedric);
      table.addPlayer(guy);
    } catch (IllegalValueException e) {
View Full Code Here

      kenzo = new MutableSeatedPlayer(factory.createNewPlayer("Kenzo", 200), 200);
      cedric = new MutableSeatedPlayer(factory.createNewPlayer("Cedric", 220),220);
      guy = new MutableSeatedPlayer(factory.createNewPlayer("Guy", 100),100);

      TableConfiguration configuration = new TableConfiguration();
      table = new ServerTable(configuration);

      table.addPlayer(kenzo);
      table.addPlayer(cedric);
      table.addPlayer(guy);
View Full Code Here

TOP

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

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.