out.write("\" jumpMp=\"");
out.write(String.valueOf(entity.getOriginalJumpMP()));
out.write("\">");
// Add the crew this entity.
final Pilot crew = entity.getCrew();
out.write("<pilot name=\"");
out.write(crew.getName());
out.write("\" gunnery=\"");
out.write(String.valueOf(crew.getGunnery()));
out.write("\" piloting=\"");
out.write(String.valueOf(crew.getPiloting()));
if (crew.isDead() || (crew.getHits() > 5)) {
out.write("\" hits=\"Dead");
} else if (crew.getHits() > 0) {
out.write("\" hits=\"");
out.write(String.valueOf(crew.getHits()));
}
if (crew.countAdvantages() > 0) {
out.write("\" advantages=\"");
out.write(String.valueOf(crew.getAdvantageList(" ")));
}
if (crew.countMDImplants() > 0) {
out.write("\" implants=\"");
out.write(String.valueOf(crew.getImplantList(" ")));
}
out.write("\"/>");
// Write the game-specific data.
out.write("<entityData gameId=\"");