Search in sources :

Example 16 with CharacterData

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

the class MainTestVirtuesDisplayPanel 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();
    meva.setDate(Long.valueOf(System.currentTimeMillis()));
    VirtuesDisplayPanelController panelCtrl = new VirtuesDisplayPanelController();
    VirtuesSet virtues = meva.getVirtues();
    virtues.setSelectedVirtue(null, 1);
    panelCtrl.setVirtues(virtues);
    JFrame frame = new JFrame();
    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)

Example 17 with CharacterData

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

the class MainTestEquipmentLoading method main.

/**
 * Basic main method for test.
 * @param args Not used.
 */
public static void main(String[] args) {
    LotroTestUtils utils = new LotroTestUtils();
    // List<CharacterFile> toons=utils.getAllFiles();
    CharacterFile toon = utils.getMainToon();
    // for(CharacterFile toon : toons)
    {
        String name = toon.getName();
        System.out.println("Loading toon [" + name + "]");
        CharacterInfosManager manager = new CharacterInfosManager(toon);
        CharacterData infos = manager.getLastCharacterDescription();
        if (infos != null) {
            EquipmentPanelController ctrl = new EquipmentPanelController(null, toon, infos);
            JPanel panel = ctrl.getPanel();
            JFrame frame = new JFrame("Equipment for " + toon.getName());
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            // Create and set up the content pane.
            frame.setContentPane(panel);
            // Display the window.
            frame.pack();
            frame.setVisible(true);
        }
    }
}
Also used : JPanel(javax.swing.JPanel) EquipmentPanelController(delta.games.lotro.gui.character.gear.EquipmentPanelController) CharacterData(delta.games.lotro.character.CharacterData) LotroTestUtils(delta.games.lotro.character.log.LotroTestUtils) JFrame(javax.swing.JFrame) CharacterInfosManager(delta.games.lotro.character.CharacterInfosManager) CharacterFile(delta.games.lotro.character.CharacterFile)

Example 18 with CharacterData

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

the class MainTestStatContribsChart method doIt.

private void doIt() {
    CharacterGenerationTools tools = new CharacterGenerationTools();
    CharacterGeneratorGiswald generator = new CharacterGeneratorGiswald(tools);
    CharacterData c = generator.buildCharacter();
    doIt(c);
}
Also used : CharacterData(delta.games.lotro.character.CharacterData) CharacterGeneratorGiswald(delta.games.lotro.character.stats.CharacterGeneratorGiswald) CharacterGenerationTools(delta.games.lotro.character.stats.CharacterGenerationTools)

Example 19 with CharacterData

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

the class MainTestDetailedCharacterStatsPanelController method loadCharacter.

private CharacterData loadCharacter(String name) {
    File from = new File(name + ".xml").getAbsoluteFile();
    CharacterData c = CharacterDataIO.getCharacterDescription(from);
    return c;
}
Also used : CharacterData(delta.games.lotro.character.CharacterData) File(java.io.File)

Example 20 with CharacterData

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

the class MainTestCharacterStatsSummaryPanelController 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();
    CharacterStatsComputer statsComputer = new CharacterStatsComputer();
    BasicStatsSet stats = statsComputer.getStats(meva);
    meva.getStats().setStats(stats);
    CharacterStatsSummaryPanelController panelCtrl = new CharacterStatsSummaryPanelController(null, meva);
    JFrame frame = new JFrame();
    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) CharacterStatsComputer(delta.games.lotro.character.stats.CharacterStatsComputer) JFrame(javax.swing.JFrame) BasicStatsSet(delta.games.lotro.character.stats.BasicStatsSet) CharacterGenerationTools(delta.games.lotro.character.stats.CharacterGenerationTools)

Aggregations

CharacterData (delta.games.lotro.character.CharacterData)31 CharacterGenerationTools (delta.games.lotro.character.stats.CharacterGenerationTools)8 JFrame (javax.swing.JFrame)7 CharacterFile (delta.games.lotro.character.CharacterFile)6 CharacterGeneratorMeva (delta.games.lotro.character.stats.CharacterGeneratorMeva)6 BasicStatsSet (delta.games.lotro.character.stats.BasicStatsSet)5 CharacterStatsComputer (delta.games.lotro.character.stats.CharacterStatsComputer)5 CharacterInfosManager (delta.games.lotro.character.CharacterInfosManager)4 CharacterEvent (delta.games.lotro.character.events.CharacterEvent)4 CharacterEventType (delta.games.lotro.character.events.CharacterEventType)4 DefaultWindowController (delta.common.ui.swing.windows.DefaultWindowController)3 EQUIMENT_SLOT (delta.games.lotro.character.CharacterEquipment.EQUIMENT_SLOT)3 CharacterClass (delta.games.lotro.common.CharacterClass)3 File (java.io.File)3 JPanel (javax.swing.JPanel)3 WindowController (delta.common.ui.swing.windows.WindowController)2 CharacterEquipment (delta.games.lotro.character.CharacterEquipment)2 CharactersManager (delta.games.lotro.character.CharactersManager)2 LotroTestUtils (delta.games.lotro.character.log.LotroTestUtils)2 CharacterGeneratorGiswald (delta.games.lotro.character.stats.CharacterGeneratorGiswald)2