(StringBuilder buffer)
| 1433 | * ############################################################### |
| 1434 | */ |
| 1435 | private void appendFollowerLines(StringBuilder buffer) |
| 1436 | { |
| 1437 | final Follower aMaster = charDisplay.getMaster(); |
| 1438 | |
| 1439 | if (aMaster != null) |
| 1440 | { |
| 1441 | buffer.append(IOConstants.TAG_MASTER).append(':'); |
| 1442 | buffer.append(EntityEncoder.encode(aMaster.getName())); |
| 1443 | buffer.append('|'); |
| 1444 | buffer.append(IOConstants.TAG_TYPE).append(':'); |
| 1445 | buffer.append(EntityEncoder.encode(aMaster.getType().getKeyName())); |
| 1446 | buffer.append('|'); |
| 1447 | buffer.append(IOConstants.TAG_HITDICE).append(':'); |
| 1448 | buffer.append(aMaster.getUsedHD()); |
| 1449 | buffer.append('|'); |
| 1450 | buffer.append(IOConstants.TAG_FILE).append(':'); |
| 1451 | buffer.append(EntityEncoder.encode( |
| 1452 | FileHelper.findRelativePath(new File(charDisplay.getFileName()), new File(aMaster.getFileName())))); |
| 1453 | buffer.append('|'); |
| 1454 | buffer.append(IOConstants.TAG_ADJUSTMENT).append(':'); |
| 1455 | buffer.append(aMaster.getAdjustment()); |
| 1456 | buffer.append(IOConstants.LINE_SEP); |
| 1457 | } |
| 1458 | |
| 1459 | if (charDisplay.hasFollowers()) |
| 1460 | { |
| 1461 | for (Follower follower : charDisplay.getFollowerList()) |
| 1462 | { |
| 1463 | buffer.append(IOConstants.TAG_FOLLOWER).append(':'); |
| 1464 | buffer.append(EntityEncoder.encode(follower.getName())); |
| 1465 | buffer.append('|'); |
| 1466 | buffer.append(IOConstants.TAG_TYPE).append(':'); |
| 1467 | buffer.append(EntityEncoder.encode(follower.getType().getKeyName())); |
| 1468 | buffer.append('|'); |
| 1469 | if (follower.getRace() != null) |
| 1470 | { |
| 1471 | buffer.append(IOConstants.TAG_RACE).append(':'); |
| 1472 | buffer.append(EntityEncoder.encode(follower.getRace().getKeyName().toUpperCase())); |
| 1473 | buffer.append('|'); |
| 1474 | } |
| 1475 | buffer.append(IOConstants.TAG_HITDICE).append(':'); |
| 1476 | buffer.append(follower.getUsedHD()); |
| 1477 | buffer.append('|'); |
| 1478 | buffer.append(IOConstants.TAG_FILE).append(':'); |
| 1479 | if (StringUtils.isNotEmpty(follower.getFileName())) |
| 1480 | { |
| 1481 | buffer.append(EntityEncoder.encode(FileHelper.findRelativePath(new File(charDisplay.getFileName()), |
| 1482 | new File(follower.getFileName())))); |
| 1483 | } |
| 1484 | buffer.append(IOConstants.LINE_SEP); |
| 1485 | } |
| 1486 | } |
| 1487 | } |
| 1488 | |
| 1489 | private void appendGenderLine(StringBuilder buffer) |
| 1490 | { |
no test coverage detected