for (Enumeration i = getWeapons(); i.hasMoreElements();) { Mounted mounted = (Mounted)i.nextElement();
for(Mounted mounted : getWeaponList()) {
    public boolean isEligibleForFiring() {        // if you're charging, no shooting        if (isUnjammingRAC()            || isCharging()            || isMakingDfa()) {            return false;        }        // if you're offboard, no shooting        if (isOffBoard() || isAssaultDropInProgress()) {            return false;        }        for (Enumeration i = getWeapons(); i.hasMoreElements();) {              Mounted mounted = (Mounted)i.nextElement();              WeaponType wtype = (WeaponType)mounted.getType();              if (wtype.hasFlag(WeaponType.F_TAG) && mounted.isUsedThisRound()) {                  return false; //no weapons fire if you fired TAG              }          }        // check game options        if (!game.getOptions().booleanOption("skip_ineligable_firing")) {            return true;        }        // must be active        if (!isActive()) {            return false;        }        // TODO: check for any weapon attacks        return true;    }