Class BattleArmorHandlesTank

java.lang.Object
megamek.common.battleArmor.BattleArmorHandles
megamek.common.battleArmor.BattleArmorHandlesTank
All Implemented Interfaces:
Serializable, Transporter
Direct Known Subclasses:
ClampMountTank

public class BattleArmorHandlesTank extends BattleArmorHandles
See Also:
  • Constructor Details

    • BattleArmorHandlesTank

      public BattleArmorHandlesTank()
  • Method Details

    • isWeaponBlockedAt

      public final boolean isWeaponBlockedAt(int location, boolean isRear)
      Description copied from interface: Transporter
      Determine if transported units prevent a weapon in the given location from firing.
      Specified by:
      isWeaponBlockedAt in interface Transporter
      Overrides:
      isWeaponBlockedAt in class BattleArmorHandles
      Parameters:
      location - the location attempting to fire.
      isRear - true if the weapon is rear-facing
      Returns:
      True if a transported unit is in the way, false if the weapon can fire.