client
Class ServerListener

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--client.ServerListener
All Implemented Interfaces:
java.lang.Runnable

public class ServerListener
extends java.lang.Thread

Listens for incomming server commands and Fish positions and updates client accordingly.

Author:
Garrett Wampole

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ServerListener(java.io.ObjectInputStream oin, java.io.ObjectOutputStream oout, DoubleBufferedContainer dbc)
          Creates a ServerListener with the specified Object input and output streams.
 
Method Summary
 void run()
          Grabs input from the server and tries to determine what instance it is and take appropriate action.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, 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

ServerListener

public ServerListener(java.io.ObjectInputStream oin,
                      java.io.ObjectOutputStream oout,
                      DoubleBufferedContainer dbc)
Creates a ServerListener with the specified Object input and output streams.

Parameters:
oin - Does something
oout - Does something
dbc - A DoubleBuffered container
Method Detail

run

public void run()
Grabs input from the server and tries to determine what instance it is and take appropriate action.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread