Gets the parentName of the Equipment object @return The parentName
()
| 1526 | * @return The parentName |
| 1527 | */ |
| 1528 | public String getParentName() |
| 1529 | { |
| 1530 | final Equipment anEquip = getParent(); |
| 1531 | |
| 1532 | if (anEquip != null) |
| 1533 | { |
| 1534 | return anEquip.toString(); |
| 1535 | } |
| 1536 | |
| 1537 | if (isEquipped()) |
| 1538 | { |
| 1539 | return "Equipped"; |
| 1540 | } |
| 1541 | |
| 1542 | if (numberCarried().intValue() > 0) |
| 1543 | { |
| 1544 | return "Carried"; |
| 1545 | } |
| 1546 | |
| 1547 | return ""; |
| 1548 | } |
| 1549 | |
| 1550 | /** |
| 1551 | * Callback function from PObject.passesPreReqToGainForList() |
no test coverage detected