Package mage.abilities.dynamicvalue.common

Examples of mage.abilities.dynamicvalue.common.StaticValue


    private DynamicValue power;
    private DynamicValue toughness;
    private boolean lockedIn;

    public BoostTargetEffect(int power, int toughness, Duration duration) {
        this(new StaticValue(power), new StaticValue(toughness), duration, false);
    }
View Full Code Here


    @Override
    public void init(Ability source, Game game) {
        super.init(source, game);
        if (lockedIn) {
            power = new StaticValue(power.calculate(game, source, this));
            toughness = new StaticValue(toughness.calculate(game, source, this));
        }
    }
View Full Code Here

public class PutTopCardOfLibraryIntoGraveTargetEffect extends OneShotEffect {

    private DynamicValue numberCards;

    public PutTopCardOfLibraryIntoGraveTargetEffect(int numberCards) {
        this(new StaticValue(numberCards));
    }
View Full Code Here

    private DynamicValue value;
    private String rule = null;

    public BushidoAbility(int value) {
        this(new StaticValue(value));
        rule = new StringBuilder("Bushido ").append(value).toString();
    }
View Full Code Here

public class LoseLifeAllPlayersEffect extends OneShotEffect {

    private final DynamicValue amount;

    public LoseLifeAllPlayersEffect(int amount) {
        this(new StaticValue(amount));
    }
View Full Code Here

public class LoseLifeTargetEffect extends OneShotEffect {

    protected DynamicValue amount;

    public LoseLifeTargetEffect(int amount) {
        this(new StaticValue(amount));
    }
View Full Code Here

    public SacrificeOpponentsEffect(FilterPermanent filter) {
        this(1, filter);
    }
    public SacrificeOpponentsEffect(int amount, FilterPermanent filter) {
        this(new StaticValue(amount), filter);
    }
View Full Code Here

    private DynamicValue amount;
    private FilterPermanent filter;

    public DamageEverythingEffect(int amount) {
        this(new StaticValue(amount), new FilterCreaturePermanent());
    }
View Full Code Here

    public DamageEverythingEffect(int amount) {
        this(new StaticValue(amount), new FilterCreaturePermanent());
    }

    public DamageEverythingEffect(int amount, FilterPermanent filter) {
        this(new StaticValue(amount), filter);
    }
View Full Code Here

public class SoulshiftAbility extends DiesTriggeredAbility {
   
    private final DynamicValue amount;

    public SoulshiftAbility(int amount) {
        this(new StaticValue(amount));
    }
View Full Code Here

TOP

Related Classes of mage.abilities.dynamicvalue.common.StaticValue

Copyright © 2018 www.massapicom. 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.