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

Method add

code/src/java/pcgen/cdom/facet/AddLevelFacet.java:126–129  ·  view source on GitHub ↗

Adds levels of the given PCClass to the given PlayerCharacter. The number of levels added is defined by the level formula in this LevelCommandFactory, and the PCClass is defined by the CDOMReference provided when this LevelCommandFactory was constructed. @param levels A Formula indicati

(Formula levels, PCClass cl, PlayerCharacter pc)

Source from the content-addressed store, hash-verified

124 * if the given PlayerCharacter is null
125 */
126 private void add(Formula levels, PCClass cl, PlayerCharacter pc)
127 {
128 apply(pc, cl, levels.resolve(pc, "").intValue());
129 }
130
131 /**
132 * Removes levels as defined by the given Formula of the given PCClass from

Callers 1

dataAddedMethod · 0.95

Calls 3

applyMethod · 0.95
intValueMethod · 0.80
resolveMethod · 0.65

Tested by

no test coverage detected