edu.gatech.cs2335.lemmings.engine
Class MultiLevelResultsState

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

public final class MultiLevelResultsState
extends LevelResultsState

Class MultiLevelResultsState: this is the multilevel result state.

 Revision History:
     v1.0 (Apr. 16, 2004) - Created the MultiLevelResultsState class
 

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

Constructor Summary
MultiLevelResultsState(Level l, int num, int otherNum)
          Creates a new MultiLevelResultsState 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.
 int getNumCarryOver()
          Get the value of numCarryOver.
 int getOtherCarryOver()
          Get the value of otherCarryOver.
 boolean initialize()
          This method will initialize the state that it belongs to.
 void setNumCarryOver(int v)
          Set the value of numCarryOver.
 void setOtherCarryOver(int v)
          Set the value of otherCarryOver.
 
Methods inherited from class edu.gatech.cs2335.lemmings.engine.LevelResultsState
cleanUp, getLevel, setLevel
 
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

MultiLevelResultsState

public MultiLevelResultsState(Level l,
                              int num,
                              int otherNum)
Creates a new MultiLevelResultsState instance.

Parameters:
l - l
num - num
otherNum - on
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.

Overrides:
initialize in class LevelResultsState
Returns:
boolean

getOtherCarryOver

public int getOtherCarryOver()
Get the value of otherCarryOver.

Returns:
value of otherCarryOver.

setOtherCarryOver

public void setOtherCarryOver(int v)
Set the value of otherCarryOver.

Parameters:
v - Value to assign to otherCarryOver.

getNumCarryOver

public int getNumCarryOver()
Get the value of numCarryOver.

Returns:
value of numCarryOver.

setNumCarryOver

public void setNumCarryOver(int v)
Set the value of numCarryOver.

Parameters:
v - Value to assign to numCarryOver.

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 LevelResultsState
Parameters:
ae - ae