Class DropShuttleBay

All Implemented Interfaces:
Serializable, Transporter, ITechnology

public class DropShuttleBay extends UnitBay
Implements internal bays for dropships used by primitive jumpships. See rules IO, p. 119.
See Also:
  • Constructor Details

    • DropShuttleBay

      protected DropShuttleBay()
      The default constructor is only for serialization.
    • DropShuttleBay

      public DropShuttleBay(int doors, int bayNumber, int facing)
      Create a new DropShuttle bay
      Parameters:
      doors - The number of bay doors
      bayNumber - The bay index, unique to the Entity
      facing - The armor facing of the bay
  • Method Details

    • getTransporterType

      public String getTransporterType()
    • canLoad

      public boolean canLoad(Entity unit)
      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 interface Transporter
      Overrides:
      canLoad in class Bay
      Parameters:
      unit - - the Entity to be loaded.
      Returns:
      true if the unit can be loaded, false otherwise.
    • getWeight

      public double getWeight()
      Overrides:
      getWeight in class Bay
      Returns:
      the tonnage of the bay, not the actual mass or weight
    • getFacing

      public int getFacing()
      Description copied from class: Bay
      Some bays (drop-shuttle and repair facility) have a maximum number per armor facing.
      Overrides:
      getFacing in class Bay
      Returns:
      The facing of the bay, or Entity.LOC_NONE if the bay does not require a facing.
    • setFacing

      public void setFacing(int facing)
      Sets the bay location
      Overrides:
      setFacing in class Bay
      Parameters:
      facing - The armor facing (location) of the bay
    • toString

      public String 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 class Bay
    • hardpointCost

      public int hardpointCost()
      Description copied from interface: Transporter
      Returns the number of Docking Collars (hardpoints) this transporter counts as toward the maximum that a JumpShip (or WS, SS) may carry. TO:AUE p.146
      Returns:
      The number of docking hardpoints this transporter counts as toward the limit.
    • techAdvancement

      public static TechAdvancement techAdvancement()
    • getCost

      public long getCost()
      Overrides:
      getCost in class Bay
      Returns:
      The cost of the bay in C-bills