Examples of addCost()


Examples of mage.abilities.mana.DynamicManaAbility.addCost()

        this.addAbility(new EntersBattlefieldTappedAbility());
        // {T}: Add {B} to your mana pool.
        this.addAbility(new BlackManaAbility());
        // {2}, {T}: Add {B} to your mana pool for each black creature card in your graveyard.
        DynamicManaAbility ability = new DynamicManaAbility(Mana.BlackMana, new CardsInControllerGraveyardCount(filter), new GenericManaCost(2));
        ability.addCost(new TapSourceCost());
        this.addAbility(ability);
    }

    public CryptOfAgadeem(final CryptOfAgadeem card) {
        super(card);
View Full Code Here

Examples of mage.abilities.mana.GreenManaAbility.addCost()

        this.subtype.add("Druid");
        this.color.setBlack(true);
        this.power = new MageInt(1);
        this.toughness = new MageInt(2);
        Ability ability = new GreenManaAbility();
        ability.addCost(new PayLifeCost(1));
        this.addAbility(ability);
    }

    public BlightsoilDruid(final BlightsoilDruid card) {
        super(card);
View Full Code Here

Examples of mage.abilities.mana.SimpleManaAbility.addCost()

        // {T}, Sacrifice Generator Servant: Add {2} to your mana pool.  If that mana is spent on a creature spell, it gains haste until end of turn.
        Mana mana = Mana.ColorlessMana(2);
        mana.setFlag(true); // used to indicate this mana ability
        SimpleManaAbility ability = new SimpleManaAbility(Zone.BATTLEFIELD, mana, new TapSourceCost());
        ability.addCost(new SacrificeSourceCost());
        ability.getEffects().get(0).setText("Add {2} to your mana pool. If that mana is spent on a creature spell, it gains haste until end of turn.");
        this.addAbility(ability);
       
        this.addWatcher(new GeneratorServantWatcher());
        this.addAbility(new SimpleStaticAbility(Zone.ALL, new GeneratorServantHasteEffect()));
View Full Code Here

Examples of mage.abilities.mana.WhiteManaAbility.addCost()

        // {tap}, Pay 1 life: Add {G} or {W} to your mana pool.
        Ability ability1 = new GreenManaAbility();
        ability1.addCost(new PayLifeCost(1));
        this.addAbility(ability1);
        Ability ability2 = new WhiteManaAbility();
        ability2.addCost(new PayLifeCost(1));
        this.addAbility(ability2);
        // {1}, {tap}, Sacrifice Horizon Canopy: Draw a card.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(1), new GenericManaCost(1));
        ability.addCost(new TapSourceCost());
        ability.addCost(new SacrificeSourceCost());
View Full Code Here

Examples of org.opentripplanner.routing.core.Fare.addCost()

            fare = new Fare();
            fare.addFare(FareType.regular, new WrappedCurrency(Currency.getInstance(currency)),
                    cost);
            return fare;
        }
        fare.addCost(cost);
        return fare;
    }

    @Override
    public void setNextService(FareService service) {
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.