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 AeroLowAltitudePathFindergetInstance(Game game) protected intgetMaximumVelocity(IAero mover) protected booleanDetermines whether the given move path is "redundant".Methods inherited from class megamek.common.pathfinder.AeroGroundPathFinder
ForwardToTheEnd, generateSidePaths, getAllComputedPathsUncategorized, getMinimumVelocity, pathIsNotRedundant, run
-
Constructor Details
-
AeroLowAltitudePathFinder
-
-
Method Details
-
getInstance
-
getMaximumVelocity
- Overrides:
getMaximumVelocityin classAeroGroundPathFinder
-
GenerateAllPaths
Generate all possible paths given a starting movement path. This includes increases and decreases in elevation.- Overrides:
GenerateAllPathsin classAeroGroundPathFinder
-
getAltitudeAdjustedPaths
Get a list of movement paths with end-of-path altitude adjustments. Irrelevant for low-atmosphere maps, so simply returns the passed-in list.- Overrides:
getAltitudeAdjustedPathsin classAeroGroundPathFinder- Parameters:
startingPaths- The collection of paths to process- Returns:
- The new collection of resulting paths.
-
pathIsRedundant
Determines whether 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:
pathIsRedundantin classAeroGroundPathFinder- Parameters:
mp- The move path to examine.- Returns:
- Whether the move path is redundant.
-