Examples of CardTypePredicate


Examples of mage.filter.predicate.mageobject.CardTypePredicate

        this("planeswalker");
    }

    public FilterPlaneswalkerPermanent(String name) {
        super(name);
        this.add(new CardTypePredicate(CardType.PLANESWALKER));
    }
View Full Code Here

Examples of mage.filter.predicate.mageobject.CardTypePredicate

        this("enchantment");
    }

    public FilterEnchantment(String name) {
        super(name);
        this.add(new CardTypePredicate(CardType.ENCHANTMENT));
    }
View Full Code Here

Examples of mage.filter.predicate.mageobject.CardTypePredicate

        this("artifact");
    }

    public FilterArtifactPermanent(String name) {
        super(name);
        this.add(new CardTypePredicate(CardType.ARTIFACT));
    }
View Full Code Here

Examples of mage.filter.predicate.mageobject.CardTypePredicate

*/
public class FilterBasicLandCard extends FilterCard {

    public FilterBasicLandCard() {
        super("basic land card");
        this.add(new CardTypePredicate(CardType.LAND));
        this.add(new SupertypePredicate("Basic"));
    }
View Full Code Here

Examples of mage.filter.predicate.mageobject.CardTypePredicate

        super("creature spell");
    }

    public FilterCreatureSpell(String name) {
        super(name);
        this.add(new CardTypePredicate(CardType.CREATURE));
    }
View Full Code Here

Examples of mage.filter.predicate.mageobject.CardTypePredicate

        this("nonland card");
    }

    public FilterNonlandCard(String name) {
        super(name);
        this.add(Predicates.not(new CardTypePredicate(CardType.LAND)));
    }
View Full Code Here

Examples of mage.filter.predicate.mageobject.CardTypePredicate

        if (withDamage) {
            addCost(new PayLifeCost(1));
        }
        addCost(new SacrificeSourceCost());
        FilterCard filter = new FilterCard(subTypeNames(subtypes));
        filter.add(new CardTypePredicate(CardType.LAND));
        ArrayList<Predicate<MageObject>> subtypePredicates = new ArrayList<>();
        for (String subtype : subtypes) {
            subtypePredicates.add(new SubtypePredicate(subtype));
        }
        filter.add(Predicates.or(subtypePredicates));
View Full Code Here

Examples of mage.filter.predicate.mageobject.CardTypePredicate

public class TargetBasicLandCard extends TargetCard {

    public TargetBasicLandCard(Zone zone) {
        super(zone);
        filter.add(new SupertypePredicate("Basic"));
        filter.add(new CardTypePredicate(CardType.LAND));
    }
View Full Code Here

Examples of mage.filter.predicate.mageobject.CardTypePredicate

            } else if (choosenType.equals(CardType.TRIBAL.toString())) {
                type = CardType.TRIBAL;
            }
            if (type != null) {
                FilterPermanent filter = new FilterControlledPermanent(new StringBuilder("permanent you control of type ").append(type.toString()).toString());
                filter.add(new CardTypePredicate(type));

                TargetPermanent target = new TargetControlledPermanent(1, 1, filter, false);
                target.setNotTarget(true);

                // you always go first
View Full Code Here

Examples of mage.filter.predicate.mageobject.CardTypePredicate

        this("instant or sorcery card");
    }

    public FilterInstantOrSorceryCard(String name) {
        super(name);
        this.add(Predicates.or(new CardTypePredicate(CardType.INSTANT), new CardTypePredicate(CardType.SORCERY)));
    }
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.