public class MontyHallGame extends Game implements java.awt.event.ItemListener
MultiplePartsPanel.SOCRToolBar
Modifier and Type | Field and Description |
---|---|
static int |
BLIND |
static int |
STANDARD |
applet, fName, graphs, mainPane, recordTable, tables, toolbar, toolbar2, toolbars
Constructor and Description |
---|
MontyHallGame()
This method initializes the game, including the toolbar buttons, doors,
images
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent event)
This method handles the events for the Play button
|
void |
itemStateChanged(java.awt.event.ItemEvent event)
This method handles the events for the host choice
|
void |
mouseClicked(java.awt.event.MouseEvent event)
This method handles events for the door clicks
|
void |
reset()
This message resets the game
|
getAppletInfo, getDisplayPane, getInstance, getOnlineDescription, performAction, setAppletInfo, updateGame
addGraph, addTable, addTool, addTool2, addToolbar, format, getMainPanel, getName, getRecordTable, getTextPanel, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, play, setApplet, setName, update
createComponentSetter, createValueSetter, createValueSetter, createValueSetter, createValueSetter, getComponentSetter, getComponentSetters, getValueSetter, getValueSetters
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName, setApplet
public static final int STANDARD
public static final int BLIND
public MontyHallGame()
public void reset()
public void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed
in interface java.awt.event.ActionListener
actionPerformed
in class Game
public void itemStateChanged(java.awt.event.ItemEvent event)
itemStateChanged
in interface java.awt.event.ItemListener
public void mouseClicked(java.awt.event.MouseEvent event)
mouseClicked
in interface java.awt.event.MouseListener
mouseClicked
in class MultiplePartsPanel