Package ai.path

Interface ResultPath<Position>


public interface ResultPath<Position>
The result of a pathfinding algorithm containing a full path from start to target.
Since:
08.07.2021
Author:
Juyas
  • Method Summary

    Modifier and Type
    Method
    Description
    The full path containing all nodes in order from start to target.
    The start of the found path.
    The target of the found path
  • Method Details

    • start

      Node<Position> start()
      The start of the found path.
      Returns:
      the starting node
    • target

      Node<Position> target()
      The target of the found path
      Returns:
      the target node
    • fullPath

      List<Node<Position>> fullPath()
      The full path containing all nodes in order from start to target. This may include start and target as well.
      Returns:
      the full path