public int getGunneryMechL() { return super.getGunneryL(0); }
.booleanOption(OptionsConstants.RPG_RPG_GUNNERY)) { output.write("\" gunneryL=\""); output.write(String.valueOf(crew.getGunneryL(pos))); output.write("\" gunneryM=\""); output.write(String.valueOf(crew.getGunneryM(pos)));
((LAMPilot)crew).setGunneryAeroM(aeroCrew.getGunneryM()); ((LAMPilot)crew).setGunneryAeroB(aeroCrew.getGunneryB()); ((LAMPilot)crew).setGunneryAeroL(aeroCrew.getGunneryL()); ((LAMPilot)crew).setPilotingAero(aeroCrew.getPiloting()); entity.setCrew(crew);
/** * update the skills for this squadron */ public void updateSkills() { List<Entity> activeFighters = getActiveSubEntities().orElse(Collections.emptyList()); if(activeFighters.isEmpty()) { return; } int pilotingTotal = 0; int gunneryTotal = 0; int gunneryLTotal = 0; int gunneryMTotal = 0; int gunneryBTotal = 0; for(Entity fighter : activeFighters) { pilotingTotal += fighter.getCrew().getPiloting(); gunneryTotal += fighter.getCrew().getGunnery(); gunneryLTotal += fighter.getCrew().getGunneryL(); gunneryMTotal += fighter.getCrew().getGunneryM(); gunneryBTotal += fighter.getCrew().getGunneryB(); } getCrew().setPiloting(pilotingTotal / activeFighters.size(), 0); getCrew().setGunnery(gunneryTotal / activeFighters.size(), 0); getCrew().setGunneryL(gunneryLTotal / activeFighters.size(), 0); getCrew().setGunneryM(gunneryMTotal / activeFighters.size(), 0); getCrew().setGunneryB(gunneryBTotal / activeFighters.size(), 0); }
fldGunneryAero.setText(Integer.toString(pilot.getGunneryAero())); } else { fldGunneryL.setText(Integer.toString(entity.getCrew().getGunneryL(slot))); fldGunneryM.setText(Integer.toString(entity.getCrew().getGunneryM(slot))); fldGunneryB.setText(Integer.toString(entity.getCrew().getGunneryB(slot)));
crew.getPiloting()); pilot.setNickname(crew.getNickname(), 0); pilot.setGunneryL(crew.getGunneryL(), 0); pilot.setGunneryB(crew.getGunneryB(), 0); pilot.setGunneryM(crew.getGunneryM(), 0); pilot.setGunneryAeroL(crew.getGunneryL()); pilot.setGunneryAeroB(crew.getGunneryB()); pilot.setGunneryAeroM(crew.getGunneryM());
gunneryLR.setString(Integer.toString(en.getCrew().getGunneryL(slot))); gunneryMR.setString(Integer.toString(en.getCrew().getGunneryM(slot))); gunneryBR.setString(Integer.toString(en.getCrew().getGunneryB(slot)));
if (game.getOptions().booleanOption(OptionsConstants.RPG_RPG_GUNNERY)) { if (wtype.hasFlag(WeaponType.F_ENERGY)) { toHit = new ToHitData(ae.getCrew().getGunneryL(), "gunnery (E) skill");