net.sf.colossus.client
Interface IServerConnection

All Known Implementing Classes:
SocketClientThread

public interface IServerConnection

Generic type of connection to the server. Right now we have only Socket-based connection (SocketClientThread); but the ClientThread should become unaware of the type of connection, only do the messageString-to-method-call and vice-versa translation, and the connection specific parts (read/write to socket or via e.g. a queue) to the ServerConnection class(es).


Method Summary
 IServer getIServer()
           
 java.util.Collection<java.lang.String> getPreliminaryPlayerNames()
           
 java.lang.String getReasonFail()
           
 java.lang.String getVariantNameForInit()
           
 boolean isAlreadyDown()
           
 void requestSyncDelta(int MgrNr)
           
 void setClient(Client client)
           
 void startThread()
           
 void stopSocketClientThread()
           
 void updateThreadName(java.lang.String playerName)
           
 

Method Detail

setClient

void setClient(Client client)

getReasonFail

java.lang.String getReasonFail()

getVariantNameForInit

java.lang.String getVariantNameForInit()

getPreliminaryPlayerNames

java.util.Collection<java.lang.String> getPreliminaryPlayerNames()

startThread

void startThread()

updateThreadName

void updateThreadName(java.lang.String playerName)

getIServer

IServer getIServer()

isAlreadyDown

boolean isAlreadyDown()

stopSocketClientThread

void stopSocketClientThread()

requestSyncDelta

void requestSyncDelta(int MgrNr)