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);
}
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);
}
}
}
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);
}
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;
}
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);
}
Aggregations