vooga.games.mariogame.states
Class GameEndState

java.lang.Object
  extended by vooga.engine.state.GameState
      extended by vooga.games.mariogame.states.GameEndState

public class GameEndState
extends GameState


Field Summary
 
Fields inherited from class vooga.engine.state.GameState
myRenderField, myUpdateField
 
Constructor Summary
GameEndState(Game game, PlayField playfield, GamePlayState playState)
          This constructor creates a GameEndState with a background, string of text, and a fontManager used to write the string
 
Method Summary
 void activate()
          Used to update the game state.
 void initialize()
          The initialize method sets up specific variables and parameters necessary to the specific functioning of the GameState.
 void render(java.awt.Graphics2D g)
          Renders all sprites stored in the GameState's renderGroups.
 
Methods inherited from class vooga.engine.state.GameState
addGroup, addPlayField, addRenderPlayField, addRenderState, addState, addUpdatePlayField, addUpdateState, deactivate, equals, getGroup, getRenderField, getUpdateField, isActive, removeEverything, update
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GameEndState

public GameEndState(Game game,
                    PlayField playfield,
                    GamePlayState playState)
This constructor creates a GameEndState with a background, string of text, and a fontManager used to write the string

Parameters:
background - - can be colored or an image
messageString - - text displayed
fontManager - - resource used to write text
Method Detail

activate

public void activate()
Used to update the game state. In this particular instance, the high scores are updated with the game state.

Overrides:
activate in class GameState

render

public void render(java.awt.Graphics2D g)
Description copied from class: GameState
Renders all sprites stored in the GameState's renderGroups.

Overrides:
render in class GameState

initialize

public void initialize()
Description copied from class: GameState
The initialize method sets up specific variables and parameters necessary to the specific functioning of the GameState. This should include all of the necessary initialization for the GameState's specific use, rather than anything broadly required for all GameStates.

Specified by:
initialize in class GameState