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