vooga.games.doodlejump.states
Class PlayState

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

public class PlayState
extends GameState

The PlayState class extends GameState and allows for the actual game to be played.


Field Summary
 
Fields inherited from class vooga.engine.state.GameState
myRenderField, myUpdateField
 
Constructor Summary
PlayState(Game game, LevelManager levelManager)
           
 
Method Summary
 void addBall(BallSprite ball)
           
 LevelManager getLevelManager()
           
 void initControls()
           
 void initEvents()
           
 void initialize()
          The initialize method sets up specific variables and parameters necessary to the specific functioning of the GameState.
 void onActivate()
           
 void setDoodle(DoodleSprite doodleSprite)
           
 void setField(PlayField newField)
           
 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, render
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlayState

public PlayState(Game game,
                 LevelManager levelManager)
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

onActivate

public void onActivate()

initControls

public void initControls()

initEvents

public void initEvents()

update

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

Overrides:
update in class GameState

setField

public void setField(PlayField newField)

setDoodle

public void setDoodle(DoodleSprite doodleSprite)

getLevelManager

public LevelManager getLevelManager()

addBall

public void addBall(BallSprite ball)