for (Enumeration i = weaponList.elements(); i.hasMoreElements();) { Mounted mounted = (Mounted)i.nextElement(); if (mounted.getLocation() == loc && mounted.isUsedThisRound()) {
for (int i = 0; i < this.getNumberOfCriticals(loc); i++) { CriticalSlot slot = getCritical(loc, i);  if (slot == null || slot.getType() != CriticalSlot.TYPE_EQUIPMENT) { continue; } Mounted mounted = getEquipment(slot.getIndex()); if (mounted.getType() instanceof WeaponType && mounted.isUsedThisRound()) {
    public boolean weaponFiredFrom(int loc) {        for (Enumeration i = weaponList.elements(); i.hasMoreElements();) {            Mounted mounted = (Mounted)i.nextElement();            if (mounted.getLocation() == loc && mounted.isUsedThisRound()) {                return true;            }        }        return false;    }