hmi.elckerlyc.anticipator
Class SpaceBarAnticipator
java.lang.Object
hmi.elckerlyc.anticipator.Anticipator
hmi.elckerlyc.anticipator.SpaceBarAnticipator
- All Implemented Interfaces:
- KeyInfo, KeyListener, EventListener
public class SpaceBarAnticipator
- extends Anticipator
- implements KeyListener, KeyInfo
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
release
private TimePeg release
press
private TimePeg press
physicsClock
private SystemClock physicsClock
pressed
private boolean pressed
observable
private SpaceBarAnticipator.SBAObservable observable
SpaceBarAnticipator
public SpaceBarAnticipator()
addObserver
public void addObserver(Observer o)
setPhysicsClock
public void setPhysicsClock(SystemClock phClock)
keyPressed
public void keyPressed(KeyEvent e)
- Specified by:
keyPressed in interface KeyListener
keyReleased
public void keyReleased(KeyEvent e)
- Specified by:
keyReleased in interface KeyListener
keyTyped
public void keyTyped(KeyEvent arg0)
- Specified by:
keyTyped in interface KeyListener
isPressed
public boolean isPressed()
- Specified by:
isPressed in interface KeyInfo