|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.gatech.cs2335.lemmings.engine.AbstractGameState
edu.gatech.cs2335.lemmings.engine.GamePlayState
The game state, where the actual game is displayed and played.
| Field Summary | |
static long |
UPDATE_DELAY
Delay between the updates. |
static float |
UPDATE_FREQUENCY
How many times per second should we update the lemmings? |
| Constructor Summary | |
GamePlayState(Level l)
Creates a new GamePlayState instance. |
|
GamePlayState(java.lang.String levelName)
Loads the level with the id passed in and uses that to play. |
|
| 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. |
void |
endLevel()
Ends the level and goes on to the next state. |
GamePlayPanel |
getGamePlayPanel()
accessor for gpp |
protected int |
getGameSpeed()
Describe getGameSpeed method here. |
protected int |
getLemmingFlow()
Describe getLemmingFlow method here. |
Level |
getLevel()
Access method for the level property. |
protected LToggleButton |
getPauseButton()
Describe getPauseButton method here. |
protected void |
handleDecreaseButton()
Handles it when the decrease button is pressed. |
protected void |
handleIncreaseButton()
Handles it when the increase button is pressed. |
protected void |
handleNukeButton()
Handles it when the nuke button is pressed. |
protected void |
handlePauseButton()
Handles it when the pause button is pressed. |
protected void |
handleSpeedupButton()
Handles it when the speedup button is pressed. |
boolean |
initialize()
This method will initialize the state that it belongs to. |
protected boolean |
isPauseSelected()
Describe isPauseSelected method here. |
void |
setGameSpeed(long speed)
This method will set the gamespeed; |
protected void |
singleDecreaseButtonHandle()
Describe singleDecreaseButtonHandle method here. |
protected void |
singleIncreaseButtonHandle()
Describe singleIncreaseButtonHandle method here. |
protected void |
singleNukeButtonHandle()
Describe singleNukeButtonHandle method here. |
protected void |
singlePauseButtonHandle()
Describe singlePauseButtonHandle method here. |
protected void |
singleSpeedupButtonHandle()
Describe singleSpeedupButtonHandle method here. |
protected void |
specialDecreaseHandle()
Whatever else needs to be done for decrease. |
protected void |
specialIncreaseHandle()
Whatever else needs to be done for increase. |
protected void |
specialInitialize()
Whatever else needs to be initialized. |
protected void |
specialNukeHandle()
Whatever else needs to be done for nuke. |
protected void |
specialPauseHandle()
Whatever else needs to be done for pause. |
protected void |
specialSpeedupHandle()
Whatever else needs to be done for speedup. |
protected void |
specialUpdate()
Handles the special update. |
protected void |
updateStuff()
Describe updateStuff 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 |
| Field Detail |
public static final float UPDATE_FREQUENCY
public static final long UPDATE_DELAY
| Constructor Detail |
public GamePlayState(Level l)
l - The level that we would like to play on.public GamePlayState(java.lang.String levelName)
levelName - a String value| Method Detail |
public Level getLevel()
public boolean initialize()
initialize in class AbstractGameStateprotected void specialInitialize()
protected void updateStuff()
updateStuff method here.
protected void specialUpdate()
public boolean cleanUp()
cleanUp in class AbstractGameStatepublic void setGameSpeed(long speed)
speed - for gamespeedpublic void endLevel()
protected void handlePauseButton()
protected void singlePauseButtonHandle()
singlePauseButtonHandle method here.
protected LToggleButton getPauseButton()
getPauseButton method here.
LToggleButton valueprotected void specialPauseHandle()
protected void handleSpeedupButton()
protected void singleSpeedupButtonHandle()
singleSpeedupButtonHandle method here.
protected void specialSpeedupHandle()
protected void handleNukeButton()
protected void singleNukeButtonHandle()
singleNukeButtonHandle method here.
protected void specialNukeHandle()
protected void handleIncreaseButton()
protected void singleIncreaseButtonHandle()
singleIncreaseButtonHandle method here.
protected void specialIncreaseHandle()
protected void handleDecreaseButton()
protected void singleDecreaseButtonHandle()
singleDecreaseButtonHandle method here.
protected void specialDecreaseHandle()
public void actionPerformed(java.awt.event.ActionEvent ae)
ae - aeprotected boolean isPauseSelected()
isPauseSelected method here.
boolean valueprotected int getGameSpeed()
getGameSpeed method here.
int valueprotected int getLemmingFlow()
getLemmingFlow method here.
int valuepublic GamePlayPanel getGamePlayPanel()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||