public boolean usedTag() { for (Mounted weapon : getWeaponList()) { WeaponType wtype = (WeaponType) weapon.getType(); if (weapon.isUsedThisRound() && wtype.hasFlag(WeaponType.F_TAG)) { return true; } } return false; }
&& !ams.isUsedThisRound())) { for (TeleMissileAttackAction taa : vTMAttacksInArc) { if (taa != null) {
/** * Checks whether a weapon has been fired from the specified location this * turn */ public boolean weaponFiredFrom(int loc) { // check critical slots for used weapons for (int i = 0; i < this.getNumberOfCriticals(loc); i++) { CriticalSlot slot = getCritical(loc, i); // ignore empty & system slots if ((slot == null) || (slot.getType() != CriticalSlot.TYPE_EQUIPMENT)) { continue; } Mounted mounted = slot.getMount(); if ((mounted.getType() instanceof WeaponType) && mounted.isUsedThisRound()) { return true; } } return false; }
if (mounted.isUsedThisRound() && (game.getPhase() == mounted.usedInPhase()) && (game.getPhase() == IGame.Phase.PHASE_FIRING)) {
int distance = Compute.effectiveDistance(game, ce(), target); if (m.isUsedThisRound()) { clientgui.mechD.wPan.wToHitR.setText(Messages .getString("TargetingPhaseDisplay.alreadyFired"));
clientgui.mechD.wPan.selectWeapon(weaponId); if (m.isUsedThisRound()) { clientgui.mechD.wPan.wToHitR.setText(Messages .getString("FiringDisplay.alreadyFired")); //$NON-NLS-1$
clientgui.mechD.wPan.selectWeapon(weaponId); if (m.isUsedThisRound()) { clientgui.mechD.wPan.wToHitR.setText(Messages .getString("FiringDisplay.alreadyFired")); //$NON-NLS-1$
if (counter.isUsedThisRound()) { continue;
if (bayW.isUsedThisRound()) { continue;
&& ((MiscType) m.getType()) .hasFlag(MiscType.F_PPC_CAPACITOR) && m.getLinked().isUsedThisRound() && (nMode == 1)) { clientgui.systemMessage(Messages.getString(
if (counter.isUsedThisRound()) { continue;
if (m.isUsedThisRound()) { str += " Can't shoot: " + Messages.getString("FiringDisplay.alreadyFired");
if (mounted.isUsedThisRound()) { return new ToHitData(TargetRoll.IMPOSSIBLE, "Fired weapons");
if (mounted.isUsedThisRound()) { int loc = mounted.getLocation(); if (((leg == BOTH || leg == LEFT) && loc == kickLegs[0])
|| (((WeaponType) mounted.getType()).getAmmoType() == AmmoType.T_AC_IMP) || (((WeaponType) mounted.getType()).getAmmoType() == AmmoType.T_PAC))) { if (!mounted.isUsedThisRound()) { return false;
if (mounted.isUsedThisRound() && (mounted.getLocation() == legLoc)) { return new ToHitData(TargetRoll.IMPOSSIBLE, "Weapons fired from leg this turn");
if (mounted.isUsedThisRound()) { int loc = mounted.getLocation(); if (loc != Entity.LOC_NONE) {