|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.starhope.appius.user.PathFinder
public class PathFinder
WRITEME: Document this type.
| Nested Class Summary | |
|---|---|
class |
PathFinder.ContinuePathRunner
WRITEME: Document this type. |
| Field Summary | |
|---|---|
private Kalendor |
kalendor
WRITEME: Document this brpocock@star-hope.org |
private static int |
PATH_TRIES
Try so many times to find a random point that just so happens to make a path to an unreachable point |
private long |
timedEvent
WRITEME: Document this brpocock@star-hope.org |
private AbstractUser |
user
who is lost? |
| Constructor Summary | |
|---|---|
PathFinder(AbstractUser newUser)
WRITEME: Document this constructor brpocock@star-hope.org |
|
| Method Summary | |
|---|---|
List<String> |
findPathSolution(String to,
List<String> visited,
String nextHop)
WRITEME: Document this method brpocock@star-hope.org |
List<String> |
findPathsTo(String from,
String to)
WRITEME: Document this method brpocock@star-hope.org |
String |
getRoomToward(String room)
WRITEME: Document this method brpocock@star-hope.org |
boolean |
pathTo(Coord3D target)
Take a step toward the target. |
boolean |
seekRoom(Room r)
|
void |
stop()
stop any planned movements into the future |
void |
takei(Coord3D target)
Plot a course, Mr Sulu |
long |
whenAtTarget(Runnable runnable)
Perform some action when the current movement-target position has been reached |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final AbstractUser user
private static final int PATH_TRIES
private long timedEvent
private final Kalendor kalendor
| Constructor Detail |
|---|
public PathFinder(AbstractUser newUser)
newUser - user| Method Detail |
|---|
public List<String> findPathSolution(String to,
List<String> visited,
String nextHop)
to - WRITEMEvisited - WRITEMEnextHop - WRITEME
public List<String> findPathsTo(String from,
String to)
from - moniker from which to travelto - moniker to which to travel
public String getRoomToward(String room)
room - WRITEME
public boolean pathTo(Coord3D target)
target - the goal
public boolean seekRoom(Room r)
r - the room to seek
public void stop()
public void takei(Coord3D target)
target - second star to the rightpublic long whenAtTarget(Runnable runnable)
runnable - what to do when the target position is (or at
least, should have been) reached
Kalendor.schedule(long, Runnable),
Kalendor.cancel(long),
Geometry.getTimeToTarget(AbstractUser, long)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||