public interface ExplorationState
| Modifier and Type | Method and Description |
|---|---|
long |
getCurrentLocation()
Returns the unique identifier associated with your current location.
|
int |
getDistanceToTarget()
Returns your current distance along the grid (NOT THE GRAPH) from the target.
|
java.util.Collection<NodeStatus> |
getNeighbors()
Returns an unordered collection of NodeStatus objects
associated with all direct neighbors of your current location.
|
void |
moveTo(long id)
Changes your current location to the node specified by the given identifier.
|
long getCurrentLocation()
java.util.Collection<NodeStatus> getNeighbors()
int getDistanceToTarget()
void moveTo(long id)
id - The unique identifier of the node you are moving to.java.lang.IllegalArgumentException - if the given id is not a node adjacent to your current location.