Search in sources :

Example 6 with CharacterGeneratorMeva

use of delta.games.lotro.character.stats.CharacterGeneratorMeva in project lotro-companion by dmorcellet.

the class MainTestVirtuesEditionPanel method main.

/**
 * Basic main method for test.
 * @param args Not used.
 */
public static void main(String[] args) {
    CharacterGenerationTools tools = new CharacterGenerationTools();
    CharacterGeneratorMeva mevaGenerator = new CharacterGeneratorMeva(tools);
    CharacterData meva = mevaGenerator.buildCharacter();
    VirtuesSet virtues = meva.getVirtues();
    virtues.setSelectedVirtue(null, 1);
    VirtuesEditionPanelController panelCtrl = new VirtuesEditionPanelController();
    panelCtrl.setVirtues(virtues);
    JFrame frame = new JFrame("Virtues edition");
    frame.add(panelCtrl.getPanel());
    frame.pack();
    frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
    frame.setVisible(true);
}
Also used : CharacterData(delta.games.lotro.character.CharacterData) CharacterGeneratorMeva(delta.games.lotro.character.stats.CharacterGeneratorMeva) JFrame(javax.swing.JFrame) VirtuesSet(delta.games.lotro.character.stats.virtues.VirtuesSet) CharacterGenerationTools(delta.games.lotro.character.stats.CharacterGenerationTools)

Aggregations

CharacterData (delta.games.lotro.character.CharacterData)6 CharacterGenerationTools (delta.games.lotro.character.stats.CharacterGenerationTools)6 CharacterGeneratorMeva (delta.games.lotro.character.stats.CharacterGeneratorMeva)6 JFrame (javax.swing.JFrame)4 VirtuesSet (delta.games.lotro.character.stats.virtues.VirtuesSet)2 BasicStatsSet (delta.games.lotro.character.stats.BasicStatsSet)1 CharacterStatsComputer (delta.games.lotro.character.stats.CharacterStatsComputer)1