com.planeth.common.timing
Interface IThreadControllable

All Known Implementing Classes:
AutoFire, Bomb, GamePanel, ShipAgent, SoundRepeater, Timer

public interface IThreadControllable

Interface for a Thread controllable Object

Author:
Andreas Grässer, gal@planet-h.com.
created Jun 12, 2005
See Also:
TimedObjectThread

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.
 

Method Detail

doNextStep

public void doNextStep()
Does the next step


isReadyToDie

public 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.

Returns:
Returns true, if the IThreadControllable is ready to die

setReadyToDie

public void setReadyToDie()
Sets the IThreadControllable ready to die.