|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgizmoball.engine.GizmoBallEngine
public class GizmoBallEngine
The GizmoBallEngine class simulates the laws of physics and models the interactions between gizmos in a gizmoball game. The engine object has an instance of GizmoBoard as a parameter and simulates the objects on the board for a length of time dt every time the tick() method is called.
| Constructor Summary | |
|---|---|
GizmoBallEngine(GizmoBoard gb,
double dt,
double unitSize)
Constructor for GizmoBallEngine Object |
|
| Method Summary | |
|---|---|
GizmoBoard |
getBoard()
|
void |
tick()
Simulates the motion of objects in the GizmoBoard for time dt |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GizmoBallEngine(GizmoBoard gb,
double dt,
double unitSize)
gb - GizmoBoard to opreate ondt - length of time to simulate in each tickunitSize - length used to compute gravity (0 for no gravity)| Method Detail |
|---|
public void tick()
public GizmoBoard getBoard()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||