Package com.prineside.luaj.mapping.parts
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 TypeMethodDescriptionfloatcalculateDistance(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.voidcalculateTargetPosition(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.PathParamReturns a new instance of the path parameter.com.badlogic.gdx.math.VectorReturns the last point of this path.floatReturns the length of this path.com.badlogic.gdx.math.VectorReturns the first point of this path.booleanisOpen()Returnstrueif this path is open;falseotherwise.Methods inherited from class com.prineside.luaj.mapping.InterfaceProxy
getLuaObj, read, write
-
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.PathMaps 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:
calculateDistancein interfacecom.badlogic.gdx.ai.steer.utils.Path- Parameters:
p1- a location in game spacep2- 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.PathCalculates the target position on the path based on its distance from the start and the path parameter.- Specified by:
calculateTargetPositionin interfacecom.badlogic.gdx.ai.steer.utils.Path- Parameters:
p1- the target position to calculatep2- the path parameterp3- 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.PathReturns a new instance of the path parameter.- Specified by:
createParamin interfacecom.badlogic.gdx.ai.steer.utils.Path
-
getEndPoint
public com.badlogic.gdx.math.Vector getEndPoint()Description copied from interface:com.badlogic.gdx.ai.steer.utils.PathReturns the last point of this path.- Specified by:
getEndPointin interfacecom.badlogic.gdx.ai.steer.utils.Path
-
getLength
public float getLength()Description copied from interface:com.badlogic.gdx.ai.steer.utils.PathReturns the length of this path.- Specified by:
getLengthin interfacecom.badlogic.gdx.ai.steer.utils.Path
-
getStartPoint
public com.badlogic.gdx.math.Vector getStartPoint()Description copied from interface:com.badlogic.gdx.ai.steer.utils.PathReturns the first point of this path.- Specified by:
getStartPointin interfacecom.badlogic.gdx.ai.steer.utils.Path
-
isOpen
public boolean isOpen()Description copied from interface:com.badlogic.gdx.ai.steer.utils.PathReturnstrueif this path is open;falseotherwise.- Specified by:
isOpenin interfacecom.badlogic.gdx.ai.steer.utils.Path
-