Amazing Mazes
< A B C D E F G H I M N O P R S T U V W

<

() - Static method in class Direction
 
() - Static method in class Direction
 
() - Static method in class Direction
 
() - Static method in class MazeGenAdapter
 
() - Static method in class MazeGenAdapter
 

A

action(Event, Object) - Method in class ControlPanel
 
advance(Direction) - Method in class Mouse
This method will advance the mouse (self) from it's current maze cell position to an adjacent cell based on the supplied direction.
advance(Direction) - Method in class Smarty
This advance() method does everything the base class advance() does, but adds a memory by closing the wall behind it (sort of like leaving a trail of bread).
ALL_WALLS - Static variable in class Maze
 
allInstances_ - Static variable in class Direction
Inclusive list of all Direction instances (indexed by one of the constants defined in self).
appletColor - Static variable in class MazeGen
 
AppletFrame - class AppletFrame.
 
AppletFrame(String) - Constructor for class AppletFrame
 

B

backColor - Static variable in class MazeGen
 
bColsMinus - Variable in class ControlPanel
 
bColsPlus - Variable in class ControlPanel
 
bCycle - Variable in class ControlPanel
 
bGen - Variable in class ControlPanel
 
bkgrndColor - Static variable in class MazeGen
 
boldFont - Variable in class ControlPanel
 
BORDER - Static variable in class MazeCanvas
 
bRowsMinus - Variable in class ControlPanel
 
bRowsPlus - Variable in class ControlPanel
 
bSolve - Variable in class ControlPanel
 
buffer - Variable in class MazeCanvas
 
bufferImage - Variable in class MazeCanvas
 

C

C_BACK - Static variable in class Maze
 
C_PATH - Static variable in class Maze
 
cAlgorithm - Variable in class ControlPanel
 
cbShowBack - Variable in class ControlPanel
 
cbShowGen - Variable in class ControlPanel
 
cbShowSolve - Variable in class ControlPanel
 
CE_BACK - Static variable in class Maze
 
CE_PATH - Static variable in class Maze
 
cellLocation_ - Variable in class Position
Maze cell location (coordinates) represented by this Position.
cellSize - Variable in class MazeCanvas
 
clockWiseDir_ - Static variable in class Direction
This array provides a translation to a clockwise direction.
clockWiseDir(Direction) - Static method in class Direction
This static method will return the direction clockwise to the supplied parameter.
CN_BACK - Static variable in class Maze
 
CN_PATH - Static variable in class Maze
 
cols - Variable in class Maze
 
cols - Variable in class MazeCanvas
 
cols - Variable in class ControlPanel
 
colsBtnPanel - Variable in class ControlPanel
 
colsPanel - Variable in class ControlPanel
 
ControlPanel - class ControlPanel.
CONTROL PANEL ******** the UI components
ControlPanel(MazeGen, MazeCanvas) - Constructor for class ControlPanel
 
counterClockWiseDir_ - Static variable in class Direction
This array provides a translation to a counter-clockwise direction.
counterClockWiseDir(Direction) - Static method in class Direction
This static method will return the direction counter- clockwise to the supplied parameter.
cp - Variable in class MazeGen
 
cp - Variable in class Maze
 
CS_BACK - Static variable in class Maze
 
CS_PATH - Static variable in class Maze
 
curPosition_ - Variable in class Mouse
Current position.
CW_BACK - Static variable in class Maze
 
CW_PATH - Static variable in class Maze
 

D

Direction - class Direction.
The Direction class simply encapsulates the enumerated states of valid directions (i.e.
Direction(int) - Constructor for class Direction
Construct a "valid" Direction instance, initialized from the supplied state parameter.
Direction(String) - Constructor for class Direction
Construct an "invalid" Direction instance, retaining the supplied unacceptable state.
dirXlator_ - Static variable in class MazeGenAdapter
This array provides a translation between the "neutral" Direction indicator and MazeGen's standard directional bit masks.
dirXlator(Direction) - Static method in class MazeGenAdapter
This static method will tranlslate a "neutral" Direction indicator to MazeGen's standard directional bit mask (i.e.
distanceToGoal(Direction) - Method in class Mouse
This method will return the distance to the maze solution, from the cell based on the current cell projected in the supplied direction.
drawGen(int, int, int, Maze) - Method in class MazeCanvas
 
drawGrid(Maze) - Method in class MazeCanvas
 
drawInit(Maze) - Method in class MazeCanvas
 
drawMaze(Maze) - Method in class MazeCanvas
 
drawPath(boolean, Maze) - Method in class MazeCanvas
 
drawSolve(int, int, int, Color, Maze) - Method in class MazeCanvas
 
drawStartEnd(Point, Point) - Method in class MazeCanvas
 

E

E_BACK - Static variable in class Maze
 
E_BORDER - Static variable in class Maze
 
E_PATH - Static variable in class Maze
 
E_WALL - Static variable in class Maze
 
East - Static variable in class Direction
Convenient pre-constructed East.
EAST - Static variable in class Direction
Defined constant indicating "EAST".
EAST - Static variable in class Maze
 
endColor - Static variable in class MazeGen
 
endPt - Variable in class Maze
 
enteredDir_ - Variable in class Position
The direction from which we entered this cell position (from the perspective of the previous cell).
equals(Object) - Method in class Direction
Compares two Objects for equality.
erectWall(Point, Direction) - Method in interface MazeAdapter
This method will erect a wall in self's maze, at the supplied cellLocation, facing the supplied direction.
erectWall(Point, Direction) - Method in class MazeGenAdapter
This method will erect a wall in self's maze, at the supplied cellLocation, facing the supplied direction.

F

feedback - Variable in class MazeGen
 
find(int) - Method in class MazeKruskal
 
FocusedL - class FocusedL.
The FocusedL mouse will use a strategy that moves in the same direction (if possible) turning left if blocked.
FocusedL() - Constructor for class FocusedL
 
FocusedR - class FocusedR.
The FocusedR mouse will use a strategy that moves in the same direction (if possible) turning right if blocked.
FocusedR() - Constructor for class FocusedR
 
frameColor - Static variable in class MazeGen
 

G

genDelay - Variable in class ControlPanel
 
generate() - Method in class MazeGen
 
getAlgorithm() - Method in class ControlPanel
 
getCell(int, int) - Method in class Maze
 
getCellLocation() - Method in class Position
Get the cell location (maze coordinates) represented by this Position.
getCols() - Method in class Maze
 
getDim() - Method in class ControlPanel
 
getEnd() - Method in class Maze
 
getEndingCoord() - Method in interface MazeAdapter
This method will return the ending coordinate of self's maze (i.e.
getEndingCoord() - Method in class MazeGenAdapter
This method will return the ending coordinate of self's maze (i.e.
getEnteredDir() - Method in class Position
Get the direction from which we entered this cell position (from the perspective of the previous cell).
getGenDelay() - Method in class ControlPanel
 
getInstance(int) - Static method in class Direction
This static method will return the well-known pre-constructed Direction instance, initialized from the supplied integer state parameter.
getInstance(String) - Static method in class Direction
This static method will return the well-known pre-constructed Direction instance, initialized from the supplied integer state parameter.
getNumberOfStates() - Static method in class Direction
Return the total number of states defined in self.
getRows() - Method in class Maze
 
getSolveDelay() - Method in class ControlPanel
 
getStart() - Method in class Maze
 
getStartingCoord() - Method in interface MazeAdapter
This method will return the starting coordinate of self's maze (i.e.
getStartingCoord() - Method in class MazeGenAdapter
This method will return the starting coordinate of self's maze (i.e.
getState() - Method in class Direction
Return self's direction atomic enumeration state.
getStateAsString() - Method in class Direction
Return self's direction atomic enumeration state as a string.
Goaly - class Goaly.
The Goaly mouse will use a strategy that moves in the direction that is closest to the goal.
Goaly() - Constructor for class Goaly
 

H

handleEvent(Event) - Method in class AppletFrame
 
handleEvent(Event) - Method in class ControlPanel
 
height - Variable in class MazeCanvas
 
hOffset - Variable in class MazeCanvas
 

I

init() - Method in class MazeGen
 
Invalid - Static variable in class Direction
Convenient pre-constructed Invalid object (i.e.
INVALID - Static variable in class Direction
Defined constant indicating "INVALID" (i.e.
InvalidMove - exception InvalidMove.
This exception class indentifies that a mouse specified an invalid move within a maze.
InvalidMove(String) - Constructor for class InvalidMove
Construct a InvalidMove instance with a detailed message.
invalidState_ - Variable in class Direction
The illegal value that was used, which ultimatly created an invalid enumeration instance (i.e.
isCycle - Variable in class MazeGen
 
isGen - Variable in class MazeGen
 
isShowBack() - Method in class ControlPanel
 
isShowGen() - Method in class ControlPanel
 
isShowSolve() - Method in class ControlPanel
 
isSolve - Variable in class MazeGen
 

M

m - Variable in class Maze
 
main(String[]) - Static method in class MazeGen
 
makeAMove() - Method in class FocusedL
For each turn the makeAMove method is called.
makeAMove() - Method in class FocusedR
For each turn the makeAMove method is called.
makeAMove() - Method in class Goaly
For each turn the makeAMove method is called.
makeAMove() - Method in class Mouse
The makeAMove() method is invoked for each successive move that is made in solving the maze puzzle.
makeAMove() - Method in class NESW
For each turn the makeAMove method is called.
makeAMove() - Method in class Randy
For each turn the makeAMove method is called.
makeAMove() - Method in class SWEN
For each turn the makeAMove method is called.
makeAMove() - Method in class ScatterBrained
For each turn the makeAMove method is called.
MAX_CELL_SIZE - Static variable in class MazeCanvas
 
MAX_DELAY - Static variable in class ControlPanel
 
MAX_H_CELLS - Static variable in class ControlPanel
 
MAX_W_CELLS - Static variable in class ControlPanel
 
Maze - class Maze.
MAZE ******** base class; initializes maze cells
maze_ - Variable in class MazeGenAdapter
The MazeGen Maze which we are wrapping.
Maze(Dimension, MazeCanvas, ControlPanel, MazeGen) - Constructor for class Maze
 
MazeAdapter - interface MazeAdapter.
The MazeAdapter interface provides a neutral and abstract mechnism to access various maze objects ...
mazeAdapter_ - Variable in class Mouse
The maze which we are to solve.
MazeCanvas - class MazeCanvas.
MAZE CANVAS ******** draws the maze using double buffer
MazeCanvas(int, int) - Constructor for class MazeCanvas
 
MazeCopy - class MazeCopy.
MAZE COPY ******** @@@KJB copy's an existing maze
MazeCopy(Maze, MazeCanvas) - Constructor for class MazeCopy
 
MazeDFS - class MazeDFS.
MAZE DFS ******** creates maze using Depth-First Search algorithm
MazeDFS(Dimension, MazeCanvas, ControlPanel, MazeGen) - Constructor for class MazeDFS
 
MazeGen - class MazeGen.
MAZEGEN ******** main class; initializes applet panel, controls execution thread, handles UI events
MazeGen() - Constructor for class MazeGen
 
MazeGenAdapter - class MazeGenAdapter.
The MazeGenAdapter class provides a neutral access mechnism to the MazeGen Maze object ...
MazeGenAdapter(Maze) - Constructor for class MazeGenAdapter
Construct a MazeGenAdapter instance that wraps the supplied MazeGen Maze object.
MazeKruskal - class MazeKruskal.
MAZE KRUSKAL ******** creates maze using Kruskal's algorithm
MazeKruskal(Dimension, MazeCanvas, ControlPanel, MazeGen) - Constructor for class MazeKruskal
 
MazePrim - class MazePrim.
MAZE PRIM ******** creates maze using Prim's algorithm
MazePrim(Dimension, MazeCanvas, ControlPanel, MazeGen) - Constructor for class MazePrim
 
mazeThread - Variable in class MazeGen
 
mc - Variable in class MazeGen
 
mc - Variable in class Maze
 
mc - Variable in class ControlPanel
 
mcArr - Variable in class MazeGen
 
mcHeight - Static variable in class MazeGen
 
mcWidth - Static variable in class MazeGen
 
mg - Variable in class Maze
 
mg - Variable in class MazeCanvas
 
mg - Variable in class ControlPanel
 
MIN_CELLS - Static variable in class ControlPanel
 
MIN_DELAY - Static variable in class ControlPanel
 
monoFont - Variable in class ControlPanel
 
Mouse - class Mouse.
This is the Mouse class definition.
MOUSE_NAME - Static variable in class MazeGen
 
Mouse() - Constructor for class Mouse
Construct a default Mouse instance.
mouseSelArr - Variable in class MazeGen
 
moveCell(Vector, Vector, int) - Method in class MazePrim
 
mz - Variable in class MazeGen
 
mzArr - Variable in class MazeGen
 
mzHeight - Variable in class MazeCanvas
 
mzWidth - Variable in class MazeCanvas
 

N

N_BACK - Static variable in class Maze
 
N_BORDER - Static variable in class Maze
 
N_PATH - Static variable in class Maze
 
N_WALL - Static variable in class Maze
 
NESW - class NESW.
The NESW mouse will use a strategy that moves in the order of North East South West.
NESW() - Constructor for class NESW
 
North - Static variable in class Direction
Convenient pre-constructed North.
NORTH - Static variable in class Direction
Defined constant indicating "NORTH".
NORTH - Static variable in class Maze
 
NoSolutionFound - exception NoSolutionFound.
This exception class indentifies that there is no solution to this maze.
NoSolutionFound(String) - Constructor for class NoSolutionFound
Construct a NoSolutionFound instance with a detailed message.
NUM_MAZES - Static variable in class MazeGen
 
nwPathOffset - Variable in class MazeCanvas
 

O

oppositeDir_ - Static variable in class Direction
This array provides a translation to the opposite direction.
oppositeDir(Direction) - Static method in class Direction
This static method will return the opposite direction of the supplied parameter.

P

paint(Graphics) - Method in class MazeCanvas
 
panelColor - Static variable in class MazeGen
 
passagewayOpenAt(Direction) - Method in class Mouse
This method will return an indicator as to whether the passageway is open, in the supplied direction, relative to current mouse cell location.
passagewayOpenAt(Point, Direction) - Method in interface MazeAdapter
This method will return a true/false indicator as to whether the passageway (within self's maze) at the supplied cellLocation/direction is open or not.
passagewayOpenAt(Point, Direction) - Method in class MazeGenAdapter
This method will return a true/false indicator as to whether the passageway (within self's maze) at the supplied cellLocation/direction is open or not.
pathColor - Static variable in class MazeGen
 
pathSize - Variable in class MazeCanvas
 
Position - class Position.
The Position class is used to retain location information for a specified cell within a maze.
Position(Point, Direction) - Constructor for class Position
Construct a Position instance with the specified parameters.

R

randomInt(int) - Method in class Maze
 
randomInt(int) - Static method in class Mouse
This static method will return a random integer, bounded by the supplied integer parameter.
Randy - class Randy.
The Randy mouse will use a strategy that moves in a random direction.
Randy() - Constructor for class Randy
 
Retreat - Static variable in class Direction
Convenient pre-constructed Retreat.
RETREAT - Static variable in class Direction
Defined constant indicating "RETREAT" (i.e.
retreat() - Method in class Mouse
This method will retreat the mouse (self) from it's current maze cell position to the prior cell from which it was entered from.
retreat() - Method in class Smarty
This retreat() method does everything the base class retreat() does, but adds a memory by closing the wall behind it (sort of like leaving a trail of bread).
rows - Variable in class Maze
 
rows - Variable in class MazeCanvas
 
rows - Variable in class ControlPanel
 
rowsBtnPanel - Variable in class ControlPanel
 
rowsPanel - Variable in class ControlPanel
 
run() - Method in class MazeGen
 

S

S_BACK - Static variable in class Maze
 
S_BORDER - Static variable in class Maze
 
S_PATH - Static variable in class Maze
 
S_WALL - Static variable in class Maze
 
sbGenSpeed - Variable in class ControlPanel
 
sbSolveSpeed - Variable in class ControlPanel
 
ScatterBrained - class ScatterBrained.
The ScatterBrained mouse will use a strategy that moves in a random direction.
ScatterBrained() - Constructor for class ScatterBrained
 
sePathOffset - Variable in class MazeCanvas
 
setCols(int) - Method in class ControlPanel
 
setCycleEnable(boolean) - Method in class ControlPanel
 
setCycleLabel(String) - Method in class ControlPanel
 
setGenEnable(boolean) - Method in class ControlPanel
 
setPlusMinusEnable() - Method in class ControlPanel
 
setRows(int) - Method in class ControlPanel
 
setSolveEnable(boolean) - Method in class ControlPanel
 
setStartEnd() - Method in class Maze
 
setWalls() - Method in class Maze
 
setWalls() - Method in class MazeCopy
 
setWalls() - Method in class MazeDFS
 
setWalls() - Method in class MazePrim
 
setWalls() - Method in class MazeKruskal
 
sleep(int) - Method in class MazeGen
 
Smarty - class Smarty.
The Smarty mouse is a base class with a brain.
Smarty() - Constructor for class Smarty
 
solve() - Method in class MazeGen
 
solveDelay - Variable in class ControlPanel
 
solveMaze() - Method in class Maze
 
solveMaze(MazeAdapter) - Method in class Mouse
The solveMaze() method is the primary entry point into the system.
solveMazeAJ(int) - Method in class Maze
 
South - Static variable in class Direction
Convenient pre-constructed South.
SOUTH - Static variable in class Direction
Defined constant indicating "SOUTH".
SOUTH - Static variable in class Maze
 
stack - Variable in class Maze
 
stack_ - Variable in class Mouse
Stack (of Position objects) identifying our current traversal path.
stackPtr - Variable in class Maze
 
start() - Method in class MazeGen
 
startApplet(String, String, String[]) - Static method in class AppletFrame
 
startColor - Static variable in class MazeGen
 
startCycle() - Method in class MazeGen
 
startGen() - Method in class MazeGen
 
startPt - Variable in class Maze
 
startSolve() - Method in class MazeGen
 
state_ - Variable in class Direction
Self's direction indicator enumeration state.
stateDesc_ - Static variable in class Direction
Human readable inclusive list of all direction indicators (indexed by one of the constants defined in self).
stop() - Method in class MazeGen
 
stopCycle() - Method in class MazeGen
 
SWEN - class SWEN.
The SWEN mouse will use a strategy that moves in the order of South West East North.
SWEN() - Constructor for class SWEN
 

T

testNum - Variable in class MazeGen
 
textFont - Variable in class ControlPanel
 
tfCols - Variable in class ControlPanel
 
tfRows - Variable in class ControlPanel
 
toString() - Method in class Direction
Provide symbolic representation of self, supporting stream overloading.
totalCells - Variable in class Maze
 

U

uf - Variable in class MazeKruskal
 
Undefined - Static variable in class Direction
Convenient pre-constructed Undefined object.
UNDEFINED - Static variable in class Direction
Defined constant indicating "UNDEFINED", meaning that it was never initialized.
union(int, int) - Method in class MazeKruskal
 
update(Graphics) - Method in class MazeCanvas
 

V

visualizeAdvance(Point, Direction) - Method in interface MazeAdapter
This method will visualize an advancement move within self's maze at the supplied cellLocation and direction.
visualizeAdvance(Point, Direction) - Method in class MazeGenAdapter
This method will visualize an advancement move within self's maze at the supplied cellLocation and direction.
visualizeRetreat(Point, Direction) - Method in interface MazeAdapter
This method will visualize a retreat move within self's maze at the supplied cellLocation and direction.
visualizeRetreat(Point, Direction) - Method in class MazeGenAdapter
This method will visualize a retreat move within self's maze at the supplied cellLocation and direction.

W

W_BACK - Static variable in class Maze
 
W_BORDER - Static variable in class Maze
 
W_PATH - Static variable in class Maze
 
W_WALL - Static variable in class Maze
 
wallColor - Static variable in class MazeGen
 
wallXlator_ - Static variable in class MazeGenAdapter
This array provides a translation between the "neutral" Direction indicator and MazeGen's directional wall bit masks.
wallXlator(Direction) - Static method in class MazeGenAdapter
This static method will tranlslate a "neutral" Direction indicator to MazeGen's directional wall bit mask (i.e.
West - Static variable in class Direction
Convenient pre-constructed West.
WEST - Static variable in class Direction
Defined constant indicating "WEST".
WEST - Static variable in class Maze
 
width - Variable in class MazeCanvas
 
wOffset - Variable in class MazeCanvas
 

< A B C D E F G H I M N O P R S T U V W
Author: Andrew Bridges
Copyright © 2001