private void initCharacterType(ICharmTemplate charmTemplate, ICharacterType type) { CharmTree charmTree = new CharmTree(charmTemplate); alienTreesByType.put(type, charmTree); ILearningCharmGroup[] groups = createGroups(charmTree.getAllCharmGroups()); nonMartialArtsGroupsByType.put(type, groups); templatesByType.put(type, charmTemplate); }
private void initUniqueTypes(ICharmTemplate charmTemplate) { if (!charmTemplate.hasUniqueCharms()) { return; } IUniqueCharmType type = charmTemplate.getUniqueCharmType(); CharmTree charmTree = new CharmTree(charmTemplate.getUniqueCharms()); ILearningCharmGroup[] groups = createGroups(charmTree.getAllCharmGroups()); nonMartialArtsGroupsByType.put(type.getId(), groups); alienTreesByType.put(type.getId(), charmTree); }