public int getHeatInArc(int location, boolean rearMount) { int arcHeat = 0; for (Mounted mounted : getTotalWeaponList()) { // is the weapon usable? if (mounted.isDestroyed() || mounted.isJammed()) { continue; } if ((mounted.getLocation() == location) && (mounted.isRearMounted() == rearMount)) { arcHeat += mounted.getCurrentHeat(); } } return arcHeat; }
&& !m.isMissing() && !m.isDestroyed() && !m.isJammed() && ((m.getLinked() == null) || (m.getLinked() .getUsableShotsLeft() > 0))) {
if (weapon.isJammed()) { buff = new StringBuffer(weapon.getName()); buff.append(Messages.getString("MechDisplay.isJammed")); //$NON-NLS-1$
if (!m.isBreached() && !m.isDestroyed() && !m.isJammed()) { WeaponType bayWType = ((WeaponType) m.getType());
/** * Returns true if the entity has an RAC which is jammed and not destroyed * As of 5/22/2012 also returns true if there is a jammed and not destroyed * Ultra AC and the unofficial options is enabled. Jammed ACs and LACs can * also be unjammed if rapid-fire ACs is turned on. */ public boolean canUnjamRAC() { for (Mounted mounted : getTotalWeaponList()) { WeaponType wtype = (WeaponType) mounted.getType(); if ((wtype.getAmmoType() == AmmoType.T_AC_ROTARY) && mounted.isJammed() && !mounted.isDestroyed()) { return true; } if (((wtype.getAmmoType() == AmmoType.T_AC_ULTRA) || (wtype.getAmmoType() == AmmoType.T_AC_ULTRA_THB) || (wtype.getAmmoType() == AmmoType.T_AC) || (wtype.getAmmoType() == AmmoType.T_LAC) || (wtype.getAmmoType() == AmmoType.T_AC_IMP) || (wtype.getAmmoType() == AmmoType.T_PAC)) && mounted.isJammed() && !mounted.isDestroyed() && game.getOptions().booleanOption(OptionsConstants.ADVCOMBAT_UNJAM_UAC)) { return true; } } return false; }
if (!weapon.isJammed()) { Report r = new Report(3325); r.subject = subjectId;
&& ((test_weapon.getAmmoType() == AmmoType.T_AC_ULTRA) || (test_weapon.getAmmoType() == AmmoType.T_AC_ULTRA_THB)))) && (equip.isJammed() == true)) { rac_damage = rac_damage + (4 * (test_weapon.getDamage())); } else {
&& !bayW.isJammed() && bayWAmmo != null && ae.getTotalAmmoOfType(bayWAmmo.getType()) >= bayW
&& !bayW.isJammed() && bayWAmmo != null && ae.getTotalAmmoOfType(bayWAmmo.getType()) >= bayW
for (int wId : weapon.getBayWeapons()) { Mounted m = ae.getEquipment(wId); if (!m.isBreached() && !m.isDestroyed() && !m.isJammed()) { WeaponType bayWType = ((WeaponType) m.getType()); if(bayWType instanceof Weapon) {
&& (equip.isJammed() == true)) { rac_damage = rac_damage + (4 * (test_weapon.getDamage()));
for (int wId : weapon.getBayWeapons()) { Mounted m = ae.getEquipment(wId); if (!m.isBreached() && !m.isDestroyed() && !m.isJammed()) { WeaponType bayWType = ((WeaponType) m.getType()); if (bayWType instanceof ISPlasmaRifle) {
&& !bayW.isJammed() && bayWAmmo != null && ae.getTotalAmmoOfType(bayWAmmo.getType()) >= bayW
&& !bayW.isJammed() && bayWAmmo != null && ae.getTotalAmmoOfType(bayWAmmo.getType()) >= bayW
double av = 0; Mounted m = ae.getEquipment(wId); if (!m.isBreached() && !m.isDestroyed() && !m.isJammed()) { WeaponType bayWType = ((WeaponType) m.getType());
double av = 0; Mounted m = ae.getEquipment(wId); if (!m.isBreached() && !m.isDestroyed() && !m.isJammed()) { WeaponType bayWType = ((WeaponType) m.getType());
for (Mounted m : getWeaponList()) { if ((m.getLocation() == loc) && !m.isDestroyed() && !m.isJammed() && !m.isHit() && !m.jammedThisPhase()) { return CRIT_WEAPON_JAM; for (Mounted m : getWeaponList()) { if ((m.getLocation() == loc) && !m.isDestroyed() && !m.isJammed() && !m.isHit() && !m.jammedThisPhase()) { return CRIT_WEAPON_JAM; for (Mounted m : getWeaponList()) { if ((m.getLocation() == loc) && !m.isDestroyed() && !m.isJammed() && !m.isHit() && !m.jammedThisPhase()) { return CRIT_WEAPON_JAM; for (Mounted m : getWeaponList()) { if ((m.getLocation() == loc) && !m.isDestroyed() && !m.isJammed() && !m.isHit() && !m.jammedThisPhase()) { return CRIT_WEAPON_JAM;
for (Mounted m : getWeaponList()) { if ((m.getLocation() == loc) && !m.isDestroyed() && !m.isJammed() && !m.isHit() && !m.jammedThisPhase()) { return CRIT_WEAPON_JAM; for (Mounted m : getWeaponList()) { if ((m.getLocation() == loc) && !m.isDestroyed() && !m.isJammed() && !m.isHit() && !m.jammedThisPhase()) { return CRIT_WEAPON_JAM; for (Mounted m : getWeaponList()) { if ((m.getLocation() == loc) && !m.isDestroyed() && !m.isJammed() && !m.isHit() && !m.jammedThisPhase()) { return CRIT_WEAPON_JAM; for (Mounted m : getWeaponList()) { if ((m.getLocation() == loc) && !m.isDestroyed() && !m.isJammed() && !m.isHit() && !m.jammedThisPhase()) { return CRIT_WEAPON_JAM;
if (!mounted.isJammed()) { return false;
&& !mounted.isDestroyed() && !mounted.isJammed() && ((mounted.getLinked() == null) || (mounted.getLinked().getUsableShotsLeft() > 0))) {