Examples of overrideRules()


Examples of mage.view.CardView.overrideRules()

          ((PermanentView)card).overrideTapped(false);
        }
      }
      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;
      }
View Full Code Here

Examples of mage.view.CardView.overrideRules()

  }
 
  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;
    }
View Full Code Here

Examples of mage.view.CardView.overrideRules()

        for (CardView card : cards.values()) {

            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;
            }
View Full Code Here

Examples of mage.view.CardView.overrideRules()

    }

    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;
        }
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.