Class AeroLowAltitudePathFinder

java.lang.Object
megamek.common.pathfinder.AeroGroundPathFinder
megamek.common.pathfinder.AeroLowAltitudePathFinder

public class AeroLowAltitudePathFinder extends AeroGroundPathFinder
This class is intended to be used by the bot for generating possible paths for aerospace units on a low-altitude atmospheric map.
  • Constructor Details

    • AeroLowAltitudePathFinder

      protected AeroLowAltitudePathFinder(Game game)
  • Method Details

    • getInstance

      public static AeroLowAltitudePathFinder getInstance(Game game)
    • getMinimumVelocity

      protected int getMinimumVelocity(IAero mover)
      Overrides:
      getMinimumVelocity in class AeroGroundPathFinder
    • getMaximumVelocity

      protected int getMaximumVelocity(IAero mover)
      Overrides:
      getMaximumVelocity in class AeroGroundPathFinder
    • GenerateAllPaths

      protected List<MovePath> GenerateAllPaths(MovePath mp)
      Generate all possible paths given a starting movement path. This includes increases and decreases in elevation.
      Overrides:
      GenerateAllPaths in class AeroGroundPathFinder
    • getAltitudeAdjustedPaths

      protected List<MovePath> getAltitudeAdjustedPaths(List<MovePath> startingPaths)
      Get a list of movement paths with end-of-path altitude adjustments. Irrelevant for low-atmo maps, so simply returns the passed-in list.
      Overrides:
      getAltitudeAdjustedPaths in class AeroGroundPathFinder
      Parameters:
      startingPaths - The collection of paths to process
      Returns:
      The new collection of resulting paths.
    • pathIsRedundant

      protected boolean pathIsRedundant(MovePath mp)
      Determines whether or not the given move path is "redundant". In this situation, "redundant" means "there is already a shorter path that goes to the ending coordinates/facing/height" combo.
      Overrides:
      pathIsRedundant in class AeroGroundPathFinder
      Parameters:
      mp - The move path to examine.
      Returns:
      Whether or not the move path is redundant.