output.write(String.valueOf(crew.isEjected())); if (crew.countOptions(PilotOptions.LVL3_ADVANTAGES) > 0) { output.write("\" advantages=\"");
if (pilot.isEjected()) {
} else if (getCrew().isEjected()){ r = new Report(7074, Report.PUBLIC); vDesc.addElement(r);
} else if (getCrew().isEjected()) { r = new Report(7071, Report.PUBLIC); vDesc.addElement(r);
} else if (getCrew().isEjected()){ r = new Report(7071, Report.PUBLIC); vDesc.addElement(r);
if(!e.getCrew().isEjected() || e instanceof EjectedCrew) { pilots.put(UUID.fromString(e.getCrew().getExternalIdAsString()), e.getCrew()); if(!e.getCrew().isEjected() || e instanceof EjectedCrew) { pilots.put(UUID.fromString(e.getCrew().getExternalIdAsString()), e.getCrew()); ejections.put(UUID.fromString(e.getCrew().getExternalIdAsString()), (EjectedCrew)e); if(!e.getCrew().isEjected() || e instanceof EjectedCrew) { if(control) { pilots.put(UUID.fromString(e.getCrew().getExternalIdAsString()), e.getCrew());
} else if (getCrew().isEjected()) { r = new Report(7074, Report.PUBLIC); vDesc.addElement(r);
/** * This method returns a true if the unit can reasonably escape from the * board. It can be used to determine whether some non-destroyed units * should be considered possible salvage. * * @return */ public boolean canEscape() { if(null == getCrew()) { return false; } //if the crew is unconscious, dead, or ejected, no escape if(getCrew().isUnconscious() || getCrew().isDead() || (getCrew().isEjected() && !(this instanceof EjectedCrew))) { return false; } //what else? If its permaneantly immobilized or shutdown it can't escape //TODO: should stalled and stuck be here? return !isPermanentlyImmobilized(false) && !isShutDown(); }
if(!e.getCrew().isEjected() || e instanceof EjectedCrew) { pilots.put(UUID.fromString(e.getCrew().getExternalIdAsString()), e.getCrew()); ejections.put(UUID.fromString(e.getCrew().getExternalIdAsString()), (EjectedCrew)e); if(!e.getCrew().isEjected() || e instanceof EjectedCrew) { if(control) { pilots.put(UUID.fromString(e.getCrew().getExternalIdAsString()), e.getCrew());
&& en.getCrew().isEjected()) { continue;
crew += "\" autoeject=\"" + ((Mech)tgtEnt).isAutoEject(); crew += "\" ejected=\"" + tgtEnt.getCrew().isEjected() + "\">\n"; for (int i = 0; i < tgtEnt.getCrew().getSlotCount(); i++) { crew += MekHqXmlUtil.indentStr(indentLvl+2) + "<crewMember slot=\"" + i
pilot.setDead(crew.isDead(0), 0); pilot.setDoomed(crew.isDoomed()); pilot.setEjected(crew.isEjected()); pilot.setFatigue(crew.getFatigue()); pilot.setArtillery(crew.getArtillery(), 0);