org.deken.game.state
Class NullState

java.lang.Object
  extended by org.deken.game.state.GameState
      extended by org.deken.game.state.NullState
All Implemented Interfaces:
Updateable

public class NullState
extends GameState

Title: NullState

Description:

Copyright: Copyright (c) Apr 2, 2015

Version:
1.0
Author:
Gary Deken

Field Summary
 
Fields inherited from class org.deken.game.state.GameState
gameCanvas
 
Constructor Summary
NullState()
           
 
Method Summary
 void activateState()
          Activate this state, to setup any needed features for this state.
 void deactivateState()
          This is called on when the changeState is called.
 java.lang.String getName()
           
 void update(long elapseTime)
          This is called in the GameTimer's update phase.
 
Methods inherited from class org.deken.game.state.GameState
changeState, setGameCanvas
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullState

public NullState()
Method Detail

activateState

public void activateState()
Description copied from class: GameState
Activate this state, to setup any needed features for this state. This makes the GameState active. This is called from the GameCanvas' setGameState().

Specified by:
activateState in class GameState

deactivateState

public void deactivateState()
Description copied from class: GameState
This is called on when the changeState is called. It is for any clean up of this state, including reseting this state to be activated later.

Specified by:
deactivateState in class GameState

getName

public java.lang.String getName()
Returns:

update

public void update(long elapseTime)
Description copied from class: GameState
This is called in the GameTimer's update phase. It is used to check the come user defined conditions and determine if the state should change.

Specified by:
update in interface Updateable
Specified by:
update in class GameState
Parameters:
elapseTime - long