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;
}
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");
}
}
}
}
Aggregations