public class RedBlackGame extends Game implements java.awt.event.ItemListener
MultiplePartsPanel.SOCRToolBar
applet, fName, graphs, mainPane, recordTable, tables, toolbar, toolbar2, toolbars
Constructor and Description |
---|
RedBlackGame()
This method initializes the experiment.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent event)
This method handles the events associated with the buttons.
|
void |
itemStateChanged(java.awt.event.ItemEvent event)
This method handles the choice events assoicated with changing the target
fortune.
|
void |
reset()
This method resets the experiment.
|
void |
resetBet()
This method resets the bet.
|
void |
resetGame()
This method resets the game.
|
void |
update(java.util.Observable o,
java.lang.Object arg)
This method handles the scroll events associated with changing the
initial fortune or the probability of success.
|
getAppletInfo, getDisplayPane, getInstance, getOnlineDescription, performAction, setAppletInfo, updateGame
addGraph, addTable, addTool, addTool2, addToolbar, format, getMainPanel, getName, getRecordTable, getTextPanel, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, play, setApplet, setName
createComponentSetter, createValueSetter, createValueSetter, createValueSetter, createValueSetter, getComponentSetter, getComponentSetters, getValueSetter, getValueSetters
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName, setApplet
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 resetGame()
public void resetBet()
public void update(java.util.Observable o, java.lang.Object arg)
update
in interface java.util.Observer
update
in class MultiplePartsPanel
Observer.update(java.util.Observable, java.lang.Object)