Package megamek.common.bays
Class StandardSeatCargoBay
java.lang.Object
megamek.common.bays.Bay
megamek.common.bays.StandardSeatCargoBay
- All Implemented Interfaces:
Serializable,Transporter,ITechnology
- Direct Known Subclasses:
EjectionSeatCargoBay,PillionSeatCargoBay
Represents a standard support vehicle crew seat.
- See Also:
-
Field Summary
FieldsFields 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
ConstructorsModifierConstructorDescriptionprotectedThe default constructor is only for serialization.StandardSeatCargoBay(double space) Creates standard crew seating for support vehicles. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermines if this object can accept the given unit.longgetCost()getUnusedString(boolean showRecovery) Return a string that identifies the unused capacity of this transporter.doublebooleantoString()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.bays.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, getPersonnel, getProductionDate, getProductionDate, getPrototypeDate, getPrototypeDate, getReintroductionDate, getReintroductionDate, getSafeLaunchRate, getStaticTechLevel, getTechAdvancement, getTechBase, getTechRating, getTroops, getUnloadableUnits, getUnused, getUnusedSlots, getUnusedString, isCargo, isClan, isMixedTech, isWeaponBlockedAt, load, numDoorsString, resetCounts, resetDoors, resetTransporter, restoreAllDoors, restoreDoor, setBayDamage, setCurrentDoors, setCurrentSpace, setDoors, setDoorsNext, setFacing, setGame, spaceForUnit, techAdvancement, 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, hardpointCost, setEntity
-
Field Details
-
weight
protected double weight
-
-
Constructor Details
-
StandardSeatCargoBay
protected StandardSeatCargoBay()The default constructor is only for serialization. -
StandardSeatCargoBay
public StandardSeatCargoBay(double space) Creates standard crew seating for support vehicles.- Parameters:
space- The number of seats
-
-
Method Details
-
canLoad
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:
canLoadin interfaceTransporter- Overrides:
canLoadin classBay- Parameters:
unit- theEntityto be loaded.- Returns:
trueif the unit can be loaded,falseotherwise.
-
getUnusedString
Description copied from class:BayReturn a string that identifies the unused capacity of this transporter.- Overrides:
getUnusedStringin classBay- Returns:
- A
Stringmeant for a human.
-
getTransporterType
-
getWeight
public double getWeight() -
isQuarters
public boolean isQuarters()- Overrides:
isQuartersin classBay- Returns:
- true if this bay represents crew quarters or seating rather than a unit transport bay.
-
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 -
getCost
public long getCost()
-