Package beans.enumeration

Examples of beans.enumeration.Stat


        }
    }

    private Cost getFromRowSet(final ResultSet set) {
        try {
            final Stat stat = Stat.valueOf(set.getString(STAT));
            final int impact = set.getInt(IMPACT);
            return new Cost(stat, impact);
        } catch (final SQLException ex) {
            Logger.getLogger(ChangeStatutControl.class.getName()).log(Level.SEVERE, null, ex);
            return null;
View Full Code Here


    private void acceptActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_acceptActionPerformed
        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

        this.dispose();
    }//GEN-LAST:event_annuleActionPerformed

    private void acceptActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_acceptActionPerformed
        final int sImpact = Integer.parseInt(impact.getText());
        final Stat sStatRef = (Stat) statRef.getSelectedItem();
        model.addCost(sStatRef, sImpact);
        this.dispose();
    }//GEN-LAST:event_acceptActionPerformed
View Full Code Here

        //FIXME : a faire
    }

    public void appliqueChangeStatut(final List<ChangeStatut> changeStatuts) {
        for (final ChangeStatut statut : changeStatuts) {
            final Stat statReference = statut.getStatReference();
            int damage = statut.getImpact() * statsController.getTotal(statReference);

            final Stat statCible = statut.getStatCible();
            switch (statut.getType()) {
                case AGRESSIVE:
                    //FIXME : A voir en fonction des cas, pour l'instant c'est du temporaire
                    statsController.substract(damage, statCible, false);
                    break;
View Full Code Here

TOP

Related Classes of beans.enumeration.Stat

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.