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, updateGameaddGraph, addTable, addTool, addTool2, addToolbar, format, getMainPanel, getName, getRecordTable, getTextPanel, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, play, setApplet, setName, updatecreateComponentSetter, createValueSetter, createValueSetter, createValueSetter, createValueSetter, getComponentSetter, getComponentSetters, getValueSetter, getValueSettersclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetName, setAppletpublic 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.ActionListeneractionPerformed in class Gamepublic void itemStateChanged(java.awt.event.ItemEvent event)
itemStateChanged in interface java.awt.event.ItemListenerpublic void mouseClicked(java.awt.event.MouseEvent event)
mouseClicked in interface java.awt.event.MouseListenermouseClicked in class MultiplePartsPanel