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

Method apply

code/src/java/pcgen/core/kit/KitProf.java:228–241  ·  view source on GitHub ↗
(PlayerCharacter aPC)

Source from the content-addressed store, hash-verified

226 }
227
228 @Override
229 public void apply(PlayerCharacter aPC)
230 {
231 PersistentTransitionChoice<WeaponProf> wpPTC = getPTC(thePObject);
232 Collection<?> choices = wpPTC.getChoices().getSet(aPC);
233 for (CDOMSingleRef<WeaponProf> profKey : profList)
234 {
235 WeaponProf wp = profKey.get();
236 if (choices.contains(wp))
237 {
238 wpPTC.act(Collections.singleton(wp), thePObject, aPC);
239 }
240 }
241 }
242
243 @Override
244 public String getObjectName()

Callers

nothing calls this directly

Calls 6

getPTCMethod · 0.95
getSetMethod · 0.65
getChoicesMethod · 0.65
getMethod · 0.65
containsMethod · 0.65
actMethod · 0.65

Tested by

no test coverage detected