vooga.games.tronupdate.state
Class PlayState

java.lang.Object
  extended by vooga.engine.state.GameState
      extended by vooga.games.tronupdate.state.PlayState

public class PlayState
extends GameState


Field Summary
static int GRID_HEIGHT
           
static int GRID_WIDTH
           
static java.lang.String PLAYER_CLASS
           
static int PLAYER_IMAGE_WIDTH
           
 
Fields inherited from class vooga.engine.state.GameState
myRenderField, myUpdateField
 
Constructor Summary
PlayState(Game g, GameStateManager gm)
           
 
Method Summary
 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.
 void update(long elapsedTime)
          Updates all sprites stored in the GameState' updateGroups.
 
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
 

Field Detail

GRID_WIDTH

public static final int GRID_WIDTH

GRID_HEIGHT

public static final int GRID_HEIGHT

PLAYER_IMAGE_WIDTH

public static final int PLAYER_IMAGE_WIDTH

PLAYER_CLASS

public static final java.lang.String PLAYER_CLASS
See Also:
Constant Field Values
Constructor Detail

PlayState

public PlayState(Game g,
                 GameStateManager gm)
Method Detail

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

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)
Description copied from class: GameState
Renders all sprites stored in the GameState's renderGroups.

Overrides:
render in class GameState