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

Method testApply

code/src/java/pcgen/core/kit/KitKit.java:63–75  ·  view source on GitHub ↗

Test applying this kit to the character. @param aPC PlayerCharacter The character to apply the kit to. @param aKit Kit The kit that has requested the application of the kit. @param warnings List The warign list to be populated if anything fails.

(Kit aKit, PlayerCharacter aPC, List<String> warnings)

Source from the content-addressed store, hash-verified

61 * @param warnings List The warign list to be populated if anything fails.
62 */
63 @Override
64 public boolean testApply(Kit aKit, PlayerCharacter aPC, List<String> warnings)
65 {
66 appliedKits = new HashMap<>();
67 for (CDOMSingleRef<Kit> ref : availableKits)
68 {
69 Kit addedKit = ref.get();
70 ArrayList<BaseKit> thingsToAdd = new ArrayList<>();
71 addedKit.testApplyKit(aPC, thingsToAdd, warnings, true);
72 appliedKits.put(addedKit, thingsToAdd);
73 }
74 return true;
75 }
76
77 @Override
78 public String getObjectName()

Callers 1

testApplyKitMethod · 0.45

Calls 3

testApplyKitMethod · 0.95
getMethod · 0.65
putMethod · 0.65

Tested by

no test coverage detected