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

Method getPTC

code/src/java/pcgen/core/kit/KitProf.java:215–226  ·  view source on GitHub ↗
(CDOMObject cdo)

Source from the content-addressed store, hash-verified

213 }
214
215 private PersistentTransitionChoice<WeaponProf> getPTC(CDOMObject cdo)
216 {
217 List<PersistentTransitionChoice<?>> adds = cdo.getListFor(ListKey.ADD);
218 for (PersistentTransitionChoice<?> ptc : adds)
219 {
220 if (ptc.getChoiceClass().equals(WeaponProf.class))
221 {
222 return (PersistentTransitionChoice<WeaponProf>) ptc;
223 }
224 }
225 return null;
226 }
227
228 @Override
229 public void apply(PlayerCharacter aPC)

Callers 2

testApplyMethod · 0.95
applyMethod · 0.95

Calls 3

getListForMethod · 0.65
equalsMethod · 0.65
getChoiceClassMethod · 0.65

Tested by

no test coverage detected