public class UT2004AStarPathPlanner extends Object implements IPathPlanner<ILocated>
Returns UT2004AStarPathFuture that contains the logic for obtaining the path from UT2004 (note that it takes
some time then UT2004 sends you a path).
IMPORTANT: Due to restrictions of the UnrealScript path planner this implementation returns only paths of maximal length 16.
Therefore returned path may end on the half way trough. Therefore, whenever the IPathExecutor reports that
the bot has reached its target, you should compare bot's current position and the PathFuture.getPathTo().
| Constructor and Description |
|---|
UT2004AStarPathPlanner(UT2004Bot bot) |
public UT2004AStarPathPlanner(UT2004Bot bot)
public IPathFuture<ILocated> computePath(ILocated from, ILocated to)
computePath in interface IPathPlanner<ILocated>Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.