Package mage.client.dialog

Examples of mage.client.dialog.PickChoiceDialog.showDialog()


      session.sendPlayerInteger(gameId, MageFrame.getPickNumberDialog().getAmount());
  }

  public void getChoice(String message, String[] choices) {
    PickChoiceDialog pickChoice = new PickChoiceDialog();
    pickChoice.showDialog(message, choices);
    session.sendPlayerString(gameId, pickChoice.getChoice());
  }
 
  public Map<UUID, PlayAreaPanel> getPlayers() {
    return players;
View Full Code Here


    }

    public void getChoice(Choice choice, UUID objectId) {
        hideAll();
        PickChoiceDialog pickChoice = new PickChoiceDialog();
        pickChoice.showDialog(choice, objectId);
        if (choice.isKeyChoice()) {
            if (pickChoice.isAutoSelect()) {
                session.sendPlayerString(gameId, "#" + choice.getChoiceKey());
            } else {
                session.sendPlayerString(gameId, choice.getChoiceKey());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.