public interface ExploreState
Modifier and Type | Method and Description |
---|---|
long |
currentLocation()
Return the unique identifier associated with Tennessee's current location.
|
int |
distanceToOrb()
Return Tennesse's current distance along the grid (NOT THE GRAPH) from
the Orb.
|
void |
moveTo(long id)
Change Tennessee's current location to the node given by id.
Throw an IllegalArgumentException if the node with id id is not adjacent to Tennessee's current location. |
java.util.Collection<NodeStatus> |
neighbors()
Return an unordered collection of NodeStatus objects
associated with all direct neighbors of Tennessee's current location.
|
long currentLocation()
java.util.Collection<NodeStatus> neighbors()
int distanceToOrb()
void moveTo(long id)