Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
A
B
C
F
G
H
I
L
M
N
O
P
R
S
T
U
X
Y
A
actionPerformed(ActionEvent)
- Method in class
Launcher
Called when the Applet's button is pressed.
actionPerformed(ActionEvent)
- Method in class
MessageBox
Called when the Dialog's button is pressed.
B
Board
- class
Board
.
The Board class paints and plays a Mastermind board on screen.
Board(int, int)
- Constructor for class
Board
BUTTONS1
- Static variable in class
Board
BUTTONS2
- Static variable in class
Board
C
code
- Variable in class
Board
color
- Variable in class
Peg
F
fillHole(int)
- Method in class
Board
Picks the current Peg, called from mousePressed().
G
getColor()
- Method in class
Peg
Returns the color of the peg.
Go()
- Method in class
Board
'Go' button pressed, called from mousePressed().
H
HOLES
- Static variable in class
Board
I
inAnApplet
- Static variable in class
Board
init()
- Method in class
Launcher
Here is the Applet's init().
isPlaying
- Variable in class
Board
isRowFull
- Variable in class
Board
isUpdate
- Variable in class
Board
L
Launcher
- class
Launcher
.
Launcher.java: a Mastermind (or Pico-Fermi) game using AWT.
Launcher()
- Constructor for class
Launcher
M
main(String[])
- Static method in class
Launcher
Here is the Application's main().
MessageBox
- class
MessageBox
.
The MessageBox class implements a message dialog box.
MessageBox(Frame, String, String)
- Constructor for class
MessageBox
mouseClicked(MouseEvent)
- Method in class
Board
These four interface methods are not used but must be defined.
mouseEntered(MouseEvent)
- Method in class
Board
mouseExited(MouseEvent)
- Method in class
Board
mousePressed(MouseEvent)
- Method in class
Board
Called just after a mouse button press (Mouse Listener).
mouseReleased(MouseEvent)
- Method in class
Board
N
newButton
- Variable in class
Launcher
O
OFX
- Static variable in class
Board
OFY
- Static variable in class
Board
okButton
- Variable in class
MessageBox
P
paint(Graphics)
- Method in class
Board
Custom painting code, called automatically by the Java system.
paint(Graphics)
- Method in class
Peg
PALETTE
- Static variable in class
Peg
peg
- Variable in class
Board
Peg row: 0 is 'SECRET CODE', 1-10 is Turns, 11-20 is Score Pins, 21 is coloured button pegs 1-4, 22 is button pegs 5-8.
Peg
- class
Peg
.
The Peg class is a blueprint for a Peg object.
Peg()
- Constructor for class
Peg
Peg(int, int)
- Constructor for class
Peg
pegUpdate
- Variable in class
Board
pegX
- Variable in class
Board
R
radius
- Variable in class
Peg
randomCode()
- Method in class
Board
Generates a random 'SECRET CODE', called from init().
repaintPegs(int)
- Method in class
Board
Repaints Pegs, Java system calls update().
revealCode()
- Method in class
Board
Shows the 'SECRET CODE', called from mousePressed().
S
SCORE
- Static variable in class
Board
SECRET
- Static variable in class
Board
setColor(int)
- Method in class
Peg
Changes the color of the peg.
setPosition(int, int)
- Method in class
Peg
Changes the center of the peg to a new X and Y.
setRadius(int)
- Method in class
Peg
Changes the radius of the peg.
T
turn
- Variable in class
Board
U
update(Graphics)
- Method in class
Board
Overrides the update() method, see repaintPegs().
X
x
- Variable in class
Board
x
- Variable in class
Peg
Y
y
- Variable in class
Board
y
- Variable in class
Peg
A
B
C
F
G
H
I
L
M
N
O
P
R
S
T
U
X
Y
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES