|
Flight Club |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--flightclub.client.Particle
|
+--flightclub.client.MovingBody
|
+--flightclub.client.Glider
This class implements a glider. The class is abstract because any actual glider must have a controller. The possible controllers are AI, Network and User.
| Field Summary | |
protected ModelViewer |
modelViewer
|
| Constructor Summary | |
Glider(ModelViewer modelViewer,
GliderType gliderType)
Creates a glider using the spec given in the GliderType object. |
|
| Method Summary | |
protected void |
createTail()
|
void |
destroyMe()
|
float[] |
getEye()
|
float[] |
getFocus()
|
void |
goFaster()
|
void |
goSlower()
|
void |
setGround(float g)
|
void |
setTurn(float dir)
Makes me turn to left (-ve) or right (+ve). |
void |
takeOff(float[] p,
float[] v)
Takes off starting at point p and heading in the direction given by the v[0] and v[1]. |
void |
tick(float t,
float dt)
Updates the particle's position, velocity and tail. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected ModelViewer modelViewer
| Constructor Detail |
public Glider(ModelViewer modelViewer,
GliderType gliderType)
| Method Detail |
public void goFaster()
public void goSlower()
public void takeOff(float[] p,
float[] v)
public void tick(float t,
float dt)
flightclub.client.Particle
tick in interface ClockObservertick in class flightclub.client.MovingBodypublic final void setGround(float g)
public void destroyMe()
destroyMe in class flightclub.client.Particleprotected void createTail()
public void setTurn(float dir)
The argument
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 | |||||||||