Examples of newId()


Examples of mage.abilities.TriggeredAbility.newId()

  }

  @Override
  public void addTriggeredAbility(TriggeredAbility ability) {
    TriggeredAbility newAbility = (TriggeredAbility) ability.copy();
    newAbility.newId();
    state.addTriggeredAbility(newAbility);
  }
 
  @Override
  public void addDelayedTriggeredAbility(DelayedTriggeredAbility delayedAbility) {
View Full Code Here

Examples of mage.abilities.TriggeredAbility.newId()

            manaAbiltiy.activate(this, false);
            manaAbiltiy.resolve(this);
        }
        else {
            TriggeredAbility newAbility = ability.copy();
            newAbility.newId();
            state.addTriggeredAbility(newAbility);
        }
    }

    @Override
View Full Code Here

Examples of mage.abilities.effects.ContinuousEffect.newId()

  @Override
  public void addEffect(ContinuousEffect continuousEffect, Ability source) {
    ContinuousEffect newEffect = (ContinuousEffect)continuousEffect.copy();
    Ability newAbility = source.copy();
    newEffect.newId();
    newEffect.setTimestamp();
    newEffect.init(newAbility, this);
    state.addEffect(newEffect, newAbility);
  }
View Full Code Here

Examples of mage.abilities.effects.ContinuousEffect.newId()

    @Override
    public void addEffect(ContinuousEffect continuousEffect, Ability source) {
        Ability newAbility = source.copy();

        ContinuousEffect newEffect = continuousEffect.copy();
        newEffect.newId();
        newEffect.setTimestamp();
        newEffect.init(newAbility, this);

        state.addEffect(newEffect, newAbility);
    }
View Full Code Here

Examples of mage.abilities.effects.common.CopyEffect.newId()

        applier.apply(this, permanent);

        Ability newAbility = source.copy();

        CopyEffect newEffect = new CopyEffect(duration, permanent, copyToPermanent.getId());
        newEffect.newId();
        newEffect.setTimestamp();
        newEffect.setApplier(applier);
        newEffect.init(newAbility, this);
       
        // handle copies of copies
View Full Code Here

Examples of mage.game.stack.StackAbility.newId()

                        stack.put(stackObject.getId(),
                                new StackAbilityView(game, (StackAbility)stackObject, object.getName(), new CardView(new EmblemView(((Emblem)object),sourceCard))));
                        checkPaid(stackObject.getId(), ((StackAbility)stackObject));
                    } else {
                        StackAbility stackAbility = ((StackAbility)object);
                        stackAbility.newId();
                        stack.put(stackObject.getId(), new CardView(((StackAbility)stackObject)));
                        checkPaid(stackObject.getId(), ((StackAbility)stackObject));
                    }
                } else {
                    logger.error("Stack Object for stack ability not found: " + stackObject.getStackAbility().getRule());
View Full Code Here

Examples of net.java.textilej.parser.IdGenerator.newId()

        level = 1;
      }
      while (level <= current.getLevel()) {
        current = current.getParent();
      }
      current = createOutlineItem(current,idGenerator.newId(kind,fullLabelText), offset, length, label);
      current.setTooltip(tooltip);
      current.setKind(kind);
    }
   
    return root;
View Full Code Here

Examples of org.apache.abdera.factory.Factory.newID()

    iri.setValue("http://example.org/foo");
    assertEquals(iri.getValue().toString(), "http://example.org/foo");
    iri = factory.newIcon();
    iri.setValue("http://example.org/foo");
    assertEquals(iri.getValue().toString(), "http://example.org/foo");
    iri = factory.newID();
    assertNotNull(iri);
    iri = factory.newID();
    iri.setValue("http://example.org/foo");
    assertEquals(iri.getValue().toString(), "http://example.org/foo");
    iri = factory.newID();
View Full Code Here

Examples of org.apache.abdera.factory.Factory.newID()

    iri = factory.newIcon();
    iri.setValue("http://example.org/foo");
    assertEquals(iri.getValue().toString(), "http://example.org/foo");
    iri = factory.newID();
    assertNotNull(iri);
    iri = factory.newID();
    iri.setValue("http://example.org/foo");
    assertEquals(iri.getValue().toString(), "http://example.org/foo");
    iri = factory.newID();
    iri.setValue("http://example.org/foo");
    assertEquals(iri.getValue().toString(), "http://example.org/foo");
View Full Code Here

Examples of org.apache.abdera.factory.Factory.newID()

    iri = factory.newID();
    assertNotNull(iri);
    iri = factory.newID();
    iri.setValue("http://example.org/foo");
    assertEquals(iri.getValue().toString(), "http://example.org/foo");
    iri = factory.newID();
    iri.setValue("http://example.org/foo");
    assertEquals(iri.getValue().toString(), "http://example.org/foo");
    iri = factory.newIRIElement(Constants.ID, null);
    assertNotNull(iri);
    iri = factory.newIRIElement(Constants.ID, 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.