Package ai.path

Interface Path<Position>

All Known Implementing Classes:
Vector2fPath

public interface Path<Position>
Describes a path from one node to another with a fixed path cost value. This path is considered a direct path for the pathfinding algorithm.
Since:
08.07.2021
Author:
Juyas
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    The costs to take this path.
    end()
    The node where the path ends.
    The node where the path starts.
  • Method Details

    • start

      Node<Position> start()
      The node where the path starts.
      Returns:
      the starting node
    • end

      Node<Position> end()
      The node where the path ends.
      Returns:
      the ending node
    • cost

      float cost()
      The costs to take this path. An artificial value to order multiple paths by costs and to find a the path with the lowest cost which is considered the shortest.
      Returns:
      the cost to take this path