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

Method isActive

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

Source from the content-addressed store, hash-verified

1271 }
1272
1273 @Override
1274 public boolean isActive(PlayerCharacter aPC)
1275 {
1276 List<InfoBoolean> requirements = getListFor(ListKey.ENABLE);
1277 if ((requirements == null) || requirements.isEmpty())
1278 {
1279 return true;
1280 }
1281 for (InfoBoolean info : requirements)
1282 {
1283 if (!aPC.solve(info.getFormula()))
1284 {
1285 return false;
1286 }
1287 }
1288 return true;
1289 }
1290
1291 /*
1292 * Begin implementation of methods for VarHolder interface

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