mako5.ctrl
Class GameState

java.lang.Object
  extended by mako5.ctrl.GameState
All Implemented Interfaces:
RealTime, Render

public class GameState
extends Object
implements Render, RealTime

A game state that is capable of rendering and handling input.

Version:
28-Sept 2005
Author:
Paul Jarrett

Constructor Summary
GameState()
          Makes a new blank game state.
 
Method Summary
 void cleanup()
          Cleans up after this state.
 void exit()
          Exits the program.
 GameStateMachine getMachine()
          Returns the calling machine.
 void refresh()
          Refreshes this state from the current stored game data in its calling machine.
 void render()
          Renders this state.
 void setMachine(GameStateMachine m)
          Sets the calling machine
 void store()
          Stores information in the game data map.
 void update(float t)
          Updates this state.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GameState

public GameState()
Makes a new blank game state.

Method Detail

getMachine

public GameStateMachine getMachine()
Returns the calling machine.


setMachine

public void setMachine(GameStateMachine m)
Sets the calling machine


render

public void render()
Renders this state.

Specified by:
render in interface Render

refresh

public void refresh()
Refreshes this state from the current stored game data in its calling machine.


store

public void store()
Stores information in the game data map.


update

public void update(float t)
Updates this state.

Specified by:
update in interface RealTime
Parameters:
t - the elapsed time

cleanup

public void cleanup()
Cleans up after this state.


exit

public void exit()
Exits the program.