taylor
Class BarnyardSimon.StartGame

java.lang.Object
  extended by taylor.BarnyardSimon.StartGame
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener
Enclosing class:
BarnyardSimon

private class BarnyardSimon.StartGame
extends java.lang.Object
implements java.awt.event.ActionListener

This class listens solely to the start button component of the GUI.

Version:
FIX
Author:
FIX

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

BarnyardSimon.StartGame

private BarnyardSimon.StartGame()
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent event)
Initializes and starts a game of Barnyard Simon.

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.

Specified by:
actionPerformed in interface java.awt.event.ActionListener