|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.planeth.gtroids.agents.AutoFire
AutofFire agent
Fires a IGun automatic in a predefined intervall
It must be controlled by a Thread
TimedObjectThread,
IGun| Constructor Summary | |
AutoFire(IGun gun,
int repeatTime)
Constructor for AutoFire. |
|
| Method Summary | |
void |
doNextStep()
Does the next step |
boolean |
isReadyToDie()
Returns true, if the IThreadControllable is ready to die Ready to die means, the Thread which controls the IThreadControllable, will terminate and the IThreadControllable will be deleted. |
void |
setReadyToDie()
Sets the IThreadControllable ready to die. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AutoFire(IGun gun,
int repeatTime)
gun - the gun to be firedrepeatTime - the fire intervall| Method Detail |
public void doNextStep()
IThreadControllable
doNextStep in interface IThreadControllableIThreadControllable.doNextStep()public boolean isReadyToDie()
IThreadControllable
isReadyToDie in interface IThreadControllableIThreadControllable.isReadyToDie()public void setReadyToDie()
IThreadControllable
setReadyToDie in interface IThreadControllableIThreadControllable.setReadyToDie()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||