Package megamek.common
Class AtmosphericLandingMovePath
java.lang.Object
megamek.common.moves.MovePath
megamek.common.AtmosphericLandingMovePath
- All Implemented Interfaces:
Serializable,Cloneable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class megamek.common.moves.MovePath
MovePath.MovePathComparator -
Field Summary
Fields inherited from class megamek.common.moves.MovePath
DEFAULT_PATHFINDER_TIME_LIMIT -
Constructor Summary
ConstructorsConstructorDescriptionAtmosphericLandingMovePath(Game game, Entity entity, BoardLocation location, LandingDirection landingDirection) Creates a complete move path for an aero landing from an atmospheric hex onto a ground hex (i.e. -
Method Summary
Modifier and TypeMethodDescriptionclone()Clones this path, will contain a new clone of the steps so that the clone is independent of the original.voidintMethods inherited from class megamek.common.moves.MovePath
addManeuver, addStep, addStep, addStep, addStep, addStep, addStep, addStep, addStep, addStep, addStep, addStep, addStep, addStep, addSteps, automaticWiGELanding, canShift, clear, clipToPossible, compile, contains, containsLateralShift, containsVTOLBomb, copyFields, countMp, equals, findPathTo, findSimplePathTo, fliesOffBoard, getAdjustedFacing, getCachedEntityState, getCoordsSet, getDirection, getDistanceTravelled, getDroppedUnits, getEndStepCount, getEntity, getFinalAltitude, getFinalClimbMode, getFinalConversionMode, getFinalElevation, getFinalFacing, getFinalHullDown, getFinalNDown, getFinalProne, getFinalVectors, getFinalVelocity, getFinalVelocityLeft, getFlightPathHex, getGame, getHexesMoved, getJumpMaxElevationChange, getJumpPathHighestPoint, getKey, getLastStep, getLastStepMovementType, getMaxElevation, getMaxMP, getMpUsed, getNextMoves, getSecondFinalPosition, getSecondLastStep, getStartCoords, getStep, getSteps, getStepVector, getWaypoint, hasActiveMASC, hasActiveSupercharger, hashCode, hasWaypoint, isAirborne, isAllUnderwater, isCareful, isChangingMode, isEndStep, isJumping, isMoveLegal, isOnAtmosphericGroundMap, isValidPositionForBrace, isValidPositionForBrace, landsWiGEVehicleWhereItCrashes, lateralShiftForTurn, length, nextForwardStepOffBoard, printAllSteps, removeLastStep, replaceSteps, rotatePathfinder, setCareful, setEntity, setFlightPathHex, setGame, setStrafingStep, setVTOLBombStep, shouldMechanicalJumpCauseFallDamage, toString, willCrushBuildings
-
Constructor Details
-
AtmosphericLandingMovePath
public AtmosphericLandingMovePath(Game game, Entity entity, BoardLocation location, LandingDirection landingDirection) Creates a complete move path for an aero landing from an atmospheric hex onto a ground hex (i.e. when not using the aero-on-ground-map movement option). For a horizontal landing, the given location is the start hex for the landing process on the ground map, not the final resting hex of the unit when it has landed (this is done for simplicity so the usual landing strip checks can be used. For player convenience this could be changed to use the landing hex and check backwards).- Parameters:
location- The target location to begin the landing on the ground map
-
-
Method Details
-
compile
-
getFinalBoardId
public int getFinalBoardId()- Overrides:
getFinalBoardIdin classMovePath- Returns:
- the board ID of the final position of this move path or the unit's own board ID if the path has no steps.
-
getFinalCoords
- Overrides:
getFinalCoordsin classMovePath- Returns:
- the final coordinates if a mek were to perform all the steps in this path, or null if there's an issue with determining the coords
-
clone
Description copied from class:MovePathClones this path, will contain a new clone of the steps so that the clone is independent of the original.
-