All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class pinball.player.human.FlipperCommands

java.lang.Object
   |
   +----pinball.player.human.FlipperCommands

public class FlipperCommands
extends Object
implements KeyListener
Allows the human to play pinball by pressing keys on the keyboard.


Constructor Index

 o FlipperCommands(Stub)
Set the stub for the flipper commands.

Method Index

 o keyPressed(KeyEvent)
Pressed a flipper.
 o keyReleased(KeyEvent)
Relased a flipper.
 o keyTyped(KeyEvent)
Generic Keyboard Events not used.
 o left()
Is the left flipper pressed.
 o right()
Is the right flipper pressed.

Constructors

 o FlipperCommands
 public FlipperCommands(Stub stub)
Set the stub for the flipper commands.

Parameters:
stub - the stub for the flippers.

Methods

 o keyPressed
 public void keyPressed(KeyEvent key)
Pressed a flipper.

 o keyReleased
 public void keyReleased(KeyEvent key)
Relased a flipper.

 o keyTyped
 public void keyTyped(KeyEvent key)
Generic Keyboard Events not used.

 o left
 public boolean left()
Is the left flipper pressed.

 o right
 public boolean right()
Is the right flipper pressed.


All Packages  Class Hierarchy  This Package  Previous  Next  Index