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