Examples of overrideTargets()


Examples of mage.view.CardView.overrideTargets()

      }
      if (card instanceof StackAbilityView) {
        CardView tmp = ((StackAbilityView)card).getSourceCard();
        tmp.overrideRules(card.getRules());
        tmp.setIsAbility(true);
        tmp.overrideTargets(card.getTargets());
        tmp.overrideId(card.getId());
        card = tmp;
      }
      if (!cards.containsKey(card.getId())) {
        addCard(card, bigCard, gameId);
View Full Code Here

Examples of mage.view.CardView.overrideTargets()

  private void addCard(CardView card, BigCard bigCard, UUID gameId, Rectangle rectangle, CardDimensions dimension) {
    if (card instanceof AbilityView) {
      CardView tmp = ((AbilityView)card).getSourceCard();
      tmp.overrideRules(card.getRules());
      tmp.setIsAbility(true);
      tmp.overrideTargets(card.getTargets());
      tmp.setAbility(card); // cross-reference, required for ability picker
      card = tmp;
    }
    MageCard cardImg = Plugins.getInstance().getMageCard(card, bigCard, dimension, gameId);
    cardImg.setBounds(rectangle);
View Full Code Here

Examples of mage.view.CardView.overrideTargets()

            if (card instanceof StackAbilityView) {
                CardView tmp = ((StackAbilityView)card).getSourceCard();
                tmp.overrideRules(card.getRules());
                tmp.setIsAbility(true);
                tmp.overrideTargets(card.getTargets());
                tmp.overrideId(card.getId());
                card = tmp;
            }

            MageCard cardImg = Plugins.getInstance().getMageCard(card, bigCard, getCardDimension(), gameId, true);
View Full Code Here

Examples of mage.view.CardView.overrideTargets()

    private void addCard(CardView card, BigCard bigCard, UUID gameId, Rectangle rectangle, Dimension dimension, CardDimensions cardDimensions, MouseListener listener) {
        if (card instanceof AbilityView) {
            CardView tmp = ((AbilityView) card).getSourceCard();
            tmp.overrideRules(card.getRules());
            tmp.setIsAbility(true);
            tmp.overrideTargets(card.getTargets());
            tmp.setAbility(card); // cross-reference, required for ability picker
            card = tmp;
        }
        MageCard cardImg = Plugins.getInstance().getMageCard(card, bigCard, dimension, gameId, true);
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.