Package megamek.common.units
Class ReinforcedRepairFacility
java.lang.Object
megamek.common.bays.Bay
megamek.common.bays.UnitBay
megamek.common.units.NavalRepairFacility
megamek.common.units.ReinforcedRepairFacility
- All Implemented Interfaces:
Serializable,Transporter,ITechnology
Reinforced naval repair facility allows ship to expend thrust with docked unit. Only available unpressurized. See
TacOps 334-5 for rules.
- See Also:
-
Field Summary
Fields inherited from class megamek.common.bays.Bay
bayNumber, currentDoors, currentSpace, damage, doors, doorsNext, FACING_PREFIX, FIELD_SEPARATOR, game, loadedThisTurn, minDoors, recoverySlots, totalSpace, troops, unloadedThisTurn, UNSET_BAYFields inherited from interface megamek.common.interfaces.ITechnology
DATE_ES, DATE_NONE, DATE_PS -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDeprecated, for removal: This API element is subject to removal in a future version.ReinforcedRepairFacility(double size, int doors, int bayNumber, int facing) Create a new repair facility -
Method Summary
Modifier and TypeMethodDescriptionlonggetCost()getUnusedString(boolean showRecovery) Return a string that identifies the unused capacity of this transporter.doublebooleanPressurized facility allows crew to work without encumbrance of life support gear.static TechAdvancementtoString()Updated toString() and helpers to normalize bay string output To match new 6-field format: type:space(current or total):doors:bayNumber:infantryType:facing:status bitmap See BLKFile.java:BLKFile constantsMethods inherited from class megamek.common.units.NavalRepairFacility
canLoad, getFacing, getTechAdvancement, hardpointCost, hasARTS, setFacing, setPressurized, spaceForUnitMethods inherited from class megamek.common.bays.Bay
artsTechAdvancement, bayString, bayString, bayString, canUnloadUnits, destroyDoor, destroyDoorNext, getBaseAvailability, getBayDamage, getBayNumber, getCapacity, getCargoMpReduction, getCommonDate, getCurrentDoors, getDefaultSlotDescription, getDoors, getDoorsNext, getDroppableUnits, getExteriorUnitAt, getExternalUnits, getExtinctionDate, getExtinctionDate, getIntroductionDate, getIntroductionDate, getLaunchableUnits, getLoadedUnitIds, getLoadedUnits, getMinDoors, getNumberLoadedThisTurn, getNumberUnloadedThisTurn, getPersonnel, getProductionDate, getProductionDate, getPrototypeDate, getPrototypeDate, getReintroductionDate, getReintroductionDate, getSafeLaunchRate, getStaticTechLevel, getTechBase, getTechRating, getTroops, getUnloadableUnits, getUnused, getUnusedSlots, getUnusedString, isCargo, isClan, isMixedTech, isQuarters, isWeaponBlockedAt, load, numDoorsString, resetCounts, resetDoors, resetTransporter, restoreAllDoors, restoreDoor, setBayDamage, setCurrentDoors, setCurrentSpace, setDoors, setDoorsNext, setGame, unloadMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface megamek.common.interfaces.ITechnology
calcEraAvailability, calcEraAvailability, calcYearAvailability, calcYearAvailability, calcYearAvailability, findMinimumRulesLevel, findMinimumRulesLevel, getAdvancedRange, getAdvancedRange, getCodeFromIOAbbr, getCodeFromMMAbbr, getCommonDate, getEraAvailabilityName, getEraAvailabilityName, getExperimentalRange, getExperimentalRange, getExtinctionDate, getExtinctionRange, getExtinctionRange, getFullRatingName, getFullRatingName, getIntroductionDate, getProductionDate, getPrototypeDate, getReintroductionDate, getSimpleLevel, getSimpleLevel, getSimpleLevel, getStandardRange, getStandardRange, getTechLevel, getTechLevel, getTechRatingName, isAvailableIn, isAvailableIn, isAvailableIn, isExtinct, isExtinct, isExtinct, isIntroLevel, isLegal, isLegal, isUnofficialMethods inherited from interface megamek.common.equipment.Transporter
alwaysDamageCargoIfTransportHit, canPickupGroundObject, canTow, getCarryables, getNameForRecordSheets, setEntity
-
Constructor Details
-
ReinforcedRepairFacility
Deprecated, for removal: This API element is subject to removal in a future version.The default constructor is only for serialization. -
ReinforcedRepairFacility
public ReinforcedRepairFacility(double size, int doors, int bayNumber, int facing) Create a new repair facility- Parameters:
size- Maximum capacity in tonsfacing- The armor facing of the facility
-
-
Method Details
-
isPressurized
public boolean isPressurized()Description copied from class:NavalRepairFacilityPressurized facility allows crew to work without encumbrance of life support gear. No game effect that I could find.- Overrides:
isPressurizedin classNavalRepairFacility- Returns:
- Whether the facility is pressurized.
-
getTransporterType
- Specified by:
getTransporterTypein interfaceTransporter- Overrides:
getTransporterTypein classNavalRepairFacility
-
getWeight
public double getWeight()- Overrides:
getWeightin classNavalRepairFacility- Returns:
- the tonnage of the bay, not the actual mass or weight
-
toString
Description copied from class:BayUpdated toString() and helpers to normalize bay string output To match new 6-field format: type:space(current or total):doors:bayNumber:infantryType:facing:status bitmap See BLKFile.java:BLKFile constants- Overrides:
toStringin classNavalRepairFacility
-
getUnusedString
Description copied from class:BayReturn a string that identifies the unused capacity of this transporter.- Overrides:
getUnusedStringin classNavalRepairFacility- Returns:
- A
Stringmeant for a human.
-
techAdvancement
-
getCost
public long getCost()- Overrides:
getCostin classNavalRepairFacility- Returns:
- The cost of the bay in C-bills
-