|
Flight Club |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--flightclub.client.ThermalTrigger
This class implements a thermal trigger. Every cycle the trigger releases a bubble of warm air that floats up to produce a cloud. Well, that is the impression we hopefully evoke. The trigger model contains lots of dubious assumptions and gross simplifacations. Good ! We add a veneer of noise to the otherwise clockwork like behaviour of the trigger without departing from the deterministic model. TODO: destroyMe
| Constructor Summary | |
ThermalTrigger(ModelViewer modelViewer,
int x,
int y,
int cloudSize,
float t0)
Creates a trigger at (x, y). |
|
| Method Summary | |
static float |
getCycle(int size)
Returns the cycle length for a given cloud size. |
float[] |
getEye()
|
float[] |
getFocus()
|
void |
tick(float t,
float dt)
Make a cloud every cycle period of time. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ThermalTrigger(ModelViewer modelViewer,
int x,
int y,
int cloudSize,
float t0)
| Method Detail |
public void tick(float t,
float dt)
cycle period of time.
tick in interface ClockObserverpublic static float getCycle(int size)
public float[] getFocus()
getFocus in interface CameraSubjectpublic float[] getEye()
getEye in interface CameraSubject
|
Dan Burton <danb@dircon.co.uk> | latest update: 20 Sep 2002; | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||