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

Method isIn

code/src/java/pcgen/core/kit/KitTable.java:67–72  ·  view source on GitHub ↗

True if value falls within a range @param pc the PC this Kit is being applied to @param inValue the value to test. @return True if value falls within a range

(PlayerCharacter pc, int inValue)

Source from the content-addressed store, hash-verified

65 * @return True if value falls within a range
66 */
67 public boolean isIn(PlayerCharacter pc, int inValue)
68 {
69 int lv = lowRange.resolve(pc, "").intValue();
70 int hv = highRange.resolve(pc, "").intValue();
71 return inValue >= lv && inValue <= hv;
72 }
73 }
74
75 public List<TableEntry> getList()

Callers 1

getEntryMethod · 0.80

Calls 2

intValueMethod · 0.80
resolveMethod · 0.65

Tested by

no test coverage detected