Package net.alteiar.effectBean

Examples of net.alteiar.effectBean.EffectSuite


  }

  @Override
  public void applyModification() {
    TriggerBean trigger = getMapElement();
    EffectSuite effect = (EffectSuite) trigger.getEffect();
    Set<Integer> set = new HashSet<Integer>();
    set.addAll(selectedEffects);
    ArrayList<Integer> distinctList = new ArrayList<Integer>(set);
    for (Integer indexEffect : distinctList) {
      effect.addEffect(effets.get(indexEffect));
    }
  }
View Full Code Here


    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();
      s.addEffect(e);
    }
  }
View Full Code Here

      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

TOP

Related Classes of net.alteiar.effectBean.EffectSuite

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.