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.
-
FlipperCommands(Stub)
- Set the stub for the flipper commands.
-
keyPressed(KeyEvent)
- Pressed a flipper.
-
keyReleased(KeyEvent)
- Relased a flipper.
-
keyTyped(KeyEvent)
- Generic Keyboard Events not used.
-
left()
- Is the left flipper pressed.
-
right()
- Is the right flipper pressed.
FlipperCommands
public FlipperCommands(Stub stub)
- Set the stub for the flipper commands.
- Parameters:
- stub - the stub for the flippers.
keyPressed
public void keyPressed(KeyEvent key)
- Pressed a flipper.
keyReleased
public void keyReleased(KeyEvent key)
- Relased a flipper.
keyTyped
public void keyTyped(KeyEvent key)
- Generic Keyboard Events not used.
left
public boolean left()
- Is the left flipper pressed.
right
public boolean right()
- Is the right flipper pressed.
All Packages Class Hierarchy This Package Previous Next Index