vooga.examples.networking.zombies.gamestates
Class PlayState

java.lang.Object
  extended by vooga.engine.state.GameState
      extended by vooga.examples.networking.zombies.gamestates.PlayState
All Implemented Interfaces:
Constants

public class PlayState
extends GameState
implements Constants


Field Summary
 
Fields inherited from class vooga.engine.state.GameState
myRenderField, myUpdateField
 
Fields inherited from interface vooga.examples.networking.zombies.Constants
ATTACKDOWN, ATTACKLEFT, ATTACKRIGHT, ATTACKUP, DEATH, DEFAULT_RESOURCE_DIRECTORY, GAME_HEIGHT, GAME_WIDTH, MAIN_CLASS, PLAYER_CLASS, PLAYER_DOWN, PLAYER_LEFT, PLAYER_RIGHT, PLAYER_UP, RESOURCE_FILENAME, STATES_XML_PATH, XML_PATH, ZOMBIE_DOWN, ZOMBIE_LEFT, ZOMBIE_RIGHT, ZOMBIE_UP
 
Constructor Summary
PlayState(Blah game)
           
 
Method Summary
 int getLevel()
          This method returns the current level in play.
 OverlayStat getLevelStatOverlay()
          get the OverlayStat object for the level stat
 KeyboardControl getPlayGameControl()
          This method gets the current control for the game.
 Stat<java.lang.Integer> getStatLevel()
          Get the int level stat
 void initialize()
          setup
 void render(java.awt.Graphics2D g)
          render the graphics component in the game
 void setLevel(int newlevel)
           
 void setListeners()
          set up listeners for keyboard controls
 void setNewDelay()
          This method sets the new Delay Time
 void update(long elapsedTime)
          update all components of the ZombieLand game.
 
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
 

Constructor Detail

PlayState

public PlayState(Blah game)
Method Detail

initialize

public void initialize()
setup

Specified by:
initialize in class GameState

getLevel

public int getLevel()
This method returns the current level in play.

Returns:

setLevel

public void setLevel(int newlevel)

getStatLevel

public Stat<java.lang.Integer> getStatLevel()
Get the int level stat

Returns:

getLevelStatOverlay

public OverlayStat getLevelStatOverlay()
get the OverlayStat object for the level stat

Returns:

setNewDelay

public void setNewDelay()
This method sets the new Delay Time


setListeners

public void setListeners()
set up listeners for keyboard controls


getPlayGameControl

public KeyboardControl getPlayGameControl()
This method gets the current control for the game.

Returns:

update

public void update(long elapsedTime)
update all components of the ZombieLand game. This method checks to see if more zombies can be added or if the level has been completed.

Overrides:
update in class GameState

render

public void render(java.awt.Graphics2D g)
render the graphics component in the game

Overrides:
render in class GameState