示例#1
0
 @Override
 public ISpecialCharm[] getSpecialCharms() {
   return provider.getSpecialCharms(
       new MartialArtsLearnableArbitrator(martialArtsCharmTree),
       getCharmIdMap(),
       getNativeCharacterType());
 }
 @Override
 public ISpecialCharm[] getSpecialCharms() {
   return provider.getSpecialCharms(
       context.getBasicCharacterContext().getRuleSet().getEdition(),
       new MartialArtsLearnableArbitrator(martialArtsCharmTree),
       getCharmIdMap(),
       getNativeCharacterType());
 }
 private void setAdditionalRules(
     Element generalElement, GenericCharacterTemplate characterTemplate)
     throws PersistenceException {
   Element element = generalElement.element(TAG_ADDITIONAL_RULES);
   if (element == null) {
     return;
   }
   AdditionalRulesTemplateParser parser =
       new AdditionalRulesTemplateParser(
           registryCollection.getAdditionalRulesRegistry(),
           provider.getSpecialCharms(
               characterTemplate.getTemplateType().getCharacterType(),
               characterTemplate.getEdition()),
           backgroundRegistry);
   GenericAdditionalRules rules = parser.parseTemplate(element);
   characterTemplate.setAdditionalRules(rules);
 }
 public String getCharmTrueName(String charmId) {
   return provider.getCharmRename(context.getBasicCharacterContext().getRuleSet(), charmId);
 }
示例#5
0
 @Override
 public String getCharmTrueName(String charmId) {
   return provider.getCharmRename(charmId);
 }