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

Method selectUnitSet

code/src/java/pcgen/core/GameMode.java:1133–1143  ·  view source on GitHub ↗

Return true if the unit has been set. @param unitSetName @return true if the unit has been set

(final String unitSetName)

Source from the content-addressed store, hash-verified

1131 * @return true if the unit has been set
1132 */
1133 public boolean selectUnitSet(final String unitSetName)
1134 {
1135 final UnitSet ui =
1136 getModeContext().getReferenceContext().silentlyGetConstructedCDOMObject(UnitSet.class, unitSetName);
1137 if (ui == null)
1138 {
1139 return false;
1140 }
1141 selectedUnitSet = ui;
1142 return true;
1143 }
1144
1145 /**
1146 * Return true if the default unit has been set.

Callers 4

onCopyMethod · 0.95
testListMetricMethod · 0.80
setGameMethod · 0.80

Calls 3

getModeContextMethod · 0.95
getReferenceContextMethod · 0.65

Tested by 1

testListMetricMethod · 0.64