vooga.games.grandius.states
Class PlayState
java.lang.Object
vooga.engine.state.GameState
vooga.games.grandius.states.PlayState
public class PlayState
- extends GameState
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 |
PlayState
public PlayState(LevelManager levelManager,
Blah game)
getField
public PlayField getField()
setPlayer
public void setPlayer(Player player)
setField
public void setField(PlayField newField)
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
initEvents
public void initEvents()
- Initializes the specific Events handled in the Grandius PlayState.
getEventPool
public EventPool getEventPool()
initControls
public void initControls()
- Initializes the controls relevant to the Player.
getPlayer
public Player getPlayer()
- Returns the PlayState's player; this method is used for collision handling.
getLevelManager
public LevelManager getLevelManager()