public int getGunneryMechB() { return super.getGunneryB(0); }
output.write(String.valueOf(crew.getGunneryM(pos))); output.write("\" gunneryB=\""); output.write(String.valueOf(crew.getGunneryB(pos)));
((LAMPilot)crew).setGunneryAero(aeroCrew.getGunnery()); ((LAMPilot)crew).setGunneryAeroM(aeroCrew.getGunneryM()); ((LAMPilot)crew).setGunneryAeroB(aeroCrew.getGunneryB()); ((LAMPilot)crew).setGunneryAeroL(aeroCrew.getGunneryL()); ((LAMPilot)crew).setPilotingAero(aeroCrew.getPiloting());
/** * 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); }
fldGunneryL.setText(Integer.toString(entity.getCrew().getGunneryL(slot))); fldGunneryM.setText(Integer.toString(entity.getCrew().getGunneryM(slot))); fldGunneryB.setText(Integer.toString(entity.getCrew().getGunneryB(slot))); fldGunnery.setText(Integer.toString(entity.getCrew().getGunnery(slot))); fldGunneryAeroL.setText("0");
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()); pilot.setHits(crew.getHits(0), 0);
gunneryLR.setString(Integer.toString(en.getCrew().getGunneryL(slot))); gunneryMR.setString(Integer.toString(en.getCrew().getGunneryM(slot))); gunneryBR.setString(Integer.toString(en.getCrew().getGunneryB(slot))); gunneryL.setVisible(false); gunneryR.setVisible(false);
toHit = new ToHitData(ae.getCrew().getGunneryB(), "gunnery (B) skill");