Package beans.serializable

Examples of beans.serializable.Equipment


        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);
        objets.put(objet, 1);
       
        changeStat = new ArrayList<ChangeStatut>();
        objet = new Equipment("Hache", "Hache basique en bois", TypeEquipment.WEAPON, Panoply.NONE, 10, 5, 10, 10);
        objets.put(objet, 1);
       
        stats.setObjets(objets);
       
        final Fighter hero = new Fighter(stats, GeneralConstant.MONSTER_IMAGE_PATH + "heros.png");
View Full Code Here


        // Puis la liste des equipements filtrés du joueur
        final List<Equipment> listEquipment = selectedFighter.getStat().getListEquipment(currentType);

        if (sousList) {
            //Si nous etions dans la sous liste on recupere l'equipement choisie
            final Equipment currentEquipment = listEquipment.get(listModel.getCurrentPosition());

            //Puis on l'applique au type correspondant
            typeEquipmentsMap.put(currentType, currentEquipment);
            resetCursor();
            sousList = false;
View Full Code Here

    private void updateEquipmentArray() {
        final List<String> listEquipments = new ArrayList<String>();
        final List<String> listTypeEquipments = new ArrayList<String>();

        for (final TypeEquipment typeEquipment : TypeEquipment.values()) {
            final Equipment equipment = typeEquipmentsMap.get(typeEquipment);

            if (equipment != null) {
                listEquipments.add(equipment.getName());
            } else {
                listEquipments.add(" ");
            }

            listTypeEquipments.add(typeEquipment.toString());
View Full Code Here

TOP

Related Classes of beans.serializable.Equipment

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.