com.jpemartin.jgt
Class FireRepeat

java.lang.Object
  extended by com.jpemartin.jgt.FireRepeat
All Implemented Interfaces:
FireControl

public class FireRepeat
extends java.lang.Object
implements FireControl

fire at regular intervals when the space key is held down. Pressing it repeatedly doesn't give you anything more.

Author:
jpmartin

Constructor Summary
FireRepeat(KeyboardStatus kb)
           
 
Method Summary
 void setFireCost(int c)
          the smaller this value, the faster we fire
 boolean shouldFire()
          call this every turn, it will return true if you should fire
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FireRepeat

public FireRepeat(KeyboardStatus kb)
Method Detail

setFireCost

public void setFireCost(int c)
the smaller this value, the faster we fire


shouldFire

public boolean shouldFire()
Description copied from interface: FireControl
call this every turn, it will return true if you should fire

Specified by:
shouldFire in interface FireControl