edu.gatech.cs2335.lemmings.engine
Class AttractState

java.lang.Object
  extended byedu.gatech.cs2335.lemmings.engine.AbstractGameState
      extended byedu.gatech.cs2335.lemmings.engine.GamePlayState
          extended byedu.gatech.cs2335.lemmings.engine.AttractState
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class AttractState
extends GamePlayState

Class GamePlayState: where the actual game is displayed and played


Field Summary
 
Fields inherited from class edu.gatech.cs2335.lemmings.engine.GamePlayState
UPDATE_DELAY, UPDATE_FREQUENCY
 
Constructor Summary
AttractState(Level l)
          Constructor
AttractState(java.lang.String l)
          Constructor
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ae)
          This function essentially processes the action event that may have been thrown by the UI.
protected  void specialInitialize()
          Whatever else needs to be initialized.
protected  void specialUpdate()
          Handles the special update.
 
Methods inherited from class edu.gatech.cs2335.lemmings.engine.GamePlayState
cleanUp, endLevel, getGamePlayPanel, getGameSpeed, getLemmingFlow, getLevel, getPauseButton, handleDecreaseButton, handleIncreaseButton, handleNukeButton, handlePauseButton, handleSpeedupButton, initialize, isPauseSelected, setGameSpeed, singleDecreaseButtonHandle, singleIncreaseButtonHandle, singleNukeButtonHandle, singlePauseButtonHandle, singleSpeedupButtonHandle, specialDecreaseHandle, specialIncreaseHandle, specialNukeHandle, specialPauseHandle, specialSpeedupHandle, updateStuff
 
Methods inherited from class edu.gatech.cs2335.lemmings.engine.AbstractGameState
getUI, setUI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttractState

public AttractState(Level l)
Constructor

Parameters:
l - , Level

AttractState

public AttractState(java.lang.String l)
Constructor

Parameters:
l - , string of level name
Method Detail

specialUpdate

protected void specialUpdate()
Handles the special update.

Overrides:
specialUpdate in class GamePlayState

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent ae)
This function essentially processes the action event that may have been thrown by the UI.

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Overrides:
actionPerformed in class GamePlayState
Parameters:
ae - ae

specialInitialize

protected void specialInitialize()
Whatever else needs to be initialized.

Overrides:
specialInitialize in class GamePlayState