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

Method copyContents

code/src/java/pcgen/cdom/facet/AgeSetKitFacet.java:221–230  ·  view source on GitHub ↗

Copies the contents of the AgeSetKitFacet from one Player Character to another Player Character, based on the given CharIDs representing those Player Characters. This is a method in AgeSetKitFacet in order to avoid exposing the mutable Collection object to other classes. This should not be inlined,

(CharID source, CharID copy)

Source from the content-addressed store, hash-verified

219 * information should be copied
220 */
221 @Override
222 public void copyContents(CharID source, CharID copy)
223 {
224 CacheInfo ci = getClassInfo(source);
225 if (ci != null)
226 {
227 CacheInfo copyci = getConstructingClassInfo(copy);
228 copyci.kitMap.addAllLists(ci.kitMap);
229 }
230 }
231}

Callers

nothing calls this directly

Calls 3

getClassInfoMethod · 0.95
addAllListsMethod · 0.65

Tested by

no test coverage detected