Class EscapePods

All Implemented Interfaces:
Serializable, ICarryable, Transporter, InGameObject, CombatRole, ForceAssignable, ITechnology, ITurnOrdered, PhaseUpdated, RoundUpdated, ActiveHeatSinkController, BTObject, Deployable, IAero, IBomber, Targetable

public class EscapePods extends SmallCraft
This class describes a group of escape pods and/or lifeboats that has launched from a larger craft
See Also:
  • Field Details

    • originalRideId

      protected int originalRideId
    • originalRideExternalId

      protected String originalRideExternalId
    • POD_EJECT_NAME

      public static final String POD_EJECT_NAME
      See Also:
  • Constructor Details

    • EscapePods

      public EscapePods(Aero originalRide, int nPods, boolean isEscapePod)
      Used to set up a group of launched pods/boats for large spacecraft per rules in SO p27
      Parameters:
      originalRide - - the launching spacecraft
      nPods - - the number of escape craft in this flight
      isEscapePod - - flag to indicate if this is a flight of escape pods
    • EscapePods

      public EscapePods()
      This constructor is so MULParser can load these entities
  • Method Details

    • getOriginalRideId

      public int getOriginalRideId()
      Returns:
      the int id of this unit's original ride
    • setOriginalRideId

      public void setOriginalRideId(int originalRideId)
      set the int id of this unit's original ride
    • getOriginalRideExternalId

      @Deprecated(since="0.51.0", forRemoval=true) public int getOriginalRideExternalId()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      the int external id of this unit's original ride
    • getOriginalRideExternalIdAsString

      @Deprecated(since="0.51.0", forRemoval=true) public String getOriginalRideExternalIdAsString()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setOriginalRideExternalId

      public void setOriginalRideExternalId(String originalRideExternalId)
      set the int external id of this unit's original ride
    • setOriginalRideExternalId

      @Deprecated(since="0.51.0", forRemoval=true) public void setOriginalRideExternalId(int originalRideExternalId)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • isCrippled

      public boolean isCrippled(boolean checkCrew)
      Description copied from class: Entity
      Returns TRUE if the entity meets the requirements for crippling damage as detailed in TW pg 258. Excepting dead or non-existing crew issues
      Overrides:
      isCrippled in class Aero
      Returns:
      boolean