Class ManeuverType

java.lang.Object
megamek.common.ManeuverType

public class ManeuverType extends Object
Maneuver types for Aerospace
  • Field Details

  • Constructor Details

    • ManeuverType

      public ManeuverType()
  • Method Details

    • getTypeName

      public static String getTypeName(int type)
    • canPerform

      public static boolean canPerform(int type, int velocity, int altitude, int ceiling, boolean isVTOL, int distance, Board board, MovePath mp)
      determines whether the maneuver can be performed
    • getCost

      public static int getCost(int type, int velocity)
      Thrust cost of maneuver
    • getMod

      public static int getMod(int type, boolean isVSTOL_CF)
      Returns the Control Roll modifier for a particular maneuver.
      Parameters:
      type - The type of maneuver performed
      isVSTOL_CF - Flag that determines whether the maneuvering unit is a conventional fighter with VSTOl, which has effects for side-slips
      Returns:
      The control roll modifier
    • getManeuverTooltip

      public static String getManeuverTooltip(int type, boolean canPerform, int velocity, int altitude, int ceiling, boolean isVSTOL_CF)
      Generates an HTML-formatted tooltip for the specified maneuver type showing requirements, thrust cost, control modifier, and effect. Uses localized strings from messages.properties.
      Parameters:
      type - The maneuver type constant from ManeuverType
      canPerform - Whether the maneuver can currently be performed
      velocity - Current unit velocity
      altitude - Current unit altitude
      ceiling - Terrain ceiling altitude below the unit (0 on ground maps)
      isVSTOL_CF - Whether the entity is a VSTOL with Improved Avionics
      Returns:
      HTML-formatted tooltip string