|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.media.util.AStarPathUtil.Info
protected static class AStarPathUtil.Info
A holding class to contain the wealth of information referenced while performing an A* search for a path through a tile array.
| Field Summary | |
|---|---|
protected HashIntMap<AStarPathUtil.Node> |
_nodes
The nodes being considered in the path. |
int |
destx
The destination coordinates in the tile array. |
int |
desty
The destination coordinates in the tile array. |
int |
maxcost
The maximum cost of any path that we'll consider. |
SortedSet<AStarPathUtil.Node> |
open
The set of open nodes being searched. |
int |
tilehei
The tile array dimensions. |
int |
tilewid
The tile array dimensions. |
AStarPathUtil.TraversalPred |
tpred
Knows whether or not tiles are traversable. |
Object |
trav
The traverser moving along the path. |
| Constructor Summary | |
|---|---|
AStarPathUtil.Info(AStarPathUtil.TraversalPred tpred,
Object trav,
int longest,
int destx,
int desty)
|
|
| Method Summary | |
|---|---|
AStarPathUtil.Node |
getNode(int x,
int y)
Get or create the node for the specified point. |
protected boolean |
isStepValid(int sx,
int sy,
int dx,
int dy)
Returns whether moving from the given source to destination coordinates is a valid move. |
protected boolean |
isTraversable(int x,
int y)
Returns whether the given coordinate is valid and traversable. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public AStarPathUtil.TraversalPred tpred
public int tilewid
public int tilehei
public Object trav
public SortedSet<AStarPathUtil.Node> open
public int destx
public int desty
public int maxcost
protected HashIntMap<AStarPathUtil.Node> _nodes
| Constructor Detail |
|---|
public AStarPathUtil.Info(AStarPathUtil.TraversalPred tpred,
Object trav,
int longest,
int destx,
int desty)
| Method Detail |
|---|
protected boolean isStepValid(int sx,
int sy,
int dx,
int dy)
protected boolean isTraversable(int x,
int y)
public AStarPathUtil.Node getNode(int x,
int y)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||