vooga.examples.networking.tictactoe.states
Class GameOverState

java.lang.Object
  extended by vooga.engine.state.GameState
      extended by vooga.engine.state.MenuGameState
          extended by vooga.examples.networking.tictactoe.states.GameOverState

public class GameOverState
extends MenuGameState

GameState for when the Game is over.


Field Summary
 
Fields inherited from class vooga.engine.state.GameState
myRenderField, myUpdateField
 
Constructor Summary
GameOverState(PlayField field)
          Constructor for the GameState shown when the game is over.
 
Method Summary
 void initialize()
          Initializes MenuGameState
 void render(java.awt.Graphics2D g)
          Renders all sprites stored in the GameState's renderGroups.
 void update(long t)
          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

GameOverState

public GameOverState(PlayField field)
Constructor for the GameState shown when the game is over.

Parameters:
field - PlayField for GameOverState to render
Method Detail

update

public void update(long t)
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)
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: MenuGameState
Initializes MenuGameState

Specified by:
initialize in class MenuGameState