use of delta.games.lotro.character.CharacterFile in project lotro-companion by dmorcellet.
the class MainTestCraftingHistoryChart method main.
/**
* Basic main method for test.
* @param args Not used.
*/
public static void main(String[] args) {
Locale.setDefault(Locale.US);
LotroTestUtils utils = new LotroTestUtils();
// for(CharacterFile toon : utils.getAllFiles())
{
CharacterFile toon = utils.getMainToon();
CraftingStatus stats = toon.getCraftingStatus();
stats.dump(System.out);
List<Profession> professions = stats.getProfessions();
for (Profession profession : professions) {
ProfessionStatus stat = stats.getProfessionStatus(profession);
JFrame f = new JFrame();
ProfessionStatusPanelController controller = new ProfessionStatusPanelController(stat);
JPanel panel = controller.getPanel();
f.getContentPane().add(panel);
f.pack();
f.setVisible(true);
f.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
}
}
}
use of delta.games.lotro.character.CharacterFile in project lotro-companion by dmorcellet.
the class MainTestReputationSynopsis method doIt.
private void doIt() {
CharactersManager mgr = CharactersManager.getInstance();
List<CharacterFile> allToons = mgr.getAllToons();
ReputationSynopsisTableController table = new ReputationSynopsisTableController(null);
table.setToons(allToons);
JTable jtable = table.getTable();
JScrollPane scroll = GuiFactory.buildScrollPane(jtable);
DefaultWindowController w = new DefaultWindowController();
w.getFrame().add(scroll);
w.getFrame().pack();
w.show();
}
use of delta.games.lotro.character.CharacterFile in project lotro-companion by dmorcellet.
the class MainTestCharacterMainWindow 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();
// List<CharacterFile> toons=CharactersManager.getInstance().getAllToons();
CharacterFile toon = utils.getMainToon();
// for(CharacterFile toon : toons)
{
CharacterFileWindowController controller = new CharacterFileWindowController(toon);
controller.show();
}
}
use of delta.games.lotro.character.CharacterFile 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.CharacterFile in project lotro-companion by dmorcellet.
the class MainTestCraftingStats 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();
for (CharacterFile toon : toons) {
// CharacterFile toon=utils.getMainToon();
// CharacterFile toon=utils.getToonByName("Feroce");
CraftingStatus stats = toon.getCraftingStatus();
stats.dump(System.out);
}
}
Aggregations