vooga.engine.state.other
Class GameOver

java.lang.Object
  extended by vooga.engine.state.GameState
      extended by vooga.engine.state.other.Menu
          extended by vooga.engine.state.other.GameOver

public class GameOver
extends Menu


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

GameOver

public GameOver(Game game,
                int restartKeyEvent)
The constructor must take in the restartKeyEvent, which designates which key keeps track of restart input

Parameters:
game -
restartKeyEvent -

GameOver

public GameOver(Game game,
                SpriteGroup displayedgroup,
                int restartKeyEvent)
Method Detail

actOnKeyPressed

public void actOnKeyPressed(int key)
If the restartKey is pressed, then the start starts and initializes.

Overrides:
actOnKeyPressed in class Menu

setActive

public void setActive(boolean state)
If gameOver is set to active, then the game is stopped and the gameOver state is set to active.

Overrides:
setActive in class Menu