Class AtmosphericLandingMovePath

java.lang.Object
megamek.common.moves.MovePath
megamek.common.AtmosphericLandingMovePath
All Implemented Interfaces:
Serializable, Cloneable

public class AtmosphericLandingMovePath extends MovePath
See Also:
  • 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

      public void compile(Game g, Entity en, boolean clip)
      Overrides:
      compile in class MovePath
    • getFinalBoardId

      public int getFinalBoardId()
      Overrides:
      getFinalBoardId in class MovePath
      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

      public Coords getFinalCoords()
      Overrides:
      getFinalCoords in class MovePath
      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

      public MovePath clone()
      Description copied from class: MovePath
      Clones this path, will contain a new clone of the steps so that the clone is independent of the original.
      Overrides:
      clone in class MovePath
      Returns:
      the cloned MovePath