client
Class ClientThread

java.lang.Object
  extended by java.lang.Thread
      extended by common.AbstractThread
          extended by client.ClientThread
All Implemented Interfaces:
java.lang.Runnable

public class ClientThread
extends AbstractThread


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class common.AbstractThread
player
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ClientThread(java.net.Socket s)
          Constructs a new instance of ClientThread.
 
Method Summary
 void disconnect()
          Disconnects the appropriate player.
 void passData(NetworkObject n)
          Passes an incoming NetworkObject message from the ClientThread to the Client.
 
Methods inherited from class common.AbstractThread
destroyThread, getID, getPlayerName, isConnected, run, send, setID, setPlayerName
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClientThread

public ClientThread(java.net.Socket s)
Constructs a new instance of ClientThread.

Parameters:
s - The socket the Client is connected through.
Method Detail

disconnect

public void disconnect()
Disconnects the appropriate player.

Specified by:
disconnect in class AbstractThread

passData

public void passData(NetworkObject n)
Passes an incoming NetworkObject message from the ClientThread to the Client.

Specified by:
passData in class AbstractThread
Parameters:
n - NetworkObject that the player received from the server.