de.farafin.snEADy
Class M_PlayerHandler.PlayerRun

java.lang.Object
  extended by de.farafin.snEADy.M_PlayerHandler.PlayerRun
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
M_PlayerHandler

private class M_PlayerHandler.PlayerRun
extends java.lang.Object
implements java.lang.Runnable

realize the player handling TODO roland: make it more effective: dont need to make a new insrtance every time!!

Author:
lars, roland

Field Summary
 boolean calculationFinished
          is set true after the player has finished his calculation
protected  Player runningPlayer
          the player that should calculate its move
 boolean threwException
          if the player threw an exception, its noticed and the player is deleted
 java.lang.Throwable thrownException
          if the player threw an exception, it is stored here fore logging.
 
Constructor Summary
private M_PlayerHandler.PlayerRun()
           
 
Method Summary
 void renew(Player player)
           
 void run()
           
protected  void runAgain()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

runningPlayer

protected Player runningPlayer
the player that should calculate its move


calculationFinished

public boolean calculationFinished
is set true after the player has finished his calculation


threwException

public boolean threwException
if the player threw an exception, its noticed and the player is deleted


thrownException

public java.lang.Throwable thrownException
if the player threw an exception, it is stored here fore logging.

Constructor Detail

M_PlayerHandler.PlayerRun

private M_PlayerHandler.PlayerRun()
Method Detail

renew

public final void renew(Player player)

runAgain

protected void runAgain()

run

public void run()
Specified by:
run in interface java.lang.Runnable