Package mage.cards

Examples of mage.cards.MageCard.update()


    }
    MageCard cardImg = Plugins.getInstance().getMageCard(card, bigCard, dimension, gameId);
    cardImg.setBounds(rectangle);
    cardArea.add(cardImg);
    cardArea.moveToFront(cardImg);
    cardImg.update(card);
    cardImg.addMouseListener(this);
    cardImg.setCardBounds(rectangle.x, rectangle.y, Config.dimensions.frameWidth, Config.dimensions.frameHeight);
  }

  private void loadCardsMany(CardsView showCards, BigCard bigCard, CardDimensions dimension, UUID gameId) {
View Full Code Here


  private void addCard(CardView card, BigCard bigCard, UUID gameId) {
    MageCard cardImg = Plugins.getInstance().getMageCard(card, bigCard, Config.dimensions, gameId);
    cards.put(card.getId(), cardImg);
    cardImg.addMouseListener(this);
    add(cardImg);
    cardImg.update(card);
    cards.put(card.getId(), cardImg);
  }

  public void drawCards() {
    int maxWidth = this.getParent().getWidth();
View Full Code Here

  private void addCard(CardView card, BigCard bigCard, UUID gameId, Rectangle rectangle) {
    MageCard cardImg = Plugins.getInstance().getMageCard(card, bigCard, Config.dimensions, gameId);
    cardImg.setBounds(rectangle);
    cardArea.add(cardImg);
    cardArea.moveToFront(cardImg);
    cardImg.update(card);
    cardImg.addMouseListener(this);
    cardImg.setCardBounds(rectangle.x, rectangle.y, Config.dimensions.frameWidth, Config.dimensions.frameHeight);
  }
 
  public void addCardEventListener(Listener<Event> listener) {
View Full Code Here

            cardDimension = new Dimension(Config.dimensions.frameWidth, Config.dimensions.frameHeight);
        }
        final MageCard cardImg = Plugins.getInstance().getMageCard(card, bigCard, cardDimension, gameId, true);
        cardImg.setBounds(rectangle);
        jLayeredPane.add(cardImg, JLayeredPane.DEFAULT_LAYER, 10);
        cardImg.update(card);
        cardImg.setCardBounds(rectangle.x, rectangle.y, cardDimensions.frameWidth, cardDimensions.frameHeight);

        boolean implemented = !card.getRarity().equals(Rarity.NA);

        GlowText label = new GlowText();
View Full Code Here

        }
        MageCard cardImg = Plugins.getInstance().getMageCard(card, bigCard, cardDimension, gameId, drawImage);
        cards.put(card.getId(), cardImg);
        cardImg.addMouseListener(this);
        add(cardImg);
        cardImg.update(card);
        cards.put(card.getId(), cardImg);
    }

    @Override
    public void drawCards(SortSetting sortSetting) {
View Full Code Here

            Collections.sort(sortedCards, new CardViewRarityComparator());
            for (CardView card: sortedCards) {
                MageCard cardImg = Plugins.getInstance().getMageCard(card, bigCard, dimension, null, true);
                cardImg.addMouseListener(this);
                add(cardImg);
                cardImg.update(card);
                rectangle.setLocation(curColumn * (cardDimension.frameWidth + offsetX) + offsetX, curRow * (rectangle.height + offsetY) + offsetY);

                cardImg.setBounds(rectangle);
                cardImg.setCardBounds(rectangle.x, rectangle.y, rectangle.width, rectangle.height);
                curColumn++;
View Full Code Here

        if (cardDimension == null) {
            cardDimension = new Dimension(Config.dimensions.frameWidth, Config.dimensions.frameHeight);
        }
        MageCard cardImg = Plugins.getInstance().getMageCard(card, bigCard, cardDimension, gameId, true);
        cardArea.add(cardImg);
        cardImg.update(card);
        cardImg.addMouseListener(this);
        return cardImg;
    }
   
View Full Code Here

        if (listener != null) {
            cardImg.addMouseListener(listener);
        }
        cardArea.add(cardImg);
        cardArea.moveToFront(cardImg);
        cardImg.update(card);
        cardImg.setCardBounds(rectangle.x, rectangle.y, cardDimensions.frameWidth, cardDimensions.frameHeight);
        cardImg.showCardTitle();
    }

    private void loadCardsMany(CardsView showCards, BigCard bigCard, UUID gameId, MouseListener listener, CardDimensions cardDimensions) {
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.