Search in sources :

Example 6 with LotroTestUtils

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();
}
Also used : Item(delta.games.lotro.lore.items.Item) CharacterEquipment(delta.games.lotro.character.CharacterEquipment) ItemsStash(delta.games.lotro.character.storage.ItemsStash) CharacterData(delta.games.lotro.character.CharacterData) EQUIMENT_SLOT(delta.games.lotro.character.CharacterEquipment.EQUIMENT_SLOT) LotroTestUtils(delta.games.lotro.character.log.LotroTestUtils) CharacterFile(delta.games.lotro.character.CharacterFile)

Example 7 with LotroTestUtils

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);
    }
}
Also used : LotroTestUtils(delta.games.lotro.character.log.LotroTestUtils) CharacterFile(delta.games.lotro.character.CharacterFile) CharacterLog(delta.games.lotro.character.log.CharacterLog)

Example 8 with LotroTestUtils

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();
    }
}
Also used : LotroTestUtils(delta.games.lotro.character.log.LotroTestUtils) CharacterFile(delta.games.lotro.character.CharacterFile) CharacterLog(delta.games.lotro.character.log.CharacterLog)

Example 9 with LotroTestUtils

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);
        }
    }
}
Also used : ProfessionStatus(delta.games.lotro.character.crafting.ProfessionStatus) JPanel(javax.swing.JPanel) Profession(delta.games.lotro.lore.crafting.Profession) LotroTestUtils(delta.games.lotro.character.log.LotroTestUtils) JFrame(javax.swing.JFrame) CraftingStatus(delta.games.lotro.character.crafting.CraftingStatus) List(java.util.List) CharacterFile(delta.games.lotro.character.CharacterFile)

Example 10 with LotroTestUtils

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();
    }
}
Also used : LotroTestUtils(delta.games.lotro.character.log.LotroTestUtils) CharacterFile(delta.games.lotro.character.CharacterFile)

Aggregations

CharacterFile (delta.games.lotro.character.CharacterFile)13 LotroTestUtils (delta.games.lotro.character.log.LotroTestUtils)13 CharacterLog (delta.games.lotro.character.log.CharacterLog)5 ArrayList (java.util.ArrayList)3 JFrame (javax.swing.JFrame)3 JPanel (javax.swing.JPanel)3 CharacterData (delta.games.lotro.character.CharacterData)2 CharacterSummary (delta.games.lotro.character.CharacterSummary)2 CraftingStatus (delta.games.lotro.character.crafting.CraftingStatus)2 List (java.util.List)2 MyLotroConfig (delta.games.lotro.MyLotroConfig)1 CharacterEquipment (delta.games.lotro.character.CharacterEquipment)1 EQUIMENT_SLOT (delta.games.lotro.character.CharacterEquipment.EQUIMENT_SLOT)1 CharacterInfosManager (delta.games.lotro.character.CharacterInfosManager)1 ProfessionStatus (delta.games.lotro.character.crafting.ProfessionStatus)1 CharacterLogsManager (delta.games.lotro.character.log.CharacterLogsManager)1 ItemsStash (delta.games.lotro.character.storage.ItemsStash)1 Rewards (delta.games.lotro.common.Rewards)1 Virtue (delta.games.lotro.common.Virtue)1 VirtueId (delta.games.lotro.common.VirtueId)1