|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jpemartin.jgt.FireSequence
public class FireSequence
a FireControl that fires according to a set sequence, in a loop.
| Constructor Summary | |
|---|---|
FireSequence()
|
|
| Method Summary | |
|---|---|
void |
addSequence(int coolingTime,
int shotCount)
Add "shotCount" shots to the sequence, with a pause of "coolingTime" between each shot. |
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 FireSequence()
| Method Detail |
|---|
public void addSequence(int coolingTime,
int shotCount)
public boolean shouldFire()
FireControl
shouldFire in interface FireControl
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||