Package com.prineside.luaj.mapping.parts
Class LJ_GDX_ai.SmoothableGraphPath_CM.LIP
java.lang.Object
com.prineside.luaj.mapping.InterfaceProxy
com.prineside.luaj.mapping.parts.LJ_GDX_ai.SmoothableGraphPath_CM.LIP
- All Implemented Interfaces:
com.badlogic.gdx.ai.pfa.GraphPath
,com.badlogic.gdx.ai.pfa.SmoothableGraphPath
,com.esotericsoftware.kryo.KryoSerializable
,Iterable
- Enclosing class:
- LJ_GDX_ai.SmoothableGraphPath_CM
public static class LJ_GDX_ai.SmoothableGraphPath_CM.LIP
extends InterfaceProxy
implements com.badlogic.gdx.ai.pfa.SmoothableGraphPath
-
Field Summary
Fields inherited from class com.prineside.luaj.mapping.InterfaceProxy
luaObj
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds an item at the end of this path.void
clear()
Clears this path.void
get
(int p1) Returns the item of this path at the given index.int
getCount()
Returns the number of items of this path.com.badlogic.gdx.math.Vector
getNodePosition
(int p1) Returns the position of the node at the given index.iterator()
void
reverse()
Reverses this path.void
swapNodes
(int p1, int p2) Swaps the specified nodes of this path.void
truncatePath
(int p1) Reduces the size of this path to the specified length (number of nodes).Methods inherited from class com.prineside.luaj.mapping.InterfaceProxy
getLuaObj, read, write
-
Method Details
-
add
Description copied from interface:com.badlogic.gdx.ai.pfa.GraphPath
Adds an item at the end of this path.- Specified by:
add
in interfacecom.badlogic.gdx.ai.pfa.GraphPath
-
clear
public void clear()Description copied from interface:com.badlogic.gdx.ai.pfa.GraphPath
Clears this path.- Specified by:
clear
in interfacecom.badlogic.gdx.ai.pfa.GraphPath
-
forEach
-
get
Description copied from interface:com.badlogic.gdx.ai.pfa.GraphPath
Returns the item of this path at the given index.- Specified by:
get
in interfacecom.badlogic.gdx.ai.pfa.GraphPath
-
getCount
public int getCount()Description copied from interface:com.badlogic.gdx.ai.pfa.GraphPath
Returns the number of items of this path.- Specified by:
getCount
in interfacecom.badlogic.gdx.ai.pfa.GraphPath
-
getNodePosition
public com.badlogic.gdx.math.Vector getNodePosition(int p1) Description copied from interface:com.badlogic.gdx.ai.pfa.SmoothableGraphPath
Returns the position of the node at the given index.- Specified by:
getNodePosition
in interfacecom.badlogic.gdx.ai.pfa.SmoothableGraphPath
- Parameters:
p1
- the index of the node you want to know the position
-
iterator
-
reverse
public void reverse()Description copied from interface:com.badlogic.gdx.ai.pfa.GraphPath
Reverses this path.- Specified by:
reverse
in interfacecom.badlogic.gdx.ai.pfa.GraphPath
-
spliterator
- Specified by:
spliterator
in interfaceIterable
-
swapNodes
public void swapNodes(int p1, int p2) Description copied from interface:com.badlogic.gdx.ai.pfa.SmoothableGraphPath
Swaps the specified nodes of this path.- Specified by:
swapNodes
in interfacecom.badlogic.gdx.ai.pfa.SmoothableGraphPath
- Parameters:
p1
- index of the first node to swapp2
- index of the second node to swap
-
truncatePath
public void truncatePath(int p1) Description copied from interface:com.badlogic.gdx.ai.pfa.SmoothableGraphPath
Reduces the size of this path to the specified length (number of nodes). If the path is already smaller than the specified length, no action is taken.- Specified by:
truncatePath
in interfacecom.badlogic.gdx.ai.pfa.SmoothableGraphPath
- Parameters:
p1
- the new length
-