Interface IAero

All Known Implementing Classes:
Aero, AeroSpaceFighter, ConvFighter, Dropship, EscapePods, FighterSquadron, FixedWingSupport, Jumpship, LandAirMek, SmallCraft, SpaceStation, TeleMissile, Warship

public interface IAero
Methods shared by Aero and LandAirMek
  • Field Details

  • Method Details

    • getCurrentThrust

      int getCurrentThrust()
    • getCurrentVelocity

      int getCurrentVelocity()
    • setCurrentVelocity

      void setCurrentVelocity(int velocity)
    • getNextVelocity

      int getNextVelocity()
    • setNextVelocity

      void setNextVelocity(int velocity)
    • getCurrentVelocityActual

      int getCurrentVelocityActual()
    • isVSTOL

      boolean isVSTOL()
    • isSTOL

      boolean isSTOL()
    • isSpheroid

      boolean isSpheroid()
    • isAirborne

      boolean isAirborne()
    • isSpaceborne

      boolean isSpaceborne()
    • isRolled

      boolean isRolled()
    • setRolled

      void setRolled(boolean roll)
    • isOutControlTotal

      boolean isOutControlTotal()
    • isOutControl

      boolean isOutControl()
    • setOutControl

      void setOutControl(boolean ocontrol)
    • isOutCtrlHeat

      boolean isOutCtrlHeat()
    • setOutCtrlHeat

      void setOutCtrlHeat(boolean octrlheat)
    • isRandomMove

      boolean isRandomMove()
    • setRandomMove

      void setRandomMove(boolean randmove)
    • didAccLast

      boolean didAccLast()
    • setAccLast

      void setAccLast(boolean b)
    • didFailManeuver

      boolean didFailManeuver()
    • setFailedManeuver

      void setFailedManeuver(boolean b)
    • setAccDecNow

      void setAccDecNow(boolean b)
    • didAccDecNow

      boolean didAccDecNow()
    • getStraightMoves

      int getStraightMoves()
    • setStraightMoves

      void setStraightMoves(int straightMoves)
    • getAltLoss

      int getAltLoss()
    • setAltLoss

      void setAltLoss(int i)
    • resetAltLoss

      void resetAltLoss()
    • getAltLossThisRound

      int getAltLossThisRound()
    • setAltLossThisRound

      void setAltLossThisRound(int i)
    • resetAltLossThisRound

      void resetAltLossThisRound()
    • getNoseArmor

      int getNoseArmor()
    • setSI

      void setSI(int si)
    • getSI

      int getSI()
    • getOSI

      int getOSI()
    • getAvionicsHits

      int getAvionicsHits()
    • getSensorHits

      int getSensorHits()
    • getFCSHits

      int getFCSHits()
    • getLandingGearPartialRepairs

      int getLandingGearPartialRepairs()
    • getAvionicsMisreplaced

      int getAvionicsMisreplaced()
    • getAvionicsMisrepaired

      int getAvionicsMisrepaired()
    • getClusterMods

      default int getClusterMods()
    • hasLifeSupport

      boolean hasLifeSupport()
    • setGearHit

      void setGearHit(boolean hit)
    • getLandingGearMod

      int getLandingGearMod(boolean vTakeoff)
    • getLeftThrustHits

      int getLeftThrustHits()
    • getRightThrustHits

      int getRightThrustHits()
    • getThresh

      int getThresh(int loc)
    • getHighestThresh

      int getHighestThresh()
    • wasCritThresh

      boolean wasCritThresh()
    • setCritThresh

      void setCritThresh(boolean b)
    • getFuel

      int getFuel()
    • setFuel

      void setFuel(int gas)
    • getCurrentFuel

      int getCurrentFuel()
    • setCurrentFuel

      void setCurrentFuel(int gas)
    • getFuelPointsPerTon

      double getFuelPointsPerTon()
    • requiresFuel

      default boolean requiresFuel()
      Returns:
      True when this aero requires fuel to move. Note that the result is undefined when the unit has no engine. Callers should consider this case themselves. Also note that this method does not check whether fuel use as a game option is active, only if the unit technically requires fuel to move. For example, returns false for solar powered prop-driven fixed wing support (TM p129).
    • getCapArmor

      int getCapArmor()
    • setCapArmor

      void setCapArmor(int i)
    • getCap0Armor

      int getCap0Armor()
    • getFatalThresh

      int getFatalThresh()
    • getCurrentDamage

      int getCurrentDamage()
    • setCurrentDamage

      void setCurrentDamage(int i)
    • getHeatSinks

      int getHeatSinks()
    • doDisbandDamage

      void doDisbandDamage()
    • autoSetCapArmor

      void autoSetCapArmor()
    • autoSetFatalThresh

      void autoSetFatalThresh()
    • getAltitude

      int getAltitude()
    • groupWeaponsByLocation

      Map<String,Integer> groupWeaponsByLocation()
      Iterate through current weapons and count the number in each capital fighter location.
      Returns:
      A map with keys in the format "weaponName:loc", with the number of weapons of that type in that location as the value.
    • getWeaponGroups

      Map<String,Integer> getWeaponGroups()
    • updateWeaponGroups

      default void updateWeaponGroups()
      Refresh the capital fighter weapons groups.
    • setFuelTonnage

      void setFuelTonnage(double fuelTons)
      Set number of fuel points based on fuel tonnage.
      Parameters:
      fuelTons - The number of tons of fuel
    • getFuelTonnage

      double getFuelTonnage()
      Gets the fuel for this Aero in terms of tonnage.
      Returns:
      The number of tons of fuel on this Aero.
    • checkThrustSI

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

      default PilotingRollData checkThrustSITotal(int thrust, EntityMovementType overallMoveType)
    • checkVelocityDouble

      default PilotingRollData checkVelocityDouble(int velocity, EntityMovementType overallMoveType)
    • checkDown

      default PilotingRollData checkDown(int drop, EntityMovementType overallMoveType)
    • checkHover

      default PilotingRollData checkHover(MovePath md)
    • checkStall

      default PilotingRollData checkStall(MovePath md)
    • checkRolls

      default PilotingRollData checkRolls(MoveStep step, EntityMovementType overallMoveType)
    • checkVerticalTakeOff

      default PilotingRollData checkVerticalTakeOff()
    • checkLanding

      default PilotingRollData checkLanding(EntityMovementType moveType, int velocity, Coords landingPos, int face, boolean isVertical)
      Compute the PilotingRollData for a landing control roll (see TW pg 86).
      Parameters:
      moveType -
      velocity - Velocity when the check is to be made, this needs to be passed as the check could happen as part of a Move Path
      landingPos - The final position the Aero will land on.
      isVertical - If this a vertical or horizontal landing
      Returns:
      A PilotingRollData tha represents the landing control roll that must be passed
    • getLandingCoords

      default Set<Coords> getLandingCoords(boolean isVertical, Coords landingPos, int facing)
    • checkManeuver

      default PilotingRollData checkManeuver(MoveStep step, EntityMovementType overallMoveType)
      Checks if a maneuver requires a control roll
    • rollArcs

      default int rollArcs(int arc)
      switches certain arcs due to rolling
    • getTakeOffLength

      default int getTakeOffLength()
    • getLandingLength

      default int getLandingLength()
    • canTakeOffHorizontally

      default boolean canTakeOffHorizontally()
    • canLandHorizontally

      default boolean canLandHorizontally()
    • canTakeOffVertically

      default boolean canTakeOffVertically()
    • canLandVertically

      default boolean canLandVertically()
    • hasRoomForHorizontalTakeOff

      default String hasRoomForHorizontalTakeOff()
    • hasRoomForHorizontalLanding

      default String hasRoomForHorizontalLanding()
    • hasRoomForVerticalLanding

      default String hasRoomForVerticalLanding()
    • liftOff

      default void liftOff(int altitude)
    • land

      default void land()
    • getFuelUsed

      default int getFuelUsed(int thrust)
    • useFuel

      default void useFuel(int fuelUsed)
      use the specified amount of fuel for this Aero. The amount may be adjusted by certain game options
      Parameters:
      fuelUsed - The number of fuel points to use
    • updateSensorOptions

      default void updateSensorOptions()
      A method to add/remove sensors that only work in space as we transition in and out of an atmosphere
    • getEnginesLostRound

      default int getEnginesLostRound()
      Check which turn engines were destroyed in.
    • setEnginesLostRound

      void setEnginesLostRound(int round)
      Set round that engines were completely destroyed; needed for crash-landing check
      Parameters:
      round -