Search in sources :

Example 41 with CharacterFile

use of delta.games.lotro.character.CharacterFile in project lotro-companion by dmorcellet.

the class TraitPoints method getStatusFile.

private File getStatusFile(CharacterFile character) {
    File rootDir = character.getRootDir();
    File statusFile = new File(rootDir, "traitPoints.xml");
    return statusFile;
}
Also used : CharacterFile(delta.games.lotro.character.CharacterFile) File(java.io.File)

Example 42 with CharacterFile

use of delta.games.lotro.character.CharacterFile 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");
            }
        }
    }
}
Also used : LotroTestUtils(delta.games.lotro.character.log.LotroTestUtils) ArrayList(java.util.ArrayList) MyLotroConfig(delta.games.lotro.MyLotroConfig) CharacterFile(delta.games.lotro.character.CharacterFile) CharacterLogsManager(delta.games.lotro.character.log.CharacterLogsManager) CharacterLog(delta.games.lotro.character.log.CharacterLog)

Aggregations

CharacterFile (delta.games.lotro.character.CharacterFile)42 LotroTestUtils (delta.games.lotro.character.log.LotroTestUtils)13 ArrayList (java.util.ArrayList)11 CharactersManager (delta.games.lotro.character.CharactersManager)9 JPanel (javax.swing.JPanel)6 CharacterData (delta.games.lotro.character.CharacterData)5 CharacterLog (delta.games.lotro.character.log.CharacterLog)5 Preferences (delta.common.utils.misc.Preferences)4 TypedProperties (delta.common.utils.misc.TypedProperties)4 CraftingStatus (delta.games.lotro.character.crafting.CraftingStatus)3 CharacterEventType (delta.games.lotro.character.events.CharacterEventType)3 File (java.io.File)3 CellDataProvider (delta.common.ui.swing.tables.CellDataProvider)2 TableColumnController (delta.common.ui.swing.tables.TableColumnController)2 CharacterInfosManager (delta.games.lotro.character.CharacterInfosManager)2 CharacterSummary (delta.games.lotro.character.CharacterSummary)2 ProfessionStatus (delta.games.lotro.character.crafting.ProfessionStatus)2 CharacterStatsComputer (delta.games.lotro.character.stats.CharacterStatsComputer)2 Profession (delta.games.lotro.lore.crafting.Profession)2 GridBagConstraints (java.awt.GridBagConstraints)2