Package | Description |
---|---|
game | |
gui | |
student |
Modifier and Type | Method and Description |
---|---|
Node |
GameState.getCurrentNode() |
Node |
EscapeState.getCurrentNode()
Return your current location in the graph.
|
Node |
Edge.getDest()
Return the destination of this edge.
|
Node |
Cavern.getEntrance()
Return the node corresponding to the entrance to the cavern.
|
Node |
GameState.getExit() |
Node |
EscapeState.getExit()
Return the exit from the cavern.
|
Node |
Cavern.getNodeAt(int r,
int c)
Return the node at position (r, c).
|
Node |
Edge.getOther(Node n)
Return the Node on this Edge that is not equal to n.
|
Node |
Edge.getSource()
Return the source of this edge.
|
Node |
Cavern.getTarget()
Return the target node in this cavern.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<Node> |
Cavern.getGraph()
Return the set of all nodes in the graph.
|
java.util.Set<Node> |
Node.getNeighbors()
Return an unmodifiable set Nodes neighboring this Node.
|
java.util.Collection<Node> |
GameState.getVertices() |
java.util.Collection<Node> |
EscapeState.getVertices()
Return all the nodes in the graph, in no particular order.
|
Modifier and Type | Method and Description |
---|---|
Edge |
Node.getEdge(Node q)
Returns the Edge of this Node that connects to q.
|
Node |
Edge.getOther(Node n)
Return the Node on this Edge that is not equal to n.
|
void |
GameState.moveTo(Node n)
Attempts to move the explorer from the current position to
the Node n.
|
void |
EscapeState.moveTo(Node n)
Change your current location n.
|
Constructor and Description |
---|
Edge(Node src,
Node dest,
int len)
Constructor: an edge of length len from src to dest.
|
Constructor and Description |
---|
Edge(Edge e,
java.util.Map<Node,Node> isomorphism)
Constructor: an edge like e ...
|
Edge(Edge e,
java.util.Map<Node,Node> isomorphism)
Constructor: an edge like e ...
|
Modifier and Type | Method and Description |
---|---|
java.awt.image.BufferedImage |
MazePanel.getGoldIcon(Node n)
Return an icon for the gold on tile n, or null otherwise.
|
java.awt.image.BufferedImage |
GUI.getGoldIcon(Node n)
Return an icon for the gold on tile n, or null otherwise.
|
void |
GUI.moveTo(Node dest)
Move the player on the GUI to destination dest.
|
void |
ExplorerSprite.moveTo(Node dst) |
void |
TileSelectPanel.selectNode(Node n)
Select node n on the GUI.
|
void |
GUI.selectNode(Node n)
Select node n on the GUI.
|
Modifier and Type | Method and Description |
---|---|
static <T> java.util.List<Node> |
Paths.dijkstra(Node start,
Node end)
Return a shortest path from start to end, or the empty list
if one does not exist.
|
Modifier and Type | Method and Description |
---|---|
static <T> java.util.List<Node> |
Paths.dijkstra(Node start,
Node end)
Return a shortest path from start to end, or the empty list
if one does not exist.
|
Modifier and Type | Method and Description |
---|---|
<T> int |
Paths.pathLength(java.util.List<Node> path)
Return the sum of the weight of edges on path p.
|