|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.planeth.gtroids.agents.ShipAgent
Virtual Pilot for a Ship
It must be controlled by a Thread
TimedObjectThread,
Ship| Constructor Summary | |
ShipAgent(Ship ship)
Constructor for ShipAgent. |
|
| 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 ShipAgent(Ship ship)
ship - the Ship to be controlled| Method Detail |
public void doNextStep()
IThreadControllable
doNextStep in interface IThreadControllableIThreadControllable.doNextStep()public void setReadyToDie()
IThreadControllable
setReadyToDie in interface IThreadControllableIThreadControllable.setReadyToDie()public boolean isReadyToDie()
IThreadControllable
isReadyToDie in interface IThreadControllableIThreadControllable.isReadyToDie()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||