Package megamek.common.equipment
Class Cargo
java.lang.Object
megamek.common.equipment.GroundObject
megamek.common.equipment.Cargo
- All Implemented Interfaces:
Serializable,ICarryable,InGameObject,BTObject
Represents a cargo object.
TODO: Rules for generic objects in TO:AR p. 90
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface megamek.common.equipment.ICarryable
ICarryable.CarriedObjectDamageAllocation -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanBePickedUp(boolean isCarrierHullDown) Returns true if the carryable object is able to be picked up.Methods inherited from class megamek.common.equipment.GroundObject
damage, generalName, getCarriedObjectDamageAllocation, getId, getOwnerId, getStrength, getTonnage, isInvulnerable, processPickupStep, setId, setInvulnerable, setName, setOwnerId, setTonnage, specificName, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface megamek.common.units.BTObject
getFluffImage, getIcon, hasAerodyneSpheroidDistinction, isAero, isAerodyne, isAerospace, isAerospaceFighter, isAerospaceSV, isBattleArmor, isBattlefieldSupportAsset, isBattleMek, isCombatVehicle, isConventionalFighter, isConventionalInfantry, isDropShip, isFighter, isFixedWingSupport, isGround, isHandheldWeapon, isIndustrialMek, isInfantry, isJumpShip, isLargeAerospace, isMek, isObjectiveMarker, isProtoMek, isQuadMek, isSingleUnit, isSmallCraft, isSpaceStation, isSpheroid, isSupportVehicle, isTripodMek, isUnitGroup, isVehicle, isWarShipMethods inherited from interface megamek.common.equipment.ICarryable
isCarryableObject, targetForArmHitToHitCarriedObjectMethods inherited from interface megamek.common.game.InGameObject
countForStrengthSum, hasOwner
-
Constructor Details
-
Cargo
public Cargo()
-
-
Method Details
-
canBePickedUp
public boolean canBePickedUp(boolean isCarrierHullDown) Returns true if the carryable object is able to be picked up. Briefcases can always be picked up.- Parameters:
isCarrierHullDown- is the unit that's picking this up hull down, or otherwise able to pick up ground-level objects- Returns:
- true if the object can be picked up, false if it cannot
-