Flight Club


flightclub.client
Class GliderUser

java.lang.Object
  |
  +--flightclub.client.Particle
        |
        +--flightclub.client.MovingBody
              |
              +--flightclub.client.Glider
                    |
                    +--flightclub.client.GliderUser
All Implemented Interfaces:
CameraSubject, ClockObserver, EventInterface

public class GliderUser
extends Glider
implements EventInterface

This class implements a glider that is controlled by *the* user.


Field Summary
static int LEFT
           
static int RIGHT
           
static int STRAIGHT
           
 
Fields inherited from class flightclub.client.Glider
modelViewer
 
Constructor Summary
GliderUser(ModelViewer modelViewer, GliderType gliderType)
           
 
Method Summary
protected  void createTail()
          Override tail's factory method.
 void destroyMe()
           
 void keyPressed(java.awt.event.KeyEvent e)
           
 void keyReleased(java.awt.event.KeyEvent e)
           
 
Methods inherited from class flightclub.client.Glider
getEye, getFocus, goFaster, goSlower, setGround, setTurn, takeOff, tick
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LEFT

public static final int LEFT
See Also:
Constant Field Values

RIGHT

public static final int RIGHT
See Also:
Constant Field Values

STRAIGHT

public static final int STRAIGHT
See Also:
Constant Field Values
Constructor Detail

GliderUser

public GliderUser(ModelViewer modelViewer,
                  GliderType gliderType)
Method Detail

destroyMe

public void destroyMe()
Overrides:
destroyMe in class flightclub.client.MovingBody

createTail

protected void createTail()
Override tail's factory method. Lets have a longer darker tail.

Overrides:
createTail in class flightclub.client.Particle

keyPressed

public void keyPressed(java.awt.event.KeyEvent e)
Specified by:
keyPressed in interface EventInterface

keyReleased

public void keyReleased(java.awt.event.KeyEvent e)
Specified by:
keyReleased in interface EventInterface

Dan Burton <danb@dircon.co.uk> | latest update: 20 Sep 2002;