Examples of StaticValue


Examples of mage.abilities.dynamicvalue.common.StaticValue

        Player player = game.getPlayer(source.getFirstTarget());
        Player controller = game.getPlayer(source.getControllerId());
        Card sourceCard = game.getCard(source.getSourceId());
        if (player != null && controller != null) {
            if (revealAllCards) {
                this.numberCardsToReveal = new StaticValue(player.getHand().size());
            }
            int numberToReveal = this.numberCardsToReveal.calculate(game, source, this);
            if (numberToReveal > 0) {
                Cards revealedCards = new CardsImpl(Zone.HAND);               
                numberToReveal = Math.min(player.getHand().size(), numberToReveal);
View Full Code Here

Examples of mage.abilities.dynamicvalue.common.StaticValue

        this.randomDiscard = randomDiscard;
        this.amount = amount;
    }

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

Examples of mage.abilities.dynamicvalue.common.StaticValue

    public DiscardTargetEffect(int amount) {
        this(new StaticValue(amount));
    }

    public DiscardTargetEffect(int amount, boolean randomDiscard) {
        this(new StaticValue(amount), randomDiscard);
    }
View Full Code Here

Examples of mage.abilities.dynamicvalue.common.StaticValue

    }
   
    public DiscardTargetEffect(int amount, boolean randomDiscard, boolean setTargetPointer) {
        super(Outcome.Discard);
        this.randomDiscard = randomDiscard;
        this.amount = new StaticValue(amount);
        this.setTargetPointer = setTargetPointer;
    }
View Full Code Here

Examples of mage.abilities.dynamicvalue.common.StaticValue

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

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

Examples of mage.abilities.dynamicvalue.common.StaticValue

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

Examples of mage.abilities.dynamicvalue.common.StaticValue

            FilterCard pickFilter, Zone targetZoneLookedCards, boolean putOnTop, boolean reveal) {
        this(numberOfCards, mayShuffleAfter, numberToPick, pickFilter, targetZoneLookedCards, putOnTop, reveal, false);
    }

    public LookLibraryAndPickControllerEffect(int numberOfCards, int numberToPick, FilterCard pickFilter, boolean upTo) {
        this(new StaticValue(numberOfCards), false, new StaticValue(numberToPick), pickFilter, Zone.LIBRARY, false, true, upTo);
    }
View Full Code Here

Examples of org.jfree.formula.lvalues.StaticValue

      value = jj_consume_token(COLUMN_LOOKUP);
                                retval = new ContextLookup (ParserTools.stripQuote(value.image));
      break;
    case STRING_LITERAL:
      value = jj_consume_token(STRING_LITERAL);
                                 retval = new StaticValue (ParserTools.stripQuote(value.image), TextType.TYPE);
      break;
    case UNSIGNED_NUMERIC_LITERAL:
      value = jj_consume_token(UNSIGNED_NUMERIC_LITERAL);
                                           retval = new StaticValue (new BigDecimal (value.image), NumberType.GENERIC_NUMBER);
      break;
    case UNSIGNED_INTEGER:
      value = jj_consume_token(UNSIGNED_INTEGER);
                                   retval = new StaticValue (new BigDecimal (value.image), NumberType.GENERIC_NUMBER);
      break;
    case NULL:
      jj_consume_token(NULL);
               retval = new StaticValue (null);
      break;
    case L_BRACE:
      jj_consume_token(L_BRACE);
      retval = parseArray();
      jj_consume_token(R_BRACE);
View Full Code Here

Examples of org.nutz.ioc.val.StaticValue

  public ValueProxy make(IocMaking ing, IocValue iv) {
    String value = iv.getValue().toString();
    if ("app".equals(iv.getType())) {
      if ("$servlet".equalsIgnoreCase(value))
        return new StaticValue(sc);
      return new StaticValue(sc.getAttribute(value));
    }
    return null;
  }
View Full Code Here

Examples of org.nutz.ioc.val.StaticValue

    public ValueProxy make(IocMaking ing, IocValue iv) {
        String value = iv.getValue().toString();
        if ("app".equals(iv.getType())) {
            if ("$servlet".equalsIgnoreCase(value))
                return new StaticValue(sc);
            return new StaticValue(sc.getAttribute(value));
        }
        return null;
    }
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.