vooga.games.tronupdate.state
Class PlayState
java.lang.Object
vooga.engine.state.GameState
vooga.games.tronupdate.state.PlayState
public class PlayState
- extends GameState
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 |
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
PlayState
public PlayState(Game g,
GameStateManager gm)
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