Examples of Effect


Examples of mage.abilities.effects.Effect

        this.toughness = new MageInt(3);

        // Defender
        this.addAbility(DefenderAbility.getInstance());
        // As long as Pillar of War is enchanted, it can attack as though it didn't have defender.
        Effect effect = new ConditionalAsThoughEffect(
                new CanAttackAsThoughtItDidntHaveDefenderEffect(Duration.WhileOnBattlefield),
                new EnchantedCondition());
        effect.setText("As long as {this} is enchanted, it can attack as though it didn't have defender");
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, effect));       
       
    }
View Full Code Here

Examples of mage.abilities.effects.Effect

        this.color.setBlue(true);
        this.power = new MageInt(3);
        this.toughness = new MageInt(3);

        // Whenever a Sliver deals combat damage to a player, its controller may draw a card.
        Effect effect = new DrawCardTargetEffect(1);
        effect.setText("its controller may draw a card");
        this.addAbility(new DealsDamageToAPlayerAllTriggeredAbility(effect,
                        new FilterCreaturePermanent("Sliver", "a Sliver"),
                        true, true, true));
    }
View Full Code Here

Examples of mods.railcraft.common.util.network.PacketEffect.Effect

        byte effectId = data.readByte();
        if (effectId < 0)
            return;

        Effect effect = Effect.values()[effectId];
        switch (effect) {
            case TELEPORT:
                doTeleport(data);
                break;
            case FIRESPARK:
View Full Code Here

Examples of net.alteiar.effectBean.Effect

    return "";
  }

  @Override
  public void applyModification() {
    Effect e = getMapElement();
    Set<Integer> set = new HashSet();
    set.addAll(selectedTriggers);
    ArrayList<Integer> distinctList = new ArrayList(set);
    for (Integer indexEffect : distinctList) {
      EffectSuite s = (EffectSuite) triggers.get(indexEffect).getEffect();
View Full Code Here

Examples of net.alteiar.effectBean.Effect

      ColoredShape shape = (ColoredShape) ((PanelMapElementBuilder) shapePanel
          .getModelListChoice(0, shapePanel.getCurrentPan(0)))
          .buildMapElement(position);
      System.out.println("ici5");
      // TODO must bug here null pointer exception
      Effect e = new EffectSuite(shape, false, MapElement.class, null);
      System.out.println("ici6");
      Class<?>[] parameterTypes = { ColoredShape.class, Effect.class,
          Class.class };
      System.out.println("ici7");
      Constructor<? extends TriggerBean> tConstructor = tClass
          .getConstructor(parameterTypes);
      System.out.println("ici8");
      Object[] parameter = { shape, e, activatorClass };
      System.out.println("ici9");
      result = tConstructor.newInstance(parameter);
      System.out.println("ici10");
    } catch (ClassNotFoundException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    } catch (NoSuchMethodException e1) {
      // TODO Auto-generated catch block
      e1.printStackTrace();
    } catch (SecurityException e1) {
      // TODO Auto-generated catch block
View Full Code Here

Examples of net.alteiar.effectBean.Effect

  }
 
  @SuppressWarnings({ "finally", "unchecked" })
  @Override
  public MapElement buildMapElement(Point position) {
    Effect result=null;
    try {
      Class<? extends Effect> tClass=(Class<? extends Effect>) eGenerator.getEffectClass(EffectChoiceListGenerator.path,(String)listEffect.getComboBoxe(0).getSelectedItem());
      Class<? extends BasicBean> elementClass=(Class<? extends BasicBean>) eGenerator.getElementClass(EffectChoiceListGenerator.path,(String)listEffect.getComboBoxe(1).getSelectedItem(),(String)listEffect.getComboBoxe(0).getSelectedItem());
      ColoredShape shape=(ColoredShape) ((PanelMapElementBuilder)shapePanel.getModelListChoice(0,shapePanel.getCurrentPan(0))).buildMapElement(position);
      Boolean oneUse=isOneUse.isSelected();
View Full Code Here

Examples of net.alteiar.effectBean.Effect

        JButton bouton=new JButton("create");
        bouton.addActionListener(new ActionListener(){
     
      public void actionPerformed(ActionEvent arg0) {
        // TODO Auto-generated method stub
         Effect effet=(Effect) monPanel.buildMapElement(new Point(15,15));
           System.out.println("Effect class="+effet.getClass().getCanonicalName());
           System.out.println("shape class="+effet.getAreaOfEffect().getClass().getCanonicalName());
           System.out.println("Boolean class="+effet.isOneUse());
           System.out.println("Activators class="+effet.getTypeActOn().getCanonicalName());
      }
         
        });
        test.add(bouton);
        monPanel.setVisible(true);
View Full Code Here

Examples of org.bukkit.Effect

      }
      if (killSection.getBoolean("reward.airstrike")) {
        this.airstrikePlayers.add(player.getName());
      }
      if (killSection.contains("reward.effect")) {
        Effect effect = Effect.valueOf(killSection.getString("reward.effect"));
        player.getWorld().playEffect(player.getLocation(), effect, null);
      }
    }
  }
View Full Code Here

Examples of org.bukkit.Effect

    public void execute(ScriptEntry scriptEntry) throws CommandExecutionException {

        // Extract objects from ScriptEntry
        List<dLocation> locations = (List<dLocation>) scriptEntry.getObject("location");
        List<dPlayer> targets = (List<dPlayer>) scriptEntry.getObject("targets");
        Effect effect = (Effect) scriptEntry.getObject("effect");
        ParticleEffect particleEffect = (ParticleEffect) scriptEntry.getObject("particleeffect");
        Element iconcrack = scriptEntry.getElement("iconcrack");
        Element radius = scriptEntry.getElement("radius");
        Element data = scriptEntry.getElement("data");
        Element qty = scriptEntry.getElement("qty");
        Element offset = scriptEntry.getElement("offset");

        // Report to dB
        dB.report(scriptEntry, getName(), (effect != null ? aH.debugObj("effect", effect.name()) :
                particleEffect != null ? aH.debugObj("special effect", particleEffect.name()) :
                iconcrack.debug()) +
                aH.debugObj("locations", locations.toString()) +
                (targets != null ? aH.debugObj("targets", targets.toString()): "") +
                radius.debug() +
View Full Code Here

Examples of org.bukkit.Effect

    @Override
    public boolean playEffect(Vector position, int type, int data) {
        World world = getWorld();

        final Effect effect = effects.get(type);
        if (effect == null) {
            return false;
        }

        world.playEffect(BukkitUtil.toLocation(world, position), effect, data);
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.