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

Method replaceClass

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

Replaces the given old PCClass stored in this ClassFacet with the given new PCClass for the Player Character represented by the given CharID. @param id The CharID representing the Player Character from which the given old PCClass should be replaced @param oldClass T

(CharID id, PCClass oldClass, PCClass newClass)

Source from the content-addressed store, hash-verified

204 * CharID
205 */
206 public void replaceClass(CharID id, PCClass oldClass, PCClass newClass)
207 {
208 ClassInfo info = getClassInfo(id);
209 if (info != null)
210 {
211 info.replace(oldClass, newClass);
212 }
213 }
214
215 /**
216 * Returns a non-null copy of the Set of PCClass objects in this ClassFacet

Callers 4

testPCClassReplaceMethod · 0.80
makeIntoExClassMethod · 0.80

Calls 2

getClassInfoMethod · 0.95
replaceMethod · 0.95

Tested by 3

testPCClassReplaceMethod · 0.64