Class LJ_GDX_ai.Path_ER.LIP

java.lang.Object
com.prineside.luaj.mapping.InterfaceProxy
com.prineside.luaj.mapping.parts.LJ_GDX_ai.Path_ER.LIP
All Implemented Interfaces:
com.badlogic.gdx.ai.steer.utils.Path, com.esotericsoftware.kryo.KryoSerializable
Enclosing class:
LJ_GDX_ai.Path_ER

public static class LJ_GDX_ai.Path_ER.LIP extends InterfaceProxy implements com.badlogic.gdx.ai.steer.utils.Path
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.badlogic.gdx.ai.steer.utils.Path

    com.badlogic.gdx.ai.steer.utils.Path.PathParam
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    calculateDistance(com.badlogic.gdx.math.Vector p1, com.badlogic.gdx.ai.steer.utils.Path.PathParam p2)
    Maps the given position to the nearest point along the path using the path parameter to ensure coherence and returns the distance of that nearest point from the start of the path.
    void
    calculateTargetPosition(com.badlogic.gdx.math.Vector p1, com.badlogic.gdx.ai.steer.utils.Path.PathParam p2, float p3)
    Calculates the target position on the path based on its distance from the start and the path parameter.
    com.badlogic.gdx.ai.steer.utils.Path.PathParam
    Returns a new instance of the path parameter.
    com.badlogic.gdx.math.Vector
    Returns the last point of this path.
    float
    Returns the length of this path.
    com.badlogic.gdx.math.Vector
    Returns the first point of this path.
    boolean
    Returns true if this path is open; false otherwise.

    Methods inherited from class com.prineside.luaj.mapping.InterfaceProxy

    getLuaObj, read, write

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • calculateDistance

      public float calculateDistance(com.badlogic.gdx.math.Vector p1, com.badlogic.gdx.ai.steer.utils.Path.PathParam p2)
      Description copied from interface: com.badlogic.gdx.ai.steer.utils.Path
      Maps the given position to the nearest point along the path using the path parameter to ensure coherence and returns the distance of that nearest point from the start of the path.
      Specified by:
      calculateDistance in interface com.badlogic.gdx.ai.steer.utils.Path
      Parameters:
      p1 - a location in game space
      p2 - the path parameter
      Returns:
      the distance of the nearest point along the path from the start of the path itself.
    • calculateTargetPosition

      public void calculateTargetPosition(com.badlogic.gdx.math.Vector p1, com.badlogic.gdx.ai.steer.utils.Path.PathParam p2, float p3)
      Description copied from interface: com.badlogic.gdx.ai.steer.utils.Path
      Calculates the target position on the path based on its distance from the start and the path parameter.
      Specified by:
      calculateTargetPosition in interface com.badlogic.gdx.ai.steer.utils.Path
      Parameters:
      p1 - the target position to calculate
      p2 - the path parameter
      p3 - the distance of the target position from the start of the path
    • createParam

      public com.badlogic.gdx.ai.steer.utils.Path.PathParam createParam()
      Description copied from interface: com.badlogic.gdx.ai.steer.utils.Path
      Returns a new instance of the path parameter.
      Specified by:
      createParam in interface com.badlogic.gdx.ai.steer.utils.Path
    • getEndPoint

      public com.badlogic.gdx.math.Vector getEndPoint()
      Description copied from interface: com.badlogic.gdx.ai.steer.utils.Path
      Returns the last point of this path.
      Specified by:
      getEndPoint in interface com.badlogic.gdx.ai.steer.utils.Path
    • getLength

      public float getLength()
      Description copied from interface: com.badlogic.gdx.ai.steer.utils.Path
      Returns the length of this path.
      Specified by:
      getLength in interface com.badlogic.gdx.ai.steer.utils.Path
    • getStartPoint

      public com.badlogic.gdx.math.Vector getStartPoint()
      Description copied from interface: com.badlogic.gdx.ai.steer.utils.Path
      Returns the first point of this path.
      Specified by:
      getStartPoint in interface com.badlogic.gdx.ai.steer.utils.Path
    • isOpen

      public boolean isOpen()
      Description copied from interface: com.badlogic.gdx.ai.steer.utils.Path
      Returns true if this path is open; false otherwise.
      Specified by:
      isOpen in interface com.badlogic.gdx.ai.steer.utils.Path