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

Method isVisible

code/src/java/pcgen/core/Kit.java:234–246  ·  view source on GitHub ↗

Returns true if the kit is visible @param aPC if the kit visibility depends on the PC, this is the PC that will be used to check the prerequisites. @return Whether the kit is visible

(PlayerCharacter aPC, View v)

Source from the content-addressed store, hash-verified

232 * @return Whether the kit is visible
233 */
234 public boolean isVisible(PlayerCharacter aPC, View v)
235 {
236 Visibility kitVisible = getSafe(ObjectKey.VISIBILITY);
237 if (kitVisible == Visibility.QUALIFY)
238 {
239 return qualifies(aPC, this);
240 }
241 else
242 {
243 return kitVisible.isVisibleTo(v);
244 }
245
246 }
247
248 /**
249 * Test applying the top level kit and record the choices made and any

Callers

nothing calls this directly

Calls 3

isVisibleToMethod · 0.95
getSafeMethod · 0.80
qualifiesMethod · 0.65

Tested by

no test coverage detected