|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvooga.engine.state.GameState
vooga.engine.state.other.Menu
vooga.engine.state.other.GameOver
public class GameOver
Field Summary |
---|
Fields inherited from class vooga.engine.state.GameState |
---|
myRenderField, myUpdateField |
Constructor Summary | |
---|---|
GameOver(Game game,
int restartKeyEvent)
The constructor must take in the restartKeyEvent, which designates which key keeps track of restart input |
|
GameOver(Game game,
SpriteGroup displayedgroup,
int restartKeyEvent)
|
Method Summary | |
---|---|
void |
actOnKeyPressed(int key)
If the restartKey is pressed, then the start starts and initializes. |
void |
setActive(boolean state)
If gameOver is set to active, then the game is stopped and the gameOver state is set to active. |
Methods inherited from class vooga.engine.state.other.Menu |
---|
actOnMouseClicked, getCurrentGame, initialize, render, switchToMenu, tagKeyToMenu, tagMouseToMenu, update |
Methods inherited from class vooga.engine.state.GameState |
---|
activate, addGroup, addPlayField, addRenderPlayField, addRenderState, addState, addUpdatePlayField, addUpdateState, deactivate, equals, getGroup, getRenderField, getUpdateField, isActive, removeEverything |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GameOver(Game game, int restartKeyEvent)
game
- restartKeyEvent
- public GameOver(Game game, SpriteGroup displayedgroup, int restartKeyEvent)
Method Detail |
---|
public void actOnKeyPressed(int key)
actOnKeyPressed
in class Menu
public void setActive(boolean state)
setActive
in class Menu
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |