vooga.games.towerdefense.states
Class PlayState
java.lang.Object
vooga.engine.state.GameState
vooga.games.towerdefense.states.PlayState
public class PlayState
- extends GameState
The main state of the game in which the user is actively
playing the game. Due to the LevelParser systems currently
not being functional, we used hardcoded level loading rather
than xml based level loading so that we could at least get
something on the screen. As a result, only the one hardcoded
level is currently implemented.
Method Summary |
void |
changeLevel(java.lang.String xmlFilePath,
java.lang.String backgroundImageKey,
java.lang.String pathPointsKey)
|
void |
initialize()
The initialize method sets up specific variables and parameters necessary
to the specific functioning of the 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, update |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PlayState
public PlayState(OverlayTracker tracker)
changeLevel
public void changeLevel(java.lang.String xmlFilePath,
java.lang.String backgroundImageKey,
java.lang.String pathPointsKey)
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