for (Enumeration i = getWeapons(); i.hasMoreElements();) { Mounted mounted = (Mounted)i.nextElement();
for(Mounted mounted : getWeaponList()) {
    public boolean isEligibleForTargetingPhase() {        if(isAssaultDropInProgress()) {            return false;        }        for (Enumeration i = getWeapons(); i.hasMoreElements();) {              Mounted mounted = (Mounted)i.nextElement();              WeaponType wtype = (WeaponType)mounted.getType();              if ((wtype != null) && (wtype.hasFlag(WeaponType.F_ARTILLERY))) {                  return true;              }          }          return false;    }