Package | Description |
---|---|
game | |
gui |
Modifier and Type | Method and Description |
---|---|
static Cavern |
Cavern.deserialize(java.util.List<java.lang.String> nodeStrList)
Convert nodeStrList, which was output by
serialize() , back into a Cavern . |
static Cavern |
Cavern.digEscapeCavern(int rows,
int cols,
int currentRow,
int currentCol,
java.util.Random rand)
Return a new random cavern with random gold and edge weights.
|
static Cavern |
Cavern.digExploreCavern(int rows,
int cols,
java.util.Random rand)
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.
|
Modifier and Type | Method and Description |
---|---|
void |
GUI.updateCavern(Cavern c,
int numStepsRemaining)
What is the specification?
|
Constructor and Description |
---|
GUI(Cavern cavern,
int playerRow,
int playerCol,
long seed)
Constructor a new display for cavern cavern with the player at (playerRow, playerCol)
using random number seed seed.
|
MazePanel(Cavern cav,
int screenWidth,
int screenHeight,
GUI gui)
Create a new MazePanel of a given size
|