Package megamek.common
Class SuperHeavyVehicleBay
java.lang.Object
megamek.common.Bay
megamek.common.UnitBay
megamek.common.SuperHeavyVehicleBay
- All Implemented Interfaces:
Serializable
,ITechnology
,Transporter
Represents a Transport Bay (TM p.239) for carrying superheavy vehicles (not heavier than 200t)
aboard large spacecraft or other units.
- 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
ConstructorsConstructorDescriptionSuperHeavyVehicleBay
(double space, int doors, int bayNumber) Create a space for the given number of vehicles. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Determines if this object can accept the given unit.long
getCost()
int
getPersonnel
(boolean clan) getType()
getUnusedString
(boolean showRecovery) Return a string that identifies the unused capacity of this transporter.double
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.Bay
artsTechAdvancement, bayString, bayString, bayString, canUnloadUnits, destroyDoor, destroyDoorNext, getBaseAvailability, getBayDamage, getBayNumber, getCapacity, getCargoMpReduction, getCommonDate, getCurrentDoors, getDefaultSlotDescription, getDoors, getDoorsNext, getDroppableUnits, getExteriorUnitAt, getExternalUnits, getExtinctionDate, getExtinctionDate, getFacing, getIntroductionDate, getIntroductionDate, getLaunchableUnits, getLoadedUnitIds, getLoadedUnits, getMinDoors, getNumberLoadedThisTurn, getNumberUnloadedThisTurn, 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, setFacing, 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, hardpointCost
-
Constructor Details
-
SuperHeavyVehicleBay
public SuperHeavyVehicleBay(double space, int doors, int bayNumber) Create a space for the given number of vehicles.- Parameters:
space
- The number of vehicles that can be carriedbayNumber
- The id number for the bay
-
-
Method Details
-
canLoad
Description copied from interface:Transporter
Determines if this object can accept the given unit. The unit may not be of the appropriate type or there may be no room for the unit.- Specified by:
canLoad
in interfaceTransporter
- Overrides:
canLoad
in classBay
- Parameters:
unit
- - theEntity
to be loaded.- Returns:
true
if the unit can be loaded,false
otherwise.
-
getUnusedString
Description copied from class:Bay
Return a string that identifies the unused capacity of this transporter.- Overrides:
getUnusedString
in classBay
- Returns:
- A
String
meant for a human.
-
getType
-
getWeight
public double getWeight() -
getPersonnel
public int getPersonnel(boolean clan) - Overrides:
getPersonnel
in classBay
- Parameters:
clan
- Whether the bay is installed in a Clan unit. Needed for infantry bays.- Returns:
- The number of additional crew provided by the bay. This includes transport bays only; crew quarters are already accounted for in the crew total.
-
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 -
techAdvancement
-
getTechAdvancement
- Overrides:
getTechAdvancement
in classBay
-
getCost
public long getCost()
-