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

Method getNewIdPath

code/src/java/pcgen/core/PlayerCharacter.java:7210–7222  ·  view source on GitHub ↗

returns a new id_Path with the last id one higher than the current highest child of the supplied EquipSet. @param eSet The equipset which would be the parent of a new node. @return new id path

(EquipSet eSet)

Source from the content-addressed store, hash-verified

7208 * @return new id path
7209 */
7210 private String getNewIdPath(EquipSet eSet)
7211 {
7212 String pid = Constants.EQUIP_SET_ROOT_ID;
7213
7214 if (eSet != null)
7215 {
7216 pid = eSet.getIdPath();
7217 }
7218
7219 int newID = getNewChildId(pid);
7220
7221 return pid + Constants.EQUIP_SET_PATH_SEPARATOR + newID;
7222 }
7223
7224 /**
7225 * Identify a new id (only the final number in the path) for a child

Callers 2

addEquipToTargetMethod · 0.95
moveEquipSetToNewPathMethod · 0.95

Calls 2

getNewChildIdMethod · 0.95
getIdPathMethod · 0.45

Tested by

no test coverage detected