Package game.model

Examples of game.model.Emotion


        return statsController.getPermanentStats().getName();
    }

    private void initEmotion() {
        final String name = statsController.getPermanentStats().getName();
        EmotionFactory.addElement(name, new Emotion(GeneralConstant.PERSO_FACE_PATH, "normal", new Point(0, 0)));
        final Emotion emotion = EmotionFactory.getPanelEmotion(name);
        emotion.addEmotion("joie", new Point(3, 0));
        emotion.addEmotion("triste", new Point(2, 1));
    }
View Full Code Here


        equipment.put(TypeEquipment.WEAPON, (Equipment)objet);
       
        hero.getStat().getPermanentStats().setEquipment(equipment);
        hero.initEquipment();
       
        final Emotion emotion = new Emotion(GeneralConstant.PERSO_FACE_PATH, "normal", new Point(0,0));
        emotion.addEmotion("triste", new Point(1,0));
        emotion.addEmotion("joie", new Point(3,0));
        emotion.addEmotion("peur", new Point(3,2));
       
        EmotionFactory.addElement("hero", emotion);
       
        equipe.add(hero);
       
        final StatsPerso stats2 = new StatsPerso();
        stats2.setName("snes");
        stats2.setClasse(Classe.WARRIOR);
        stats2.setCharisma(5);
        stats2.setConstitution(5);
        stats2.setDexterity(5);
        stats2.setHpMaxModifier(5);
        stats2.setIntelligence(5);
        stats2.setMpMaxModifier(5);
        stats2.setStrength(5);
        stats2.setWisdom(5);
        stats2.setSkills(new ArrayList<Skill>());
        stats2.setSpells(new ArrayList<Spell>());
       
        stats2.setObjets(objets);
       
        final Fighter hero2 = new Fighter(stats2, GeneralConstant.MONSTER_IMAGE_PATH + "heros.png");
        hero2.getStat().getPermanentStats().setEquipment(equipment);
        hero2.initEquipment();
       
        final Emotion emotion2 = new Emotion(GeneralConstant.PERSO_FACE_PATH, "normal", new Point(0,0));
        emotion2.addEmotion("triste", new Point(1,0));
        emotion2.addEmotion("joie", new Point(3,0));
        emotion2.addEmotion("peur", new Point(3,2));
       
        EmotionFactory.addElement("hero2", emotion);
       
        equipe.add(hero2);
View Full Code Here

TOP

Related Classes of game.model.Emotion

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.