|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jpemartin.jgt.FireRepeat
public class FireRepeat
fire at regular intervals when the space key is held down. Pressing it repeatedly doesn't give you anything more.
| 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 |
|---|
public FireRepeat(KeyboardStatus kb)
| Method Detail |
|---|
public void setFireCost(int c)
public boolean shouldFire()
FireControl
shouldFire in interface FireControl
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||