java.lang.Object
de.gurkenlabs.litiengine.entities.behavior.Path

public class Path extends Object
The Class Path.
  • Constructor Details

    • Path

      public Path(Path2D path)
    • Path

      public Path(Point2D start, Point2D target, Path2D path, List<Point2D> points)
      Instantiates a new path.
      Parameters:
      start - The starting point of the path
      target - The target of this instance
      path - The Path2D reference
      points - A list of all Point2D contained by the path
  • Method Details

    • getPath

      public Path2D getPath()
      Gets the path.
      Returns:
      the path
    • getPoints

      public List<Point2D> getPoints()
    • getStart

      public Point2D getStart()
    • getTarget

      public Point2D getTarget()
      Gets the target.
      Returns:
      the target