/** * @return A list of entity ids for all units that have previously be plotted to be dropped/launched. */ public Set<Integer> getDroppedUnits() { Set<Integer> dropped = new HashSet<>(); for (MoveStep s : steps) { for (Vector<Integer> ids : s.getLaunched().values()) { dropped.addAll(ids); } } return dropped; }
md.addStep(MoveStepType.LAUNCH, lastStep.getLaunched()); md.addStep(MoveStepType.UNDOCK, lastStep.getLaunched());
} else if (step.getMineToLay() != -1) { step = new MoveStep(this, step.getType(), step.getMineToLay()); } else if (step.getLaunched().size() > 0) { step = new MoveStep(this, step.getType(), step.getLaunched()); } else if (step.getManeuverType() != ManeuverType.MAN_NONE) { step = new MoveStep(this, step.getType(), -1, -1, step.getManeuverType());
md.addStep(lastStep.getType(), lastStep.getLaunched()); md.addStep(lastStep.getType(), lastStep.getLaunched());