MCPcopy Create free account
hub / github.com/PCGen/pcgen / getAbilityList

Method getAbilityList

code/src/java/plugin/exporttokens/VFeatToken.java:40–56  ·  view source on GitHub ↗
(PlayerCharacter pc, final AbilityCategory aCategory)

Source from the content-addressed store, hash-verified

38 }
39
40 @Override
41 protected MapToList<Ability, CNAbility> getAbilityList(PlayerCharacter pc, final AbilityCategory aCategory)
42 {
43 final MapToList<Ability, CNAbility> listOfAbilities = new HashMapToList<>();
44 Collection<AbilityCategory> allCats = SettingsHandler.getGameAsProperty().get().getAllAbilityCategories();
45 for (AbilityCategory aCat : allCats)
46 {
47 if (aCat.getParentCategory().equals(aCategory))
48 {
49 for (CNAbility cna : pc.getPoolAbilities(aCat, Nature.VIRTUAL))
50 {
51 listOfAbilities.addToListFor(cna.getAbility(), cna);
52 }
53 }
54 }
55 return listOfAbilities;
56 }
57
58}

Callers

nothing calls this directly

Calls 8

getGameAsPropertyMethod · 0.95
getMethod · 0.65
equalsMethod · 0.65
getParentCategoryMethod · 0.65
addToListForMethod · 0.65
getPoolAbilitiesMethod · 0.45
getAbilityMethod · 0.45

Tested by

no test coverage detected