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

Method isMonster

code/src/java/pcgen/core/PCClass.java:489–515  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

487 * import system - thpr 10/4/06
488 */
489 public boolean isMonster()
490 {
491 Boolean mon = get(ObjectKey.IS_MONSTER);
492 if (mon != null)
493 {
494 return mon;
495 }
496
497 ClassType aClassType = SettingsHandler.getGameAsProperty().get().getClassTypeByName(getClassType());
498
499 if ((aClassType != null) && aClassType.isMonster())
500 {
501 return true;
502 }
503 else
504 {
505 for (Type type : getTrueTypeList(false))
506 {
507 aClassType = SettingsHandler.getGameAsProperty().get().getClassTypeByName(type.toString());
508 if ((aClassType != null) && aClassType.isMonster())
509 {
510 return true;
511 }
512 }
513 }
514 return false;
515 }
516
517 @Override
518 public String getPCCText()

Callers 14

processMethod · 0.95
dataAddedMethod · 0.95
dataAddedMethod · 0.95
dataRemovedMethod · 0.95
addLevelMethod · 0.95
subLevelMethod · 0.95
skillAddedMethod · 0.45
skillRemovedMethod · 0.45
levelChangedMethod · 0.45
addTemplateMethod · 0.45
incrementClassLevelMethod · 0.45
recalcSkillPointModMethod · 0.45

Calls 7

getGameAsPropertyMethod · 0.95
getClassTypeMethod · 0.95
isMonsterMethod · 0.95
getClassTypeByNameMethod · 0.80
getTrueTypeListMethod · 0.80
getMethod · 0.65
toStringMethod · 0.65

Tested by

no test coverage detected