Package mekhq.campaign.location
Interface ILocatable
- All Superinterfaces:
ILocation
- All Known Implementing Classes:
AeroHeatSink,AeroLifeSupport,AeroSensor,AmmoBin,AmmoStorage,Armor,Avionics,BAArmor,BattleArmorAmmoBin,BattleArmorEquipmentPart,BattleArmorSuit,BayDoor,BuildingLocation,CombatInformationCenter,Cubicle,DropshipDockingCollar,EnginePart,EquipmentPart,FireControlSystem,GravDeck,HeatSink,InfantryAmmoBin,InfantryAmmoStorage,InfantryArmorPart,InfantryDisposableWeaponPart,InfantryMotiveType,InfantryWeaponPart,JumpJet,JumpshipDockingCollar,KFBoom,KFChargingSystem,KFDriveCoil,KFDriveController,KFFieldInitiator,KFHeliumTank,LandingGear,LargeCraftAmmoBin,LFBattery,MASC,MekActuator,MekCockpit,MekGyro,MekLifeSupport,MekLocation,MekSensor,MissingAeroHeatSink,MissingAeroLifeSupport,MissingAeroSensor,MissingAmmoBin,MissingAvionics,MissingBattleArmorEquipmentPart,MissingBattleArmorSuit,MissingBayDoor,MissingCIC,MissingCubicle,MissingDropshipDockingCollar,MissingEnginePart,MissingEquipmentPart,MissingFireControlSystem,MissingGravDeck,MissingHeatSink,MissingInfantryAmmoBin,MissingInfantryArmorPart,MissingInfantryDisposableWeaponPart,MissingInfantryMotiveType,MissingJumpJet,MissingJumpshipDockingCollar,MissingKFBoom,MissingKFChargingSystem,MissingKFDriveCoil,MissingKFDriveController,MissingKFFieldInitiator,MissingKFHeliumTank,MissingLandingGear,MissingLargeCraftAmmoBin,MissingLFBattery,MissingMASC,MissingMekActuator,MissingMekCockpit,MissingMekGyro,MissingMekLifeSupport,MissingMekLocation,MissingMekSensor,MissingOmniPod,MissingPart,MissingProtoMekArmActuator,MissingProtoMekJumpJet,MissingProtoMekLegActuator,MissingProtoMekLocation,MissingProtoMekSensor,MissingQuadVeeGear,MissingRotor,MissingSpacecraftEngine,MissingSVEngine,MissingThrusters,MissingTurret,MissingVeeSensor,MissingVeeStabilizer,MotiveSystem,OmniPod,Part,Part.PartPersonRef,Part.PartRef,Part.PartUnitRef,Person,Person.PersonUnitRef,PersonIdReference,ProtoMekArmActuator,ProtoMekArmor,ProtoMekJumpJet,ProtoMekLegActuator,ProtoMekLocation,ProtoMekSensor,QuadVeeGear,Refit,Refit.RefitArmorRef,Refit.RefitPartRef,Refit.RefitPersonRef,Rotor,SpacecraftCoolingSystem,SpacecraftEngine,StructuralIntegrity,SVArmor,SVEnginePart,TankLocation,TestUnit,Thrusters,TransportBayPart,Turret,TurretLock,Unit,Unit.UnitPersonRef,Unit.UnitRef,UnitOrder,VeeSensor,VeeStabilizer
-
Nested Class Summary
Nested classes/interfaces inherited from interface mekhq.campaign.location.ILocation
ILocation.ReferenceResolver -
Field Summary
Fields inherited from interface mekhq.campaign.location.ILocation
LOCATION_REFERENCE_TYPE_TAG, NO_JUMP_PATH, NO_LOCATION, NO_PLANET, NO_PLANETARY_SYSTEM, REFERENCE_RESOLVERS -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether the player may manually dispatch this item to a new location (via the "Send To..." context menu).default booleanisInUse()default booleanisQueuedForTravel(CampaignLocationManager locationManager) Whether this item is currently sitting in the pending-travel queue, awaiting dispatch on the next new day.Methods inherited from interface mekhq.campaign.location.ILocation
canSetChild, canSetParent, fetchPartsAtLocation, fetchPersonnelAtLocation, fetchUnitsAtLocation, getChildLocations, getCurrentLocation, getCurrentSystem, getHangar, getJumpPath, getLocationNode, getParentLocation, getPercentageTransit, getPersonnel, getPlace, getPlanet, getTransitTime, getWarehouse, hasLocation, hasLocationNode, isAtJumpPoint, isInTransit, isJumpZenith, isOnPlanet, isParented, locationReferenceType, processArrivals, setChild, setJumpPath, setParent, writeReferenceIdentity, writeReferenceToXML
-
Method Details
-
canBeManuallyDispatched
boolean canBeManuallyDispatched()Whether the player may manually dispatch this item to a new location (via the "Send To..." context menu).Each implementation forbids dispatch while the item is committed elsewhere — e.g. deployed to a scenario, enrolled as a student, reserved for work, or still in transit from a purchase.
- Returns:
trueif the item is free to be dispatched, otherwisefalse
-
isQueuedForTravel
Whether this item is currently sitting in the pending-travel queue, awaiting dispatch on the next new day.This is the pre-dispatch state — the item is still at its origin, queued for travel but not yet moved into active transit (contrast with
ILocation.isInTransit()). The queue lives on theCampaignLocationManagerrather than in the location tree, so the manager must be supplied.- Parameters:
locationManager- the campaign's location manager holding the pending-travel queue- Returns:
trueif this item is queued for travel but not yet dispatched, otherwisefalse
-
isInUse
default boolean isInUse()
-