atavism.server.pathing
Class PathSearchNode
java.lang.Object
atavism.server.pathing.PathSearchNode
public class PathSearchNode
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
closeEnough
protected static int closeEnough
arc
protected PathArc arc
polyIndex
protected int polyIndex
predecessor
protected PathSearchNode predecessor
loc
protected AOVector loc
costSoFar
protected int costSoFar
costToGoal
protected int costToGoal
log
protected static final Logger log
logAll
protected static boolean logAll
PathSearchNode
public PathSearchNode(int polyIndex,
AOVector loc)
PathSearchNode
public PathSearchNode(AOVector loc,
PathSearchNode predecessor)
PathSearchNode
public PathSearchNode(PathArc arc,
int polyIndex,
PathSearchNode predecessor)
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
getLoc
public AOVector getLoc()
setLoc
public void setLoc(AOVector value)
getPolyIndex
public int getPolyIndex()
distanceEstimate
public int distanceEstimate(PathSearchNode goal)
atGoal
public boolean atGoal(PathSearchNode goal)
getSuccessors
protected java.util.List<PathSearchNode> getSuccessors(PathAStarSearcher searcher)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
shortString
public java.lang.String shortString()
isSameState
protected boolean isSameState(PathSearchNode node)
getCostBetween
protected int getCostBetween(PathSearchNode successor)
getArc
public PathArc getArc()
setArc
public void setArc(PathArc arc)
setPredecessor
public void setPredecessor(PathSearchNode node)
getPredecessor
public PathSearchNode getPredecessor()
setCostSoFar
public void setCostSoFar(int cost)
getCostSoFar
public int getCostSoFar()
setCostToGoal
public void setCostToGoal(int cost)
getCostToGoal
public int getCostToGoal()
getCostToEnd
public int getCostToEnd()