Package mage.client.dialog

Examples of mage.client.dialog.ShowCardsDialog


  public void pickAbility(AbilityPickerView choices) {
    this.abilityPicker.show(choices, MageFrame.getDesktop().getMousePosition());
  }

  public void revealCards(String name, CardsView cards) {
    ShowCardsDialog showCards = new ShowCardsDialog();
    showCards.loadCards(name, cards, bigCard, Config.dimensions, gameId, false);
  }
View Full Code Here


    ShowCardsDialog showCards = new ShowCardsDialog();
    showCards.loadCards(name, cards, bigCard, Config.dimensions, gameId, false);
  }

  private void showCards(String title, CardsView cards, boolean required) {
    ShowCardsDialog showCards = new ShowCardsDialog();
    showCards.loadCards(title, cards, bigCard, Config.dimensions, gameId, required);
  }
View Full Code Here

    session.sendPlayerUUID(gameId, playerId);
  }//GEN-LAST:event_btnPlayerNameActionPerformed

  private void btnGraveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnGraveActionPerformed
    if (graveyard == null) {
      graveyard = new ShowCardsDialog();
    }
    graveyard.loadCards(player.getName() + " graveyard", player.getGraveyard(), bigCard, Config.dimensions, gameId, false);
  }//GEN-LAST:event_btnGraveActionPerformed
View Full Code Here

//        for (ShowCardsDialog reveal: revealed.values()) {
//            reveal.clearReloaded(); // seems not to be used
//        }
        for (RevealedView reveal: game.getRevealed()) {
            if (!revealed.containsKey(reveal.getName())) {
                ShowCardsDialog newReveal = new ShowCardsDialog();
                revealed.put(reveal.getName(), newReveal);
            }
            revealed.get(reveal.getName()).loadCards("Revealed " + reveal.getName(), CardsViewUtil.convertSimple(reveal.getCards(), loadedCards), bigCard, Config.dimensions, gameId, false);
//            toRemove.add(reveal.getName());
        }
View Full Code Here

        for (ShowCardsDialog looked: lookedAt.values()) {
            looked.clearReloaded();
        }
        for (LookedAtView looked: game.getLookedAt()) {
            if (!lookedAt.containsKey(looked.getName())) {
                ShowCardsDialog newLookedAt = new ShowCardsDialog();
                lookedAt.put(looked.getName(), newLookedAt);
            }
            lookedAt.get(looked.getName()).loadCards("Looked at by " + looked.getName(), CardsViewUtil.convertSimple(looked.getCards(), loadedCards), bigCard, Config.dimensions, gameId, false);
        }
    }
View Full Code Here

     * @param required
     * @param options
     * @param messageId
     */
    public void pickTarget(String message, CardsView cardView, GameView gameView, Set<UUID> targets, boolean required, Map<String, Serializable> options, int messageId) {
        ShowCardsDialog dialog = null;
        updateGame(gameView);
        Map<String, Serializable> options0 = options == null ? new HashMap<String, Serializable>() : options;
        if (cardView != null && cardView.size() > 0) {
            dialog = showCards(message, cardView, required, options0);
            options0.put("dialog", dialog);
View Full Code Here

        ((MageActionCallback)callback).hideGameUpdate(gameId);
    }

    private ShowCardsDialog showCards(String title, CardsView cards, boolean required, Map<String, Serializable> options) {
        hideAll();
        ShowCardsDialog showCards = new ShowCardsDialog();
        showCards.loadCards(title, cards, bigCard, Config.dimensionsEnlarged, gameId, required, options);
        return showCards;
    }
View Full Code Here

        session.sendPlayerUUID(gameId, playerId);
    }//GEN-LAST:event_btnPlayerNameActionPerformed

    private void btnGraveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnGraveActionPerformed
        if (graveyard == null) {
            graveyard = new ShowCardsDialog();
        }
        graveyard.loadCards(player.getName() + " graveyard", player.getGraveyard(), bigCard, Config.dimensions, gameId, false);
    }//GEN-LAST:event_btnGraveActionPerformed
View Full Code Here

TOP

Related Classes of mage.client.dialog.ShowCardsDialog

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.