hmi.elckerlyc.anticipator
Class SpaceBarAnticipator

java.lang.Object
  extended by hmi.elckerlyc.anticipator.Anticipator
      extended by hmi.elckerlyc.anticipator.SpaceBarAnticipator
All Implemented Interfaces:
KeyInfo, KeyListener, EventListener

public class SpaceBarAnticipator
extends Anticipator
implements KeyListener, KeyInfo


Nested Class Summary
private static class SpaceBarAnticipator.SBAObservable
           
 
Field Summary
private  SpaceBarAnticipator.SBAObservable observable
           
private  SystemClock physicsClock
           
private  TimePeg press
           
private  boolean pressed
           
private  TimePeg release
           
 
Constructor Summary
SpaceBarAnticipator()
           
 
Method Summary
 void addObserver(Observer o)
           
 boolean isPressed()
           
 void keyPressed(KeyEvent e)
           
 void keyReleased(KeyEvent e)
           
 void keyTyped(KeyEvent arg0)
           
 void setPhysicsClock(SystemClock phClock)
           
 
Methods inherited from class hmi.elckerlyc.anticipator.Anticipator
addSynchronisationPoint, getSynchronisationPoint, getTimePegs, setSynchronisationPoint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

release

private TimePeg release

press

private TimePeg press

physicsClock

private SystemClock physicsClock

pressed

private boolean pressed

observable

private SpaceBarAnticipator.SBAObservable observable
Constructor Detail

SpaceBarAnticipator

public SpaceBarAnticipator()
Method Detail

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