Examples of EffectSuite


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

Examples of net.alteiar.effectBean.EffectSuite

    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

Examples of net.alteiar.effectBean.EffectSuite

      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.mine.EffectSuite

  public void testSuiteEffect() {
    MapBean map = addBean(new MapBean("map"));

    MapElementSize width = new MapElementSizePixel(10.0);
    MapElementSize height = new MapElementSizePixel(10.0);
    EffectSuite effectSuite = addBean(new EffectSuite());

    MyInternalEffect basicEffect1 = addBean(new MyInternalEffect());
    MyInternalEffect basicEffect2 = addBean(new MyInternalEffect());

    effectSuite.addEffect(basicEffect1.getId());
    effectSuite.addEffect(basicEffect2.getId());

    PositionTrigger positionTrigger = new PositionTrigger(
        new CircleElement(new Point(20, 20), Color.red, width),
        effectSuite.getId(), RectangleElement.class, map.getId());

    MapElementFactory.buildMapElement(positionTrigger, map);
    positionTrigger = getBeans(positionTrigger);

    RectangleElement rectangleElement = new RectangleElement(
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.