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

Method isAvailable

code/src/java/pcgen/cdom/base/CDOMObject.java:1255–1271  ·  view source on GitHub ↗
(PlayerCharacter aPC)

Source from the content-addressed store, hash-verified

1253 }
1254
1255 @Override
1256 public boolean isAvailable(PlayerCharacter aPC)
1257 {
1258 List<InfoBoolean> prerequisites = getListFor(ListKey.ALLOW);
1259 if ((prerequisites == null) || prerequisites.isEmpty())
1260 {
1261 return true;
1262 }
1263 for (InfoBoolean info : prerequisites)
1264 {
1265 if (!aPC.solve(info.getFormula()))
1266 {
1267 return false;
1268 }
1269 }
1270 return true;
1271 }
1272
1273 @Override
1274 public boolean isActive(PlayerCharacter aPC)

Callers

nothing calls this directly

Calls 4

getListForMethod · 0.95
isEmptyMethod · 0.65
solveMethod · 0.65
getFormulaMethod · 0.65

Tested by

no test coverage detected