private static void writeLAMAeroAttributes(Writer output, final LAMPilot crew, boolean rpgGunnery) throws IOException { output.write("\" gunneryAero=\""); output.write(String.valueOf(crew.getGunneryAero())); if (rpgGunnery) { output.write("\" gunneryAeroL=\""); output.write(String.valueOf(crew.getGunneryAeroL())); output.write("\" gunneryAeroM=\""); output.write(String.valueOf(crew.getGunneryAeroM())); output.write("\" gunneryAeroB=\""); output.write(String.valueOf(crew.getGunneryAeroB())); } output.write("\" pilotingAero=\""); output.write(String.valueOf(crew.getPilotingAero())); }
@Override public int getGunnery() { return useAeroGunnery() ? getGunneryAero() : getGunneryMech(); }
fldGunneryAeroM.setText(Integer.toString(pilot.getGunneryAeroM())); fldGunneryAeroB.setText(Integer.toString(pilot.getGunneryAeroB())); fldGunneryAero.setText(Integer.toString(pilot.getGunneryAero())); } else { fldGunneryL.setText(Integer.toString(entity.getCrew().getGunneryL(slot)));
/** * @return a String showing the overall skills in the format gunnery * (Mech)/piloting (Mech)/gunnery (Aero)/piloting (Aero) */ @Override public String getSkillsAsString(int pos, boolean showPiloting) { return getGunneryMech() + "/" + getPilotingMech() + "/" + getGunneryAero() + "/" + getPilotingAero(); }
/** * Returns whether this pilot has non-standard piloting or gunnery values */ @Override public boolean isCustom() { return getGunneryMech() != 4 || getGunneryAero() != 4 || getPilotingMech() != 5 || getPilotingAero() != 5; }
/** * Returns the BV multiplier for this pilot's gunnery/piloting * * @param usePiloting * whether or not to use the default value non-anti-mech * infantry/BA should not use the anti-mech skill * @param game */ @Override public double getBVSkillMultiplier(boolean usePiloting, IGame game) { int pilotVal = (getPilotingMech() + getPilotingAero()) / 2; if (!usePiloting) { pilotVal = 5; } return getBVImplantMultiplier() * getBVSkillMultiplier((getGunneryMech() + getGunneryAero()) / 2, pilotVal, game); }
r.add(getGunneryMech() + "/" + getGunneryAero()); r.add(getPilotingMech() + "/" + getPilotingAero());