Package org.cspoker.client.gui.swt.window

Examples of org.cspoker.client.gui.swt.window.LobbyWindow


    client.login(server);   
//    User u2 = new User("Human2", "test");
//    client2 = new ClientCore(u2);
//    client2.login(server);

    final LobbyWindow lobby = new LobbyWindow(client);
    lobby.setLobbyContext(client.getCommunication());
    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() {
        lobby.show();

      }
    });
//      displayexecutor.execute(new Runnable() {
//
View Full Code Here


    for (User u : users) {
      seatId++;
      client = new ClientCore(u);
      client.login(server);

      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() {
          lobby.show();

        }
      });
      final GameWindow w = client.getGui().getGameWindow(tableId, true);
      w.getUser().sitIn(new SeatId(seatId), buyin);
View Full Code Here

      // TODO fix login on server
      //gui.createNewLoginDialog().open();
      login(server);
      // TODO Make sure we register to receive events from the server
      // communication.subscribe(this);
      final LobbyWindow lobby = new LobbyWindow(this);
      lobby.setLobbyContext(this.getCommunication());
      getGui().setLobby(lobby);
      // Open the Lobby window, blocking operation
      lobby.show();
      // Lobby has been closed
      logger.info("Client done");
    } catch (final Exception e) {
      logger.error("Unexpected error", e);
      logger.info("Attempting reset");
View Full Code Here

TOP

Related Classes of org.cspoker.client.gui.swt.window.LobbyWindow

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.