Class GameRunner

  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
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


public GameRunner()
Method Detail


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.

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