edu.gatech.cs2335.lemmings.engine
Class LevelResultsState

java.lang.Object
  extended byedu.gatech.cs2335.lemmings.engine.AbstractGameState
      extended byedu.gatech.cs2335.lemmings.engine.LevelResultsState
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener
Direct Known Subclasses:
MultiLevelResultsState

public class LevelResultsState
extends AbstractGameState

Class LevelResultsState: Shows the results of a level.

 Revision History:
     v1.0 (Apr. 14, 2004) - Created the LevelResultsState class
 

Version:
Version 1.0, Apr. 14, 2004
Author:
Vladimir Urazov

Constructor Summary
LevelResultsState(Level l)
          Creates a new LevelResultsState instance.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ae)
          This function essentially processes the action event that may have been thrown by the UI.
 boolean cleanUp()
          This method will perform all of the necessary clean up operations once the object is no longer needed.
 Level getLevel()
          Describe getLevel method here.
 boolean initialize()
          This method will initialize the state that it belongs to.
 void setLevel(Level l)
          Describe setLevel method here.
 
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

LevelResultsState

public LevelResultsState(Level l)
Creates a new LevelResultsState instance.

Parameters:
l - len
Method Detail

initialize

public boolean initialize()
This method will initialize the state that it belongs to. It will then return true upon success, and false upon failure.

Specified by:
initialize in class AbstractGameState
Returns:
boolean

cleanUp

public boolean cleanUp()
This method will perform all of the necessary clean up operations once the object is no longer needed.

Specified by:
cleanUp in class AbstractGameState
Returns:
boolean

actionPerformed

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

Parameters:
ae - ae

getLevel

public Level getLevel()
Describe getLevel method here.

Returns:
a Level value

setLevel

public void setLevel(Level l)
Describe setLevel method here.

Parameters:
l - a Level value