Package net.alteiar.trigger

Examples of net.alteiar.trigger.TriggerBean


    return "";
  }

  @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


    return "Ajoute un déclencheur sur la carte";
  }

  @Override
  public MapElement buildMapElement(Point position) {
    TriggerBean result = null;
    try {
      System.out.println("ici1");
      Class<? extends TriggerBean> tClass = (Class<? extends TriggerBean>) tGenerator
          .getTriggerClass(TriggerChoiceListGenerator.path,
              (String) listTrigger.getComboBoxe(0)
View Full Code Here

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

TOP

Related Classes of net.alteiar.trigger.TriggerBean

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.