use of delta.games.lotro.character.log.LotroTestUtils in project lotro-companion by dmorcellet.
the class MainTestStashWindow method main.
/**
* Basic main method for test.
* @param args Not used.
*/
public static void main(String[] args) {
LotroTestUtils utils = new LotroTestUtils();
CharacterFile toon = utils.getMainToon();
// Copy gear to stash
ItemsStash stash = toon.getStash();
CharacterData data = toon.getInfosManager().getLastCharacterDescription();
CharacterEquipment gear = data.getEquipment();
for (EQUIMENT_SLOT slot : EQUIMENT_SLOT.values()) {
Item item = gear.getItemForSlot(slot);
if (item != null) {
Item clone = ItemFactory.clone(item);
stash.addItem(clone);
}
}
StashWindowController controller = new StashWindowController(toon);
controller.show();
}
use of delta.games.lotro.character.log.LotroTestUtils in project lotro-companion by dmorcellet.
the class MainTestWarbandStats method main.
/**
* Basic main method for test.
* @param args Not used.
*/
public static void main(String[] args) {
LotroTestUtils utils = new LotroTestUtils();
CharacterFile toon = utils.getToonByName("Allyriel");
CharacterLog log = toon.getLastCharacterLog();
if (log != null) {
WarbandsStats stats = new WarbandsStats(log);
stats.dump(System.out);
}
}
use of delta.games.lotro.character.log.LotroTestUtils in project lotro-companion by dmorcellet.
the class MainTestShowCharacterLog method main.
/**
* Basic main method for test.
* @param args Not used.
*/
public static void main(String[] args) {
LotroTestUtils utils = new LotroTestUtils();
CharacterFile toon = utils.getToonByName("Glumlug");
CharacterLog log = toon.getLastCharacterLog();
if (log != null) {
CharacterLogWindowController controller = new CharacterLogWindowController(toon);
controller.show();
}
}
use of delta.games.lotro.character.log.LotroTestUtils 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.log.LotroTestUtils 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();
}
}
Aggregations