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)
| 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 | { |