Deprecated API
Contents
-
Terminally Deprecated ElementsElementDescriptionused
TransportCostCalculationsinsteaduseCampaign.getActivePersonnel(boolean, boolean)instead.no longer in useno longer in useuseCampaign.recruitPerson(Person, boolean, boolean)insteadunusedUnused. Seems to be an unused alternative toAtBConfiguration.shipSearchTargetRoll(int, Campaign)usePersonnelRole.getTooltip(boolean)insteadusePersonnelRole.getTooltip(boolean)insteadmekhq.campaign.personnel.medical.advancedMedical.InjuryUtil.genHealingTime(Campaign, Person, Injury) usePerson.addPersonalLogEntry(LogEntry)instead.usePerson.getPersonalLog()instead.No longer in useusePersonUtility.overrideSkills(boolean, boolean, boolean, boolean, boolean, Person, PersonnelRole, SkillLevel)unusedunused except in deprecated classesNo longer used.useReasoning.getExamResults(int)instead.replaced byReasoning.getReasoningScore()only used in deprecated methodsmekhq.campaign.stratCon.StratConScenarioFactory.getRandomScenario(ScenarioMapParameters.MapLocation) mekhq.campaign.stratCon.StratConTrackState.setAssignedCoordForces(Map<StratConCoords, Set<Integer>>) no indicated uses.no indicated uses.useFactionHints.getInstance()instead.useFactionHints.getInstance()instead.useFactions.getFactionLogo(int, String)insteadmekhq.campaign.universe.factionStanding.FactionStandings.processRefusedBatchall(String, String, int) no indicated uses.no indicated usesconsiderMRMSOption.getTargetNumberMax()considerMRMSOption.setTargetNumberMax(int)
-
Deprecated Interfaces
-
Deprecated Classes
-
Deprecated FieldsFieldDescriptionunusedunused except in deprecated classesonly used in deprecated methods
-
Deprecated MethodsMethodDescriptionused
TransportCostCalculationsinsteadUseCampaign.clearBlobCrewForRole(PersonnelRole)to clear specific roles insteaduseCampaign.getActivePersonnel(boolean, boolean)instead.no longer in useno longer in useuseCampaign.recruitPerson(Person, boolean, boolean)instead- Move to GUI ClassUseHumanResources.getPersonnelGenerator(AbstractFactionSelector, AbstractPlanetSelector)instead. ThecampaignOptionsparameter was never used.unusedUnused. Seems to be an unused alternative toAtBConfiguration.shipSearchTargetRoll(int, Campaign)UseProcurement.getTechFaction(Faction)instead.CallAbstractMissionTransition.generateInstanceFromXML(org.w3c.dom.Node, mekhq.campaign.Campaign, megamek.Version)directly. This delegate exists only so that existing call sites in the campaign loader do not need to be updated immediately.UsePart.changeQuantity(int)directly with a delta of-1for more explicit control over quantity adjustments.UsePart.changeQuantity(int)directly with a delta of1for more explicit control over quantity adjustments.- If only used in a Test file, do we need it?- If only used in a Test file, do we need it?usePersonnelRole.getTooltip(boolean)insteadusePersonnelRole.getTooltip(boolean)insteadmekhq.campaign.personnel.medical.advancedMedical.InjuryUtil.genHealingTime(Campaign, Person, Injury) usePerson.addPersonalLogEntry(LogEntry)instead.usePerson.getPersonalLog()instead.No longer in useusePersonUtility.overrideSkills(boolean, boolean, boolean, boolean, boolean, Person, PersonnelRole, SkillLevel)UseQuartermaster.addPart(Part, int, boolean)instead to explicitly indicate whether the part is brand new.No longer used.useReasoning.getExamResults(int)instead.replaced byReasoning.getReasoningScore()mekhq.campaign.stratCon.StratConScenarioFactory.getRandomScenario(ScenarioMapParameters.MapLocation) mekhq.campaign.stratCon.StratConTrackState.setAssignedCoordForces(Map<StratConCoords, Set<Integer>>) no indicated uses.create a more specific one likeUnit.getCargoCapacityForConvoy()orUnit.getCargoCapacityForSalvage()
Calculates and returns the cargo capacity of the entity based on its transport bays, mounted equipment, and other relevant factors.The total cargo capacity is derived from the following:
- The usable capacities of transport bays (
CargoBay,RefrigeratedCargoBay, orInsulatedCargoBay), adjusted for existing damage. - The tonnage of mounted equipment tagged with the
F_CARGOflag, provided the equipment is operable and located in non-destroyed sections of the entity.
Special Conditions:
- The method returns
0.0if the entity is not fully crewed. - Bays or mounted equipment damaged beyond usability are excluded from the total.
- Only equipment in valid (non-destroyed) sections of the entity are considered.
this only checks ship transport type, use getCurrentTransportCapacity(CampaignTransportType.SHIP_TRANSPORT, appropriate bay class) to replicate thisthis only checks a ship transport type, use getCurrentTransportCapacity(CampaignTransportType.SHIP_TRANSPORT, appropriate bay class) to replicate thisthis only checks ship transport type, use getCurrentTransportCapacity(CampaignTransportType.SHIP_TRANSPORT, appropriate bay class) to replicate thisthis only checks a ship transport type, use getCurrentTransportCapacity(CampaignTransportType.SHIP_TRANSPORT, appropriate bay class) to replicate thisthis only checks a ship transport type, use getCurrentTransportCapacity(CampaignTransportType.SHIP_TRANSPORT, appropriate bay class) to replicate thisthis only checks a ship transport type, use getCurrentTransportCapacity(CampaignTransportType.SHIP_TRANSPORT, appropriate bay class) to replicate thisthis only checks ship transport type, use getCurrentTransportCapacity(CampaignTransportType.SHIP_TRANSPORT, appropriate bay class) to replicate thisthis only checks ship transport type, use getCurrentTransportCapacity(CampaignTransportType.SHIP_TRANSPORT, appropriate bay class) to replicate thisthis only checks ship transport type, use getCurrentTransportCapacity(CampaignTransportType.SHIP_TRANSPORT, appropriate bay class) to replicate thisthis only checks a ship transport type, use getCurrentTransportCapacity(CampaignTransportType.SHIP_TRANSPORT, appropriate bay class) to replicate thisno indicated uses.this only sets for ship transport type. Transport Capacities should not be manually updated with this, it should happen inside any loading flows. If you really need to replicate this use setCurrentShipTransportCapacity(CampaignTransportType.SHIP_TRANSPORT, appropriate bay class) - but you probably don't want to do thatthis only sets for a ship transport type. Transport Capacities should not be manually updated with this, it should happen inside any loading flows. If you really need to replicate this use setCurrentShipTransportCapacity(CampaignTransportType.SHIP_TRANSPORT, appropriate bay class) - but you probably don't want to do thatthis only sets for a ship transport type. Transport Capacities should not be manually updated with this, it should happen inside any loading flows. If you really need to replicate this, use setCurrentShipTransportCapacity(CampaignTransportType.SHIP_TRANSPORT, appropriate bay class) - but you probably don't want to do thatthis only sets for a ship transport type. Transport Capacities should not be manually updated with this, it should happen inside any loading flows. If you really need to replicate this use setCurrentShipTransportCapacity(CampaignTransportType.SHIP_TRANSPORT, appropriate bay class) - but you probably don't want to do thatthis only sets for ship transport type. Transport Capacities should not be manually updated with this, it should happen inside any loading flows. If you really need to replicate this use setCurrentShipTransportCapacity(CampaignTransportType.SHIP_TRANSPORT, appropriate bay class) - but you probably don't want to do thatthis only sets for a ship transport type. Transport Capacities should not be manually updated with this, it should happen inside any loading flows. If you really need to replicate this use setCurrentShipTransportCapacity(CampaignTransportType.SHIP_TRANSPORT, appropriate bay class) - but you probably don't want to do thatthis only sets for ship transport type. Transport Capacities should not be manually updated with this, it should happen inside any loading flows. If you really need to replicate this use setCurrentShipTransportCapacity(CampaignTransportType.SHIP_TRANSPORT, appropriate bay class) - but you probably don't want to do thatthis only sets for ship transport type. Transport Capacities should not be manually updated with this, it should happen inside any loading flows. If you really need to replicate this use setCurrentShipTransportCapacity(CampaignTransportType.SHIP_TRANSPORT, appropriate bay class) - but you probably don't want to do thatthis only sets for ship transport type. Transport Capacities should not be manually updated with this, it should happen inside any loading flows. If you really need to replicate this use setCurrentShipTransportCapacity(CampaignTransportType.SHIP_TRANSPORT, appropriate bay class) - but you probably don't want to do thatthis only sets for a ship transport type. Transport Capacities should not be manually updated with this, it should happen inside any loading flows. If you really need to replicate this use setCurrentShipTransportCapacity(CampaignTransportType.SHIP_TRANSPORT, appropriate bay class) - but you probably don't want to do thatuseFactionHints.getInstance()instead.useFactionHints.getInstance()instead.useFactions.getFactionLogo(int, String)insteadmekhq.campaign.universe.factionStanding.FactionStandings.processRefusedBatchall(String, String, int) no indicated uses.no indicated usesuseRandomFactionGenerator.getEmployerFaction()insteadsince 0.50.04, replaced byJScrollableMenusince 0.50.04, replaced byJScrollableMenusince 0.50.04, replaced byJScrollablePopupMenusince 0.50.04, replaced byJScrollablePopupMenuconsiderMRMSOption.getTargetNumberMax()considerMRMSOption.setTargetNumberMax(int) - The usable capacities of transport bays (
-
Deprecated ConstructorsConstructorDescription
-
Deprecated Enum ConstantsEnum ConstantDescription