use of delta.games.lotro.character.log.LotroTestUtils 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.log.LotroTestUtils 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);
}
}
use of delta.games.lotro.character.log.LotroTestUtils in project lotro-tools by dmorcellet.
the class MainTestCharacterActivityLogIO method main.
/**
* Basic main method for test.
* @param args Not used.
*/
public static void main(String[] args) {
List<CharacterFile> toons = new ArrayList<CharacterFile>();
LotroTestUtils utils = new LotroTestUtils();
CharacterFile glumlug = utils.getMainToon();
toons.add(glumlug);
MyLotroConfig cfg = MyLotroConfig.getInstance();
CharacterLogPageParser parser = new CharacterLogPageParser();
for (CharacterFile toon : toons) {
String url = cfg.getCharacterURL(toon.getServerName(), toon.getName());
CharacterLog log = parser.parseLogPages(url, null);
if (log != null) {
System.out.println(log);
CharacterLogsManager manager = toon.getLogsManager();
boolean ok = manager.writeNewLog(log);
if (ok) {
System.out.println("OK");
}
}
}
}
Aggregations