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

Method getAbilityCategory

code/src/java/pcgen/core/GameMode.java:1737–1748  ·  view source on GitHub ↗

Gets the AbilityCategory for the given key. @param aKey The key of the AbilityCategory to retreive. @return The requested AbilityCategory or null if the category is not found in this game mode.

(final String aKey)

Source from the content-addressed store, hash-verified

1735 * category is not found in this game mode.
1736 */
1737 public AbilityCategory getAbilityCategory(final String aKey)
1738 {
1739 AbilityCategory ac = silentlyGetAbilityCategory(aKey);
1740 // Empty aKey indicates return null because
1741 // PreAbilityTester.buildAbilityList uses that as a global
1742 // (all Category) getch
1743 if (aKey == null || (ac == null && !aKey.isEmpty()))
1744 {
1745 Logging.errorPrint("Attempt to fetch AbilityCategory: " + aKey + "... but it does not exist");
1746 }
1747 return ac;
1748 }
1749
1750 private AbilityCategory silentlyGetAbilityCategory(final String aKey)
1751 {

Callers 15

getCNAbilitiesMethod · 0.45
decodeChoiceMethod · 0.45
addCategorisedAbilityMethod · 0.45
getMethod · 0.45
validateCNAListMethod · 0.45
driveChooseAndAddMethod · 0.45
buildAbilityListMethod · 0.45
parseAbilityLineMethod · 0.45
parseUserPoolLineMethod · 0.45
writeAbilityToBufferMethod · 0.45
getTokenMethod · 0.45

Calls 3

errorPrintMethod · 0.95
isEmptyMethod · 0.65

Tested by 1

getCNAbilitiesMethod · 0.36