use of delta.games.lotro.stats.traitPoints.TraitPoint in project lotro-companion by dmorcellet.
the class TraitPointsRegistryXMLParser method parseRegistry.
private TraitPointsRegistry parseRegistry(Element root) {
TraitPointsRegistry registry = new TraitPointsRegistry();
List<Element> pointTags = DOMParsingTools.getChildTagsByName(root, TraitPointsRegistryXMLConstants.TRAIT_POINT_TAG, false);
for (Element pointTag : pointTags) {
TraitPoint item = parsePoint(pointTag);
registry.registerTraitPoint(item);
}
return registry;
}
use of delta.games.lotro.stats.traitPoints.TraitPoint in project lotro-tools by dmorcellet.
the class TraitPointsRegistryBuilder method initPoint.
private TraitPoint initPoint(String id, String category, String label, CharacterClass requiredCharacterClass) {
TraitPoint point = new TraitPoint(id);
point.setLabel(label);
point.setCategory(category);
if (requiredCharacterClass != null) {
point.addRequiredClass(requiredCharacterClass);
}
_registry.registerTraitPoint(point);
return point;
}
Aggregations