public interface EscapeState
Modifier and Type | Method and Description |
---|---|
Node |
getCurrentNode()
Returns the graph Node object corresponding to your current location in the graph.
|
Node |
getExit()
Returns the graph Node object associated with the exit to the cavern.
|
int |
getTimeRemaining()
Returns the time remaining to escape from the cavern.
|
java.util.Collection<Node> |
getVertices()
Returns a collection containing all of the nodes in the graph.
|
void |
moveTo(Node n)
Changes your current location to the specified node.
|
void |
pickUpGold()
Picks up any gold on the current tile.
|
Node getCurrentNode()
Node getExit()
java.util.Collection<Node> getVertices()
void moveTo(Node n)
n
- the graph node you are moving to.java.lang.IllegalArgumentException
- if the specified node is not directly connected to your current location.void pickUpGold()
java.lang.IllegalStateException
- if there is no gold at the current location,
either because there never was any or because you picked it up already.int getTimeRemaining()