| Constructor and Description |
|---|
DefaultGraphPath()
Creates a
DefaultGraphPath with no nodes. |
DefaultGraphPath(com.badlogic.gdx.utils.Array<N> nodes)
Creates a
DefaultGraphPath with the given nodes. |
DefaultGraphPath(int capacity)
Creates a
DefaultGraphPath with the given capacity and no nodes. |
| Modifier and Type | Method and Description |
|---|---|
void |
add(N node)
Adds an item at the end of this path.
|
void |
clear()
Clears this path.
|
N |
get(int index)
Returns the item of this path at the given index.
|
int |
getCount()
Returns the number of items of this path.
|
java.util.Iterator<N> |
iterator() |
void |
reverse()
Reverses this path.
|
public final com.badlogic.gdx.utils.Array<N> nodes
public DefaultGraphPath()
DefaultGraphPath with no nodes.public DefaultGraphPath(int capacity)
DefaultGraphPath with the given capacity and no nodes.public DefaultGraphPath(com.badlogic.gdx.utils.Array<N> nodes)
DefaultGraphPath with the given nodes.public void clear()
GraphPathpublic int getCount()
GraphPathpublic void add(N node)
GraphPathpublic N get(int index)
GraphPathpublic void reverse()
GraphPath