Package megamek.common.equipment
Class ClampMountTank
java.lang.Object
megamek.common.battleArmor.BattleArmorHandles
megamek.common.battleArmor.BattleArmorHandlesTank
megamek.common.equipment.ClampMountTank
- All Implemented Interfaces:
Serializable,Transporter
Represents the space on a vehicle used by Battle Armor squads equipped with Magnetic Clamps to attach themselves for
transport. This transporter gets assigned to all of a player's vehicles in the Exchange Phase if any Battle Armor
squad equipped with a Magnetic Clamp is on that player's side.
- See Also:
-
Field Summary
Fields inherited from class megamek.common.battleArmor.BattleArmorHandles
carriedUnit -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermines if this object can accept the given unit.intgetCargoMpReduction(Entity carrier) Return a string that identifies the unused capacity of this transporter.toString()Methods inherited from class megamek.common.battleArmor.BattleArmorHandlesTank
isWeaponBlockedAtMethods inherited from class megamek.common.battleArmor.BattleArmorHandles
getExteriorUnitAt, getExternalUnits, getLoadedUnits, getUnused, hasActiveTrooper, load, resetTransporter, setGame, 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
-
ClampMountTank
public ClampMountTank()
-
-
Method Details
-
getUnusedString
Description copied from interface:TransporterReturn a string that identifies the unused capacity of this transporter.- Specified by:
getUnusedStringin interfaceTransporter- Overrides:
getUnusedStringin classBattleArmorHandles- Returns:
- A
Stringmeant for a human.
-
getCargoMpReduction
- Specified by:
getCargoMpReductionin interfaceTransporter- Overrides:
getCargoMpReductionin classBattleArmorHandles- Returns:
- the MP reduction due to cargo carried by this transporter
-
canLoad
Description copied from interface:TransporterDetermines if this object can accept the given unit. The unit may not be of the appropriate type or there may be no room for the unit.- Specified by:
canLoadin interfaceTransporter- Overrides:
canLoadin classBattleArmorHandles- Parameters:
unit- - theEntityto be loaded.- Returns:
trueif the unit can be loaded,falseotherwise.
-
toString
- Overrides:
toStringin classBattleArmorHandles
-