gizmoball.gameworld
Class GameRunner

java.lang.Object
  extended by gizmoball.gameworld.GameRunner

public class GameRunner
extends java.lang.Object

The main class on the game side. It's job is to calculate everything for one tick at a time, including collisions, triggers, and moving the objects.


Constructor Summary
GameRunner()
           
 
Method Summary
 void step(WorldState state, double dt)
          Steps the world forward by an amount dt.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GameRunner

public GameRunner()
Method Detail

step

public void step(WorldState state,
                 double dt)
Steps the world forward by an amount dt. Processes triggers, collisions, and moving things forward. The WorldState passed in should NOT be modified as this method is running -- it could have incorrect results.

Effects:
changes everything in state, to move it forward by dt.