Package megamek.common.pathfinder
Class AeroLowAltitudePathFinder
java.lang.Object
megamek.common.pathfinder.AeroGroundPathFinder
megamek.common.pathfinder.AeroLowAltitudePathFinder
This class is intended to be used by the bot for generating possible paths for
aerospace units on a low-altitude atmospheric map.
-
Nested Class Summary
Nested classes/interfaces inherited from class megamek.common.pathfinder.AeroGroundPathFinder
AeroGroundPathFinder.AeroGroundOffBoardFilter
-
Field Summary
Fields inherited from class megamek.common.pathfinder.AeroGroundPathFinder
game, maxThrust, NAP_OF_THE_EARTH, OPTIMAL_STRAFE_ALTITUDE, OPTIMAL_STRIKE_ALTITUDE, STACK_DEPTH
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGenerate all possible paths given a starting movement path.getAltitudeAdjustedPaths
(List<MovePath> startingPaths) Get a list of movement paths with end-of-path altitude adjustments.static AeroLowAltitudePathFinder
getInstance
(Game game) protected int
getMaximumVelocity
(IAero mover) protected int
getMinimumVelocity
(IAero mover) protected boolean
Determines whether or not the given move path is "redundant".Methods inherited from class megamek.common.pathfinder.AeroGroundPathFinder
ForwardToTheEnd, generateSidePaths, getAllComputedPathsUncategorized, pathIsntRedundant, run
-
Constructor Details
-
AeroLowAltitudePathFinder
-
-
Method Details
-
getInstance
-
getMinimumVelocity
- Overrides:
getMinimumVelocity
in classAeroGroundPathFinder
-
getMaximumVelocity
- Overrides:
getMaximumVelocity
in classAeroGroundPathFinder
-
GenerateAllPaths
Generate all possible paths given a starting movement path. This includes increases and decreases in elevation.- Overrides:
GenerateAllPaths
in classAeroGroundPathFinder
-
getAltitudeAdjustedPaths
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 classAeroGroundPathFinder
- Parameters:
startingPaths
- The collection of paths to process- Returns:
- The new collection of resulting paths.
-
pathIsRedundant
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 classAeroGroundPathFinder
- Parameters:
mp
- The move path to examine.- Returns:
- Whether or not the move path is redundant.
-