public class Path
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
count
The number of points in this path
|
private PathPoint[] |
pathPoints
Contains the points in this path
|
Constructor and Description |
---|
Path() |
Modifier and Type | Method and Description |
---|---|
PathPoint |
addPoint(PathPoint point)
Adds a point to the path
|
void |
changeDistance(PathPoint p_75850_1_,
float p_75850_2_)
Changes the provided point's distance to target
|
void |
clearPath()
Clears the path
|
PathPoint |
dequeue()
Returns and removes the first point in the path
|
boolean |
isPathEmpty()
Returns true if this path contains no points
|
private void |
sortBack(int p_75847_1_)
Sorts a point to the left
|
private void |
sortForward(int p_75846_1_)
Sorts a point to the right
|
private PathPoint[] pathPoints
private int count
public void clearPath()
public PathPoint dequeue()
public void changeDistance(PathPoint p_75850_1_, float p_75850_2_)
private void sortBack(int p_75847_1_)
private void sortForward(int p_75846_1_)
public boolean isPathEmpty()