Package game.control

Examples of game.control.StatsController


     * @since Fighter 1.0
     */
    public Fighter(final StatsPerso statPerso, final String imagePath) {
        allie = false;

        this.statsController = new StatsController(statPerso);
        initEquipment();

    }
View Full Code Here


    public Image getImage() {
        final BufferedImage image = new BufferedImage(background.getWidth(null), background.getHeight(null), BufferedImage.TYPE_INT_ARGB);
        final Graphics2D g = image.createGraphics();
        g.drawImage(background, 0, 0, null);

        final StatsController stats = statModel.getStats();
        g.drawImage(Alphabet.createString(stats.getPermanentStats().getName(), image.getWidth()), 20, 25, null);
        g.drawImage(Alphabet.createString(Stat.HP + " : " + stats.getCurrentHP() + " * " + stats.getTotalHPMax(), image.getWidth()), 20, 80, null);
        g.drawImage(Alphabet.createString(Stat.MP + " : " + stats.getCurrentMP() + " * " + stats.getTotalMPMax(), image.getWidth()), 20, 110, null);

        g.drawImage(Alphabet.createString(Stat.STRENGTH + " : " + stats.getPermanentStats().getStrength() + " + " + stats.getStrengthTemporaryModifier(), image.getWidth()), 20, 140, null);
        g.drawImage(Alphabet.createString(Stat.CONSTITUTION + " : " + stats.getPermanentStats().getConstitution() + " + " + stats.getConstitutionTemporaryModifier(), image.getWidth()), 20, 170, null);
        g.drawImage(Alphabet.createString(Stat.WISDOM + " : " + stats.getPermanentStats().getWisdom() + " + " + stats.getWisdomTemporaryModifier(), image.getWidth()), 20, 200, null);
        g.drawImage(Alphabet.createString(Stat.INTELLIGENCE + " : " + stats.getPermanentStats().getIntelligence() + " + " + stats.getIntelligenceTemporaryModifier(), image.getWidth()), 20, 230, null);
        g.drawImage(Alphabet.createString(Stat.CHARISMA + " : " + stats.getPermanentStats().getCharisma() + " + " + stats.getCharismaTemporaryModifier(), image.getWidth()), 20, 260, null);

        g.drawImage(Alphabet.createString(Stat.CLASS + " : " + stats.getPermanentStats().getClasse(), image.getWidth()), 20, 290, null);
        g.drawImage(Alphabet.createString(Stat.LEVEL + " : ", image.getWidth()), 20, 320, null);

        g.dispose();
        return image;
    }
View Full Code Here

TOP

Related Classes of game.control.StatsController

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.