Package megamek.common.equipment
Class MekArms
java.lang.Object
megamek.common.equipment.ExternalCargo
megamek.common.equipment.MekArms
- All Implemented Interfaces:
Serializable,Transporter
- See Also:
-
Field Summary
Fields inherited from class megamek.common.equipment.ExternalCargo
entity, entityId, game, totalSpace -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancanLoad()If this specific transporter is capable of loading regardless of what the object is.doublevoidloadCarryable(ICarryable carryable, int location) Load the given carryable into the given locationtoString()booleanunloadCarryable(ICarryable carryable) Methods inherited from class megamek.common.equipment.ExternalCargo
canLoad, canLoadCarryable, getCargoMpReduction, getCarriedTonnage, getCarryables, getCarryables, getExteriorUnitAt, getExternalUnits, getLoadedUnits, getLocations, getUnusedString, isWeaponBlockedAt, load, loadCarryable, maxObjects, resetTransporter, setEntity, 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, getNameForRecordSheets, getNumberLoadedThisTurn, getNumberUnloadedThisTurn, hardpointCost
-
Constructor Details
-
MekArms
-
MekArms
-
-
Method Details
-
canLoad
protected boolean canLoad()If this specific transporter is capable of loading regardless of what the object is.- Overrides:
canLoadin classExternalCargo- Returns:
trueif the transporter is capable of loading,falseotherwise.
-
loadCarryable
Load the given carryable into the given location- Overrides:
loadCarryablein classExternalCargo- Parameters:
carryable- theICarryableto be loadedlocation- the location it should be loaded into- Throws:
IllegalArgumentException- If the unit can't be loaded
-
unloadCarryable
- Overrides:
unloadCarryablein classExternalCargo
-
getUnused
public double getUnused()- Specified by:
getUnusedin interfaceTransporter- Overrides:
getUnusedin classExternalCargo- Returns:
- the number of unused spaces in this transporter.
-
getTransporterType
-
toString
-