java.lang.Object taylor.BarnyardSimon.StartGame
private class BarnyardSimon.StartGame
This class listens solely to the start button component of the GUI.
Constructor Summary | |
---|---|
BarnyardSimon.StartGame()
|
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent event)
Initializes and starts a game of Barnyard Simon. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
private BarnyardSimon.StartGame()
Method Detail |
---|
public void actionPerformed(java.awt.event.ActionEvent event)
This method disables the start button and sets the text to "Playing." It also creates a new sequence and calls playSequence to initiate game play.
actionPerformed
in interface java.awt.event.ActionListener