Package beans.serializable

Examples of beans.serializable.ChangeStatut


        }
    }

    private ChangeStatut getFromRowSet(final ResultSet set) {
        try {
            final ChangeStatut changeStatut = new ChangeStatut();
            changeStatut.setImpact(set.getInt(IMPACT));
            changeStatut.setElement(Element.valueOf(set.getString(ELEMENT)));
            changeStatut.setStat(Stat.valueOf(set.getString(STATREF)));
            changeStatut.setStatCible(Stat.valueOf(set.getString(STATCIBLE)));
            changeStatut.setType(Type.valueOf(set.getString(TYPE)));
            return changeStatut;
        } catch (final SQLException ex) {
            Logger.getLogger(ChangeStatutControl.class.getName()).log(Level.SEVERE, null, ex);
            return null;
        }
View Full Code Here


        final beans.enumeration.Type sType = (beans.enumeration.Type) type.getSelectedItem();
        final Element sElement = (Element) element.getSelectedItem();
        final int sImpact = Integer.parseInt(impact.getText());
        final Stat sStatRef = (Stat) statRef.getSelectedItem();
        final Stat sStatCible = (Stat) statCible.getSelectedItem();
        final ChangeStatut changeStatut = new ChangeStatut(sType, sElement, sImpact, sStatRef, sStatCible);
        objetModel.addChangeStatut(changeStatut);
        this.dispose();
    }//GEN-LAST:event_acceptActionPerformed
View Full Code Here

        stats.setSkills(new ArrayList<Skill>());
        stats.setSpells(new ArrayList<Spell>());

        final Map<Objet, Integer> objets = new HashMap<Objet, Integer>();
        List<ChangeStatut> changeStat = new ArrayList<ChangeStatut>();
        changeStat.add(new ChangeStatut(Type.HEAL, Element.AQUA, 10, Stat.DEXTERITY, Stat.HP));
        Objet objet = new Objet("Potion", "Soin", Target.ALLY, changeStat, Utilization.TWICE);
        objets.put(objet, 1);
       
        changeStat = new ArrayList<ChangeStatut>();
        changeStat.add(new ChangeStatut(Type.HEAL, Element.AQUA, 10, Stat.DEXTERITY, Stat.MP));
        objet = new Objet("Potion mana", "Magie", Target.ALLY, changeStat, Utilization.TWICE);
        objets.put(objet, 1);
       
        changeStat = new ArrayList<ChangeStatut>();
        objet = new Equipment("Epee", "Epee basique en bois", TypeEquipment.WEAPON, Panoply.NONE, 5, 3, 10, 10);
View Full Code Here

        //skillList.addAll(InventorySkillModel.fighterListModel.get(currentFighter).getStat().getPermanentStats().getSkills());
       
        skillList.add(new Skill("Encourager", "Augmenter la FOR de CHA*2", Target.GROUP, null, null, Utilization.IN_BATTLE, 1));
        skillList.add(new Skill("Moquerie", "Diminuer la DEF de CHA*2, mais attire ses coups", Target.ENEMY, null, null, Utilization.IN_BATTLE, 1));
        ArrayList<ChangeStatut> changes = new ArrayList<ChangeStatut>();
        changes.add(new ChangeStatut(Type.HEAL, Element.NONE, 2, Stat.CHARISMA, Stat.HP));
        skillList.add(new Skill("Prière", "Soigne CHA*2 HP", Target.GROUP, changes, null, Utilization.TWICE, 1));

        //Pour chaque sort dans la liste des sorts du combattant
        for (final Skill spell : skillList) {
            //Ajouter le nom du sort à la liste à afficher
View Full Code Here

TOP

Related Classes of beans.serializable.ChangeStatut

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.