Package org.cspoker.client.gui.swt.control

Examples of org.cspoker.client.gui.swt.control.UserSeatedPlayer


    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) {
      throw new IllegalStateException(e);
    }
    user.joinTable(lobbyWindow.getContext());
    initGUI();
View Full Code Here


      }
      // If not, we can probably sit in
      // TODO Buyin, reserve seat in the meantime
      logger.debug("Clicked on PlayerSeatComposite, sit in if empty ...");
      GameWindow containingGameWindow = getParent().getParent();
      UserSeatedPlayer user = containingGameWindow.getUser();
      PlayerState userSnapshot = getGameState().getPlayer(playerId);
      if (userSnapshot != null) {
        // Dont do anything if the user is already sitting in
        return;
      }
      int amount = new BuyinDialog(getClientCore(), user.getCashierContext(), containingGameWindow
          .getDetailedTable().getTableConfiguration().getBigBlind() * 100, true).open();
      if (amount <= 0)
        return;
      try {
        playerId = user.getId();
        user.sitIn(seatId, amount);
        // Update the button accordingly with which the user can sit
        // in and out
        Button sitInOutButton = getParent().getParent().getUserInputComposite().sitInOutButton;
        sitInOutButton.setText("Sit Out");
        sitInOutButton.setSelection(true);
View Full Code Here

TOP

Related Classes of org.cspoker.client.gui.swt.control.UserSeatedPlayer

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.