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

public class Path
extends java.lang.Object
The Class Path.
  • Constructor Summary

    Constructors 
    ConstructorDescription
    Path​(java.awt.geom.Path2D path) 
    Path​(java.awt.geom.Point2D start, java.awt.geom.Point2D target, java.awt.geom.Path2D path, java.util.List<java.awt.geom.Point2D> points)
    Instantiates a new path.
  • Method Summary

    Modifier and TypeMethodDescription
    java.awt.geom.Path2DgetPath()
    Gets the path.
    java.util.List<java.awt.geom.Point2D>getPoints() 
    java.awt.geom.Point2DgetStart() 
    java.awt.geom.Point2DgetTarget()
    Gets the target.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Path

      public Path​(java.awt.geom.Path2D path)
    • Path

      public Path​(java.awt.geom.Point2D start, java.awt.geom.Point2D target, java.awt.geom.Path2D path, java.util.List<java.awt.geom.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 java.awt.geom.Path2D getPath()
      Gets the path.
      Returns:
      the path
    • getPoints

      public java.util.List<java.awt.geom.Point2D> getPoints()
    • getStart

      public java.awt.geom.Point2D getStart()
    • getTarget

      public java.awt.geom.Point2D getTarget()
      Gets the target.
      Returns:
      the target