temporily suspending the execution of loop to allow other method to run
while(still==true)
{
repairs();
}
public void move()
{
still=false;
}
basically when I have killed an enemy and remain still then repairs on the ship will take place. However the user can stop this by moving. He does this by clicking on a button which executes move() hence the loop should terminate. Is that possible?
Last edited by linuxmandrake; 04-16-2006 at 07:18 PM.
|