Index
All Classes and Interfaces|All Packages|Serialized Form
A
- autodelay - Variable in class mazebase
-
If set to true, will automatically delay by value
dtime
at end of calls todrawdot(int,int)
B
- bh - Variable in class mazebase
-
the height in pixels of graphical square representing a maze coordinate
- bw - Variable in class mazebase
-
the width in pixels of graphical square representing a maze coordinate
C
- clear() - Method in class mazebase
- customize() - Method in class mazebase
-
User-defined initialization code.
D
- delay(int) - Method in class mazebase
-
delays current thread by approximately ms milliseconds.
- digout(int, int) - Method in class mazebase
-
This function must be override in a subclass to generate a random maze.
- dotcolor - Variable in class mazebase
-
The color of the graphical circle drawn by default by
drawdot(int,int)
- drawblock(int, int) - Method in class mazebase
-
draws a graphical square of color pathcolor corresponding to matrix coordinates row y, column x.
- drawdot(int, int) - Method in class mazebase
- drawdot2(int, int) - Method in class mazebase
- drawgif(int, int) - Method in class mazebase
-
draw default gif
- drawgif2(int, Image, int) - Method in class mazebase
-
draw a specific Image (such as animated gif)
- drawMessage(String) - Method in class mazebase
-
displays string message m at top row of maze
- dtime - Variable in class mazebase
-
The approximate number of milliseconds delayed in calls to
drawdot(int,int)
ifautodelay
is set to true
G
- gifname - Variable in class mazebase
-
The path-name of the gif/jpeg file that replaces a circle if
usegif
is set to true - Graphics() - Method in class mazebase
-
returns java.awt.Graphics object that allows drawing to animation buffer: nothing will be displayed, however, until
nextframe()
is called.
K
- keyPressed(KeyEvent) - Method in class mazebase
-
Override this function to respond to keyboard events.
- keyReleased(KeyEvent) - Method in class mazebase
- keyTyped(KeyEvent) - Method in class mazebase
L
- loadgif(String) - Method in class mazebase
-
utility to load animated gif, called from setup after customize()
M
- M - Variable in class mazebase
-
The array for the maze is declared and initialized in the superclass. This variable should be not set in
customize()
- mazebase - Class in Unnamed Package
-
Superclass of maze generation/solution assignments for CSC17.
- mazebase() - Constructor for class mazebase
-
constructor calls customize first, then creates the matrix M
- mheight - Variable in class mazebase
-
The number of rows of the maze 2D array.
- mwidth - Variable in class mazebase
-
The number of columns of the maze 2D array.
N
- nextframe() - Method in class mazebase
-
redraws animation buffer without delay
- nextframe(int) - Method in class mazebase
-
redraws animation buffer after specified delay
P
- paint(Graphics) - Method in class mazebase
-
this function overrides automatic repaint: do not change
- pathcolor - Variable in class mazebase
-
The color of maze "paths", or M[row][column] values that are non-zero
- pencolor - Variable in class mazebase
-
The color of text messages that are displayed on the maze by
drawMessage(java.lang.String)
- play() - Method in class mazebase
-
Optional function to override to set up an interactive game
R
S
- showvalue - Variable in class mazebase
-
If set to true, the
drawblock(int,int)
function will display the values of the maze matrix that are non-zero - solve() - Method in class mazebase
-
Override this function in a subclass to solve the maze.
- startdigx - Variable in class mazebase
-
Starting x coordinate of maze
- startdigy - Variable in class mazebase
-
Starting y coordinate of maze: the mazebase superclass will call
digout(startdigy,startdigx)
T
- trace() - Method in class mazebase
-
Override this function to trace the optimal solution path of the maze.
U
- usegif - Variable in class mazebase
-
If set to true, will try to load animated gif from filename
gifname
, which will be displayed bydrawdot(int,int)
W
- wallcolor - Variable in class mazebase
-
The color of maze "walls", or M[row][column] values that are zero
Y
- yoff - Variable in class mazebase
-
"y-offset", which is required on some systems that automatically displays a title bar for every window.
All Classes and Interfaces|All Packages|Serialized Form