| Modifier and Type | Field and Description |
|---|---|
int |
dir
The direction to face while heading toward the node.
|
Point |
loc
The node coordinates in screen pixels.
|
| Constructor and Description |
|---|
PathNode(int x,
int y,
int dir)
Construct a path node object.
|
| Modifier and Type | Method and Description |
|---|---|
String |
toString() |
void |
toString(StringBuilder buf)
This should be overridden by derived classes (which should be sure to call
super.toString()) to append the derived class specific path node information
to the string buffer. |
public Point loc
public int dir
public PathNode(int x,
int y,
int dir)
x - the node x-position.y - the node y-position.dir - the facing direction.public void toString(StringBuilder buf)
super.toString()) to append the derived class specific path node information
to the string buffer.Copyright © 2015. All rights reserved.