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

Method getNamedTempBonusList

code/src/java/pcgen/core/BonusManager.java:894–928  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

892 }
893
894 List<String> getNamedTempBonusList()
895 {
896 final List<String> aList = new ArrayList<>();
897 Map<BonusObj, TempBonusInfo> filteredTempBonusList = getFilteredTempBonusList();
898
899 for (Map.Entry<BonusObj, TempBonusInfo> me : filteredTempBonusList.entrySet())
900 {
901 BonusObj aBonus = me.getKey();
902 if (aBonus == null)
903 {
904 continue;
905 }
906
907 if (!pc.isApplied(aBonus))
908 {
909 continue;
910 }
911
912 final CDOMObject aCreator = (CDOMObject) me.getValue().source;
913
914 if (aCreator == null)
915 {
916 continue;
917 }
918
919 final String aName = aCreator.getKeyName();
920
921 if (!aList.contains(aName))
922 {
923 aList.add(aName);
924 }
925 }
926
927 return aList;
928 }
929
930 public List<String> getNamedTempBonusDescList()
931 {

Callers

nothing calls this directly

Calls 8

getKeyNameMethod · 0.95
isAppliedMethod · 0.80
getKeyMethod · 0.65
getValueMethod · 0.65
containsMethod · 0.65
addMethod · 0.65
entrySetMethod · 0.45

Tested by

no test coverage detected