public class PathPoint
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) float |
distanceToNext
The linear distance to the next point
|
(package private) float |
distanceToTarget
The distance to the target
|
private int |
hash
A hash of the coordinates used to identify this point
|
(package private) int |
index
The index of this point in its assigned path
|
(package private) PathPoint |
previous
The point preceding this in its assigned path
|
(package private) float |
totalPathDistance
The distance along the path to this point
|
boolean |
visited
True if the pathfinder has already visited this point
|
int |
xCoord
The x coordinate of this point
|
int |
yCoord
The y coordinate of this point
|
int |
zCoord
The z coordinate of this point
|
Constructor and Description |
---|
PathPoint(int x,
int y,
int z) |
Modifier and Type | Method and Description |
---|---|
float |
distanceTo(PathPoint pathpointIn)
Returns the linear distance to another path point
|
float |
distanceToSquared(PathPoint pathpointIn)
Returns the squared distance to another path point
|
boolean |
equals(java.lang.Object p_equals_1_) |
int |
hashCode() |
boolean |
isAssigned()
Returns true if this point has already been assigned to a path
|
static int |
makeHash(int x,
int y,
int z) |
java.lang.String |
toString() |
public final int xCoord
public final int yCoord
public final int zCoord
private final int hash
int index
float totalPathDistance
float distanceToNext
float distanceToTarget
PathPoint previous
public boolean visited
public static int makeHash(int x, int y, int z)
public float distanceTo(PathPoint pathpointIn)
public float distanceToSquared(PathPoint pathpointIn)
public boolean equals(java.lang.Object p_equals_1_)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean isAssigned()
public java.lang.String toString()
toString
in class java.lang.Object