Serialized Form


Package dbrown

Class dbrown.GallowsView extends javax.swing.JComponent implements Serializable

Serialized Fields

body

java.awt.geom.GeneralPath body
The path definition for the body of the hanged man.


gallows

java.awt.geom.GeneralPath gallows
The path definition for the gallows.


grass

java.awt.geom.Rectangle2D.Double grass
The rectangle definition for the grass.


head

java.awt.geom.Ellipse2D.Double head
The ellipse definition for the head of the hanged man.


hUnit

int hUnit
The x-axis scaling factor for the graphical display.


mountain

java.awt.Polygon mountain
The polygon definition for the mountain.


sky

java.awt.geom.Rectangle2D.Double sky
The rectangle definition for the sky.


sun

java.awt.geom.Ellipse2D.Double sun
The ellipse definition for the sun.


wUnit

int wUnit
The y-axis scaling factor for the graphical display.


model

Hangman model
The Hangman game object.

Class dbrown.GameControlView extends javax.swing.JPanel implements Serializable

Serialized Fields

model

Hangman model
The Hangman game object.


forfeit

javax.swing.JButton forfeit

newGame

javax.swing.JButton newGame

Class dbrown.HangmanGUI extends javax.swing.JPanel implements Serializable

Serialized Fields

gcv

GameControlView gcv
The sub-view containing the game control buttons.


gv

GallowsView gv
The sub-view containing the graphical representation of the hanged man.


lv

LettersView lv
The sub-view containing the buttons corresponding to the letters of the alphabet.


pv

PhraseView pv
The sub-view containing the phrase guessed by the player so far.

Class dbrown.LetterButton extends javax.swing.JButton implements Serializable

Serialized Fields

letter

char letter
The letter of the alphabet attached to the button.

Class dbrown.LettersView extends javax.swing.JPanel implements Serializable

Serialized Fields

buttons

LetterButton[] buttons
An array of buttons, each of which is associated with a letter of the alphabet.


model

Hangman model
The Hangman game object.

Class dbrown.PhraseView extends javax.swing.JPanel implements Serializable

Serialized Fields

phrase

javax.swing.JLabel phrase
Displays the phrase guessed so far by the player.


model

Hangman model