vooga.examples.networking
Class TicTacToeConnection

java.lang.Object
  extended by java.lang.Thread
      extended by vooga.engine.networking.GameSocket
          extended by vooga.examples.networking.TicTacToeConnection
All Implemented Interfaces:
java.lang.Runnable

public class TicTacToeConnection
extends GameSocket


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 vooga.engine.networking.GameSocket
outStream
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
TicTacToeConnection()
           
 
Method Summary
 int getTheirMove()
           
 void sendGAMEOVER()
           
 void sendIQUIT()
           
 void sendMove(int col)
           
 
Methods inherited from class vooga.engine.networking.GameSocket
closeConnections, finalize, isConnected, receive, run, send
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, 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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TicTacToeConnection

public TicTacToeConnection()
                    throws java.net.UnknownHostException,
                           java.io.IOException
Throws:
java.net.UnknownHostException
java.io.IOException
Method Detail

getTheirMove

public int getTheirMove()

sendMove

public void sendMove(int col)

sendIQUIT

public void sendIQUIT()

sendGAMEOVER

public void sendGAMEOVER()