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

Method copyContents

code/src/java/pcgen/cdom/facet/model/SizeFacet.java:458–468  ·  view source on GitHub ↗

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

(CharID source, CharID copy)

Source from the content-addressed store, hash-verified

456 * information should be copied
457 */
458 @Override
459 public void copyContents(CharID source, CharID copy)
460 {
461 SizeFacetInfo si = getInfo(source);
462 if (si != null)
463 {
464 SizeFacetInfo copysfi = getConstructingInfo(copy);
465 copysfi.racialSizeInt = si.racialSizeInt;
466 copysfi.sizeAdj = si.sizeAdj;
467 }
468 }
469}

Callers

nothing calls this directly

Calls 2

getInfoMethod · 0.95
getConstructingInfoMethod · 0.95

Tested by

no test coverage detected