Package megamek.common.battleArmor
Class BattleArmorHandlesTank
java.lang.Object
megamek.common.battleArmor.BattleArmorHandles
megamek.common.battleArmor.BattleArmorHandlesTank
- All Implemented Interfaces:
Serializable,Transporter
- Direct Known Subclasses:
ClampMountTank
- See Also:
-
Field Summary
Fields inherited from class megamek.common.battleArmor.BattleArmorHandles
carriedUnit -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanisWeaponBlockedAt(int location, boolean isRear) Determine if transported units prevent a weapon in the given location from firing.Methods inherited from class megamek.common.battleArmor.BattleArmorHandles
canLoad, getCargoMpReduction, getExteriorUnitAt, getExternalUnits, getLoadedUnits, getUnused, getUnusedString, hasActiveTrooper, load, resetTransporter, setGame, toString, unloadMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface megamek.common.equipment.Transporter
alwaysDamageCargoIfTransportHit, canPickupGroundObject, canTow, getCarryables, getNameForRecordSheets, getNumberLoadedThisTurn, getNumberUnloadedThisTurn, getTransporterType, hardpointCost, setEntity
-
Constructor Details
-
BattleArmorHandlesTank
public BattleArmorHandlesTank()
-
-
Method Details
-
isWeaponBlockedAt
public final boolean isWeaponBlockedAt(int location, boolean isRear) Description copied from interface:TransporterDetermine if transported units prevent a weapon in the given location from firing.- Specified by:
isWeaponBlockedAtin interfaceTransporter- Overrides:
isWeaponBlockedAtin classBattleArmorHandles- 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.
-