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

Method isDomainValid

code/src/java/pcgen/core/PlayerCharacter.java:5711–5719  ·  view source on GitHub ↗
(Domain domain, ClassSource cs)

Source from the content-addressed store, hash-verified

5709 }
5710
5711 private boolean isDomainValid(Domain domain, ClassSource cs)
5712 {
5713 if (domain == null)
5714 {
5715 return false;
5716 }
5717 final PCClass aClass = getClassKeyed(cs.getPcclass().getKeyName());
5718 return ((aClass != null) && (getLevel(aClass) >= cs.getLevel()));
5719 }
5720
5721 /**
5722 * Active BonusObjs

Callers 1

Calls 4

getClassKeyedMethod · 0.95
getLevelMethod · 0.95
getKeyNameMethod · 0.65
getPcclassMethod · 0.45

Tested by

no test coverage detected