- deserialize(List<String>) - Static method in class game.Cavern
-
Convert nodeStrList, which was output by serialize()
, back into a Cavern
.
- dfs(HashSet<Long>) - Method in class student.Indiana
-
Indiana is standing at the node given by field huntState; its id is not in visited.
- dfs1(HashSet<Long>) - Method in class student.Indiana
-
Indiana is standing on a node given by field huntState.
- digEscapeCavern(int, int, int, int, Random) - Static method in class game.Cavern
-
Return a new random cavern with random gold and edge weights.
- digExploreCavern(int, int, Random) - Static method in class game.Cavern
-
Return a new random cavern of the given size where there is no gold, all
edges have weight 1, and there is an orb a reasonable distance from the exit.
- displayError(String) - Method in class gui.GUI
-
Display error e to the player.
- distanceToOrb() - Method in class game.GameState
-
Return the Manhattan distance from the current location to the target location on the map.
- distanceToOrb() - Method in interface game.HuntState
-
Return Indiana's current distance along the grid (NOT THE GRAPH) from
the Orb.