Package megamek.common
Class ReinforcedRepairFacility
java.lang.Object
megamek.common.Bay
megamek.common.UnitBay
megamek.common.NavalRepairFacility
megamek.common.ReinforcedRepairFacility
- All Implemented Interfaces:
Serializable
,ITechnology
,Transporter
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.Bay
bayNumber, currentdoors, currentSpace, damage, doors, doorsNext, FACING_PREFIX, FIELD_SEPARATOR, game, loadedThisTurn, minDoors, recoverySlots, totalSpace, troops, unloadedThisTurn
Fields inherited from interface megamek.common.ITechnology
DATE_ES, DATE_NONE, DATE_PS, ERA_CLAN, ERA_DA, ERA_NUM, ERA_SL, ERA_SW, F_CBR, F_CBS, F_CC, F_CCC, F_CCY, F_CF, F_CFM, F_CGB, F_CGS, F_CHH, F_CIH, F_CJF, F_CLAN, F_CMN, F_CNC, F_CP, F_CS, F_CSA, F_CSF, F_CSJ, F_CSR, F_CSV, F_CWF, F_CWM, F_CWV, F_CWX, F_DC, F_EI, F_FC, F_FR, F_FS, F_FW, F_IS, F_LC, F_MC, F_MERC, F_MH, F_NONE, F_OA, F_PER, F_RA, F_RD, F_RS, F_RW, F_TA, F_TC, F_TH, F_WB, IO_FACTION_CODES, MM_FACTION_CODES, RATING_A, RATING_B, RATING_C, RATING_D, RATING_E, RATING_F, RATING_FSTAR, RATING_X, ratingNames, TECH_BASE_ALL, TECH_BASE_CLAN, TECH_BASE_IS
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
The default constructor is only for serialization.ReinforcedRepairFacility
(double size, int doors, int bayNumber, int facing) Create a new repair facility -
Method Summary
Modifier and TypeMethodDescriptionlong
getCost()
getType()
getUnusedString
(boolean showRecovery) Return a string that identifies the unused capacity of this transporter.double
boolean
Pressurized facility allows crew to work without encumbrance of life support gear.static TechAdvancement
toString()
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.NavalRepairFacility
canLoad, getFacing, getTechAdvancement, hardpointCost, hasARTS, setFacing, setPressurized
Methods inherited from class megamek.common.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, getUnloadableUnits, getUnused, getUnusedSlots, getUnusedString, isCargo, isClan, isMixedTech, isQuarters, isWeaponBlockedAt, load, numDoorsString, resetCounts, resetDoors, resetTransporter, restoreAllDoors, restoreDoor, setBayDamage, setCurrentDoors, setCurrentSpace, setDoors, setDoorsNext, setGame, spaceForUnit, unload
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface megamek.common.ITechnology
calcEraAvailability, calcEraAvailability, calcYearAvailability, calcYearAvailability, calcYearAvailability, findMinimumRulesLevel, findMinimumRulesLevel, getAdvancedRange, getAdvancedRange, 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, isUnofficial
Methods inherited from interface megamek.common.Transporter
canTow
-
Constructor Details
-
ReinforcedRepairFacility
protected ReinforcedRepairFacility()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 tonsdoors
-bayNumber
-facing
- The armor facing of the facility
-
-
Method Details
-
isPressurized
public boolean isPressurized()Description copied from class:NavalRepairFacility
Pressurized facility allows crew to work without encumbrance of life support gear. No game effect that I could find.- Overrides:
isPressurized
in classNavalRepairFacility
- Returns:
- Whether the facility is pressurized.
-
getType
- Specified by:
getType
in interfaceTransporter
- Overrides:
getType
in classNavalRepairFacility
-
getWeight
public double getWeight()- Overrides:
getWeight
in classNavalRepairFacility
- Returns:
- the tonnage of the bay, not the actual mass or weight
-
toString
Description copied from class:Bay
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 constants- Overrides:
toString
in classNavalRepairFacility
-
getUnusedString
Description copied from class:Bay
Return a string that identifies the unused capacity of this transporter.- Overrides:
getUnusedString
in classNavalRepairFacility
- Returns:
- A
String
meant for a human.
-
techAdvancement
-
getCost
public long getCost()- Overrides:
getCost
in classNavalRepairFacility
- Returns:
- The cost of the bay in C-bills
-