public class PathPoint
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
float |
cost |
float |
costMalus |
float |
distanceFromOrigin |
float |
distanceToNext
The linear distance to the next point
|
float |
distanceToTarget
The distance to the target
|
int |
index
The index of this point in its assigned path
|
PathNodeType |
nodeType |
PathPoint |
previous
The point preceding this in its assigned path
|
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 |
---|---|
PathPoint |
cloneMove(int x,
int y,
int z) |
static PathPoint |
createFromBuffer(PacketBuffer buf) |
float |
distanceManhattan(PathPoint p_186281_1_) |
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
public int index
public float totalPathDistance
public float distanceToNext
public float distanceToTarget
public PathPoint previous
public boolean visited
public float distanceFromOrigin
public float cost
public float costMalus
public PathNodeType nodeType
public PathPoint cloneMove(int x, int y, int z)
public static int makeHash(int x, int y, int z)
public float distanceTo(PathPoint pathpointIn)
public float distanceToSquared(PathPoint pathpointIn)
public float distanceManhattan(PathPoint p_186281_1_)
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
public static PathPoint createFromBuffer(PacketBuffer buf)