vooga.games.doodlejump.states
Class GameOverMenuState

java.lang.Object
  extended by vooga.engine.state.GameState
      extended by vooga.engine.state.MenuGameState
          extended by vooga.games.doodlejump.states.GameOverMenuState

public class GameOverMenuState
extends MenuGameState

The GameOverMenuState class extends MenuGameState and describes what happens when the Game is lost. A Restart Button is added to the background that allows for the game to be restarted.


Field Summary
 
Fields inherited from class vooga.engine.state.GameState
myRenderField, myUpdateField
 
Constructor Summary
GameOverMenuState(Game game)
           
 
Method Summary
 void initialize()
          Initializes MenuGameState
 void render(java.awt.Graphics2D g)
          Method called to render fonts to the screen, as well as the background.
 void update(long elapsedTime)
          Updates all sprites stored in the GameState' updateGroups.
 
Methods inherited from class vooga.engine.state.MenuGameState
addButton, getMenuPlayfield
 
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

GameOverMenuState

public GameOverMenuState(Game game)
Method Detail

initialize

public void initialize()
Description copied from class: MenuGameState
Initializes MenuGameState

Specified by:
initialize in class MenuGameState

update

public void update(long elapsedTime)
Description copied from class: GameState
Updates all sprites stored in the GameState' updateGroups.

Overrides:
update in class GameState

render

public void render(java.awt.Graphics2D g)
Method called to render fonts to the screen, as well as the background.

Overrides:
render in class GameState