Package mage.target

Examples of mage.target.Targets


    this.zone = zone;
    this.manaCosts = new ManaCostsImpl<ManaCost>();
    this.costs = new CostsImpl<Cost>();
    this.optionalCosts = new CostsImpl<Cost>();
    this.effects = new Effects();
    this.targets = new Targets();
    this.choices = new Choices();
  }
View Full Code Here


    }
  }

  @Override
  public Targets getTargets() {
    Targets targets = new Targets();
    for (T cost: this) {
      targets.addAll(cost.getTargets());
    }
    return targets;
  }
View Full Code Here

  @Override
  public abstract T copy();

  public CostImpl() {
    paid = false;
    targets = new Targets();
  }
View Full Code Here

    return variableCosts;
  }

  @Override
  public Targets getTargets() {
    Targets targets = new Targets();
    for (T cost: this) {
      targets.addAll(cost.getTargets());
    }
    return targets;
  }
View Full Code Here

    @Override
    public boolean apply(MageObject input, Game game) {
        Spell spell = game.getStack().getSpell(input.getId());
        if (spell != null) {
            Targets spellTargets = spell.getSpellAbility().getTargets();
            int numberOfTargets = 0;
            for (Target target : spellTargets) {
                numberOfTargets += target.getTargets().size();
            }
            if (numberOfTargets == targets) {
View Full Code Here

        secondCost.setPaid();
    }

    @Override
    public Targets getTargets() {
        Targets result = new Targets();
        result.addAll(firstCost.getTargets());
        result.addAll(secondCost.getTargets());
        return result;
    }
View Full Code Here

     * @param actionText what happens with the value (e.g. "to tap", "to exile from your graveyard")
     */
    public VariableCostImpl(String xText, String actionText) {
        id = UUID.randomUUID();
        paid = false;
        targets = new Targets();
        amountPaid = 0;
        this.xText = xText;
        this.actionText = actionText;
    }
View Full Code Here

    protected Targets targets;

    public CostImpl() {
        id = UUID.randomUUID();
        paid = false;
        targets = new Targets();
    }
View Full Code Here

        return variableCosts;
    }

    @Override
    public Targets getTargets() {
        Targets targets = new Targets();
        for (T cost: this) {
            if (cost.getTargets() != null) {
                targets.addAll(cost.getTargets());
            }
        }
        return targets;
    }
View Full Code Here

        }
    }

    @Override
    public Targets getTargets() {
        Targets targets = new Targets();
        for (T cost : this) {
            targets.addAll(cost.getTargets());
        }
        return targets;
    }
View Full Code Here

TOP

Related Classes of mage.target.Targets

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.