Class TeleMissile

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

public class TeleMissile extends Aero
See Also:
  • Field Details

  • Constructor Details

    • TeleMissile

      public TeleMissile()
    • TeleMissile

      public TeleMissile(Entity originalRide, int damageValue, int armorValue, double weight, AmmoType.AmmoTypeEnum type, int capMisMod)
  • Method Details

    • isEligibleForFiring

      public boolean isEligibleForFiring()
      Description copied from class: Entity
      An entity is eligible for firing if it's not taking some kind of action that prevents it from firing, such as a full-round physical attack or sprinting.
      Overrides:
      isEligibleForFiring in class Entity
    • rollHitLocation

      public HitData rollHitLocation(int table, int side)
      Description copied from class: Entity
      Rolls up a hit location
      Overrides:
      rollHitLocation in class Aero
    • setDamageValue

      public void setDamageValue(int dv)
    • getDamageValue

      public int getDamageValue()
    • getOriginalRideId

      public int getOriginalRideId()
    • setOriginalRideId

      public void setOriginalRideId(int originalRideId)
    • setThresh

      public void setThresh(int val, int loc)
      Overrides:
      setThresh in class Aero
    • getThresh

      public int getThresh(int loc)
      Specified by:
      getThresh in interface IAero
      Overrides:
      getThresh in class Aero
    • autoSetThresh

      public void autoSetThresh()
      Overrides:
      autoSetThresh in class Aero
    • initializeThresh

      public void initializeThresh(int loc)
      Overrides:
      initializeThresh in class Aero
    • getLocationAbbreviations

      public String[] getLocationAbbreviations()
      Overrides:
      getLocationAbbreviations in class Aero
    • getLocationNames

      public String[] getLocationNames()
      Overrides:
      getLocationNames in class Aero
    • hasStealth

      public boolean hasStealth()
      Overrides:
      hasStealth in class Entity
      Returns:
      True if this unit has working stealth armor (not patchwork armor).
    • doBattleValueCalculation

      public int doBattleValueCalculation(boolean ignoreC3, boolean ignoreSkill, CalculationReport calculationReport)
      Description copied from class: Entity
      Calculates and returns the Battle Value of this unit taking into account the parameters. This method should be overridden by subclasses of Entity to provide a unit type specific calculation of the Battle Value. A report of the calculation should be written to the given calculationReport.
      Overrides:
      doBattleValueCalculation in class Entity
      Parameters:
      ignoreC3 - When true, the BV contributions of any C3 computers are not added
      ignoreSkill - When true, the skill of the crew / pilot is not taken into account for BV
      calculationReport - A CalculationReport to write the BV calculation to
      Returns:
      The Battle Value of this unit calculated from its current state
    • getGenericBattleValue

      public int getGenericBattleValue()
      Description copied from class: Entity
      Calculates a "generic" Battle Value that is based on the average of all units of this type and tonnage. The purpose of this generic Battle Value is to allow a comparison of this unit's actual BV to that for units of its class. This can be used to balance forces without respect to unit or pilot quality.

      The generic BV values are calculated by a statistical elasticity model based on all data from the MegaMek database.

      Specified by:
      getGenericBattleValue in class Entity
      Returns:
      The generic Battle value for this unit based on its tonnage and type
    • getWalkMP

      public int getWalkMP(MPCalculationSetting mpCalculationSetting)
      Overrides:
      getWalkMP in class Aero
    • getRunMP

      public int getRunMP(MPCalculationSetting mpCalculationSetting)
      Overrides:
      getRunMP in class Aero
    • checkThrustSI

      public PilotingRollData checkThrustSI(int thrust, EntityMovementType overallMoveType)
    • checkThrustSITotal

      public PilotingRollData checkThrustSITotal(int thrust, EntityMovementType overallMoveType)
      Description copied from interface: IAero
      Checks if the specified thrust value exceeds the current structural integrity (SI) of the entity and computes any necessary modifiers or notes for the resulting piloting roll.

      If the entity has the "G Tolerance" ability, a bonus modifier is applied.

      • If the thrust used is greater than the entity's SI, a modifier indicating "Thrust spent this turn exceeds current SI" is appended to the result.
      • Otherwise, an indicator is added to show the SI was not exceeded.
      Parameters:
      thrust - the thrust value used this turn
      overallMoveType - the overall movement type for this piloting check
      Returns:
      a PilotingRollData object with all appropriate modifiers and notes
    • isOutContact

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

      public void setOutContact(boolean b)
    • isOutControlTotal

      public boolean isOutControlTotal()
      Specified by:
      isOutControlTotal in interface IAero
      Overrides:
      isOutControlTotal in class Aero
    • setCritMod

      public void setCritMod(int m)
    • getCritMod

      public int getCritMod()
    • locations

      public int locations()
      Description copied from class: Aero
      Returns the number of locations in the entity
      Overrides:
      locations in class Aero
    • canRam

      public boolean canRam()
      Overrides:
      canRam in class Aero
      Returns:
      Whether this type of unit can perform Ramming attacks
    • getEntityType

      public long getEntityType()
      Overrides:
      getEntityType in class Aero