public void setWarriorData(int Gunnery, int Piloting, String Name, String Unit) { for (int index = 0; index <= Mechs.size() - 1; index++) { PrintMech pm = (PrintMech) Mechs.get(index); pm.SetPilotData(Name, Gunnery, Piloting); pm.setGroupName(Unit); } }
public void AddMech( Mech m, String Mechwarrior, int Gunnery, int Piloting, boolean Charts, boolean PilotInfo, boolean AdjBV) { double BV = (double) m.GetCurrentBV(); if (AdjBV) BV = CommonTools.GetAdjustedBV(m.GetCurrentBV(), Gunnery, Piloting); PrintMech pm = new PrintMech(m, images); pm.SetPilotData(Mechwarrior, Gunnery, Piloting); pm.SetOptions(Charts, PilotInfo, BV); pm.setCanon(Canon); Mechs.add(pm); }