Modifier and Type | Method and Description |
---|---|
Node |
EscapeState.getCurrentNode()
Returns the graph Node object corresponding to your current location in the graph.
|
Node |
GameState.getCurrentNode() |
Node |
Edge.getDest()
Returns the Node that this edge is going to.
|
Node |
Cavern.getEntrance() |
Node |
EscapeState.getExit()
Returns the graph Node object associated with the exit to the cavern.
|
Node |
GameState.getExit() |
Node |
Cavern.getNodeAt(int r,
int c) |
Node |
Edge.getOther(Node n)
Returns the Node on this Edge that is not equal to the one provided.
|
Node |
Edge.getSource()
Returns the Node that this edge is coming from.
|
Node |
Cavern.getTarget() |
Modifier and Type | Method and Description |
---|---|
java.util.Set<Node> |
Cavern.getGraph() |
java.util.Set<Node> |
Node.getNeighbors()
Returns an unmodifiable view of the Nodes neighboring this Node.
|
java.util.Collection<Node> |
EscapeState.getVertices()
Returns a collection containing all of the nodes in the graph.
|
java.util.Collection<Node> |
GameState.getVertices() |
Modifier and Type | Method and Description |
---|---|
Edge |
Node.getEdge(Node q)
Returns the Edge of this Node that connects to Node q.
|
Node |
Edge.getOther(Node n)
Returns the Node on this Edge that is not equal to the one provided.
|
void |
EscapeState.moveTo(Node n)
Changes your current location to the specified node.
|
void |
GameState.moveTo(Node n)
Attempts to move the explorer from the current position to
the Node n.
|
Constructor and Description |
---|
Edge(Node src,
Node dest,
int length) |
Constructor and Description |
---|
Edge(Edge e,
java.util.Map<Node,Node> isomorphism) |
Edge(Edge e,
java.util.Map<Node,Node> isomorphism) |