public class UDKAStarPathFuture extends PathFuture<ILocated>
IPathFuture implementation that is using UDK inner AStar algorithm for finding the path inside UDK
environment.
WARNING: UDK has a limition set on the path length. It will return only the first
16 navpoints that are leading to the path's target. Whenever path executor happens to tell you, that
the target is reached, you should compare your bot current location with PathFuture.getPathTo().
Note that the path that is produced by this future contains mix of NavPoint and Location objects.
Usually Location objects are only the first and last elements of the path and the rest are NavPoints.
| Constructor and Description |
|---|
UDKAStarPathFuture(UDKBot bot,
ILocated pathFrom,
ILocated pathTo) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
cancelComputation(boolean mayInterruptIfRunning) |
protected void |
eventEndMessage(EndMessage event) |
protected void |
eventPath(Path event) |
getPathFrom, getPathTocreateLatchaddFutureListener, cancel, computationException, getException, getStatus, isCancelled, isDone, isListening, removeFutureListener, setResult, switchStatusclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddFutureListener, getStatus, isListening, removeFutureListenercancel, isCancelled, isDoneprotected boolean cancelComputation(boolean mayInterruptIfRunning)
protected void eventEndMessage(EndMessage event)
protected void eventPath(Path event)
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.