public class UT2004AStarGoalNavPoint extends UT2004AStarGoal
closeList, openList
Constructor and Description |
---|
UT2004AStarGoalNavPoint(NavPoint goalNavPoint) |
Modifier and Type | Method and Description |
---|---|
int |
getEstimatedDistanceToGoal(NavPoint node)
Using Euclidian distance via
Location.getDistance(Location) . |
NavPoint |
getGoalNavPoint() |
boolean |
isGoalReached(NavPoint actualNode)
This tests whether 'actualNode' matches your desired 'goalNode'.
|
getCloseList, getExtraCost, getOpenList, isNodeOpened, setCloseList, setOpenList
public UT2004AStarGoalNavPoint(NavPoint goalNavPoint)
public NavPoint getGoalNavPoint()
public int getEstimatedDistanceToGoal(NavPoint node)
Location.getDistance(Location)
.getEstimatedDistanceToGoal
in interface cz.cuni.amis.utils.astar.AStarHeuristic<NavPoint>
getEstimatedDistanceToGoal
in class UT2004AStarGoal
public boolean isGoalReached(NavPoint actualNode)
UT2004AStarGoal
NavPoint.getId()
).isGoalReached
in interface cz.cuni.amis.utils.astar.AStarGoal<NavPoint>
isGoalReached
in class UT2004AStarGoal
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.