()
| 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() |
no test coverage detected