All Packages  Class Hierarchy

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Index of all Fields and Methods

A

action(Event, Object). Method in class Decoder
Detects whether either button was pressed.

D

Decoder(). Constructor for class Decoder

E

equals(Guess). Method in class Guess
Shows if two guesses contain the same elements.
equals(Guess, int). Method in class Guess
Shows if two guesses have equal elements at a particular position.
equals(Guess, int, int). Method in class Guess
Shows if two guesses have equal elements at particular positions.

H

hilitOff(). Method in class HilitCanvas
Turn highlighting off.
hilitOn(). Method in class HilitCanvas
Turn highlighting on.

I

indexOf(int, int). Method in class Guess
Returns first position greater than the input value at which a given value appears.
init(). Method in class Decoder
isFull(). Method in class Guess
Show if all elements have been filled.
isHilit(). Method in class HilitCanvas
Show if this object is highlighted.

M

makeRandom(int, int). Method in class Guess
Fill guess with random integer values within 1 to an upper limit.
MAXDUPLICATIONS. Static variable in interface DecoderConstants
Maximum number of marbles of a particular color that the computer is allowed in its solution.
MAXNUMGUESSES. Static variable in interface DecoderConstants
Maximum number of guesses the player is allowed.
mouseDown(Event, int, int). Method in class HilitCanvas
Do something when the mouse is clicked.
mouseEnter(Event, int, int). Method in class HilitCanvas
Highlight this object when the mouse enters it.
mouseExit(Event, int, int). Method in class HilitCanvas
Un-highlight this object when the mouse leaves it.

N

NUMSLOTS. Static variable in interface DecoderConstants
Number of marbles in each guess (equals number of rows of the board)
NUMTYPES. Static variable in interface DecoderConstants
Number of marble types.

P

paint(Graphics). Method in class Decoder
Due to the nature of the game, this paint function is rarely called except in the very beginning; most of the updating occurs in the canvases that make up individual components.
paint(Graphics). Method in class HilitCanvas
Paint either the highlight or non-highlight image, with appropriate offsets, depending upon the state of the object.

S

setCenter(int, int). Method in class HilitCanvas
Move the canvas.
setImageOff(Image). Method in class HilitCanvas
Set the non-highlighted image.
setImageOn(Image). Method in class HilitCanvas
Set the highlighted image.
setValue(int, int). Method in class Guess
Set the value of an element.

T

toString(int). Method in class Guess
Used to print out one element instead of the entire array.

U

update(Graphics). Method in class Decoder
Repaints without clearing.