Package megamek.common.equipment
Class Briefcase
java.lang.Object
megamek.common.equipment.GroundObject
megamek.common.equipment.Briefcase
- All Implemented Interfaces:
Serializable,ICarryable,InGameObject,BTObject
Represents a basic carryable object with no additional other properties.
Briefcases use simplified logic for being picked up. It is intended to be used for objective based gameplay but without using the full depth of rules described in TO:AR.
- 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
-
Briefcase
public Briefcase()
-
-
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
-