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

Method setLevel

code/src/java/pcgen/cdom/facet/model/ClassFacet.java:316–320  ·  view source on GitHub ↗

Sets the level for the given PCClass and the Player Character identified by the given CharID to the given value. @param id The CharID identifying the Player Character for which a level value is being set @param pcc The PCClass identifying which class level is being

(CharID id, PCClass pcc, int level)

Source from the content-addressed store, hash-verified

314 * by the given CharID
315 */
316 public void setLevel(CharID id, PCClass pcc, int level)
317 {
318 int oldLevel = getConstructingClassInfo(id).setLevel(pcc, level);
319 support.fireClassLevelChangeEvent(id, pcc, oldLevel, level);
320 }
321
322 /**
323 * Returns the current (numerical) level for the given PCClass in the Player

Callers 2

removeClassMethod · 0.95
dataAddedMethod · 0.45

Calls 2

Tested by

no test coverage detected