org.starhope.vergil.net
Interface AppianClient

All Known Implementing Classes:
AppianGWTClient

public interface AppianClient

Author:
brpocock@star-hope.org

Method Summary
 void close()
          Close the server connection and terminate the game
 void connect(String serverAddress, int serverPort)
          Connect to the server based upon a hostname and port
 void send(String string)
          WRITEME: Document this method brpocock@star-hope.org
 void sendResponse(com.google.gwt.json.client.JSONObject result)
          WRITEME
 void setBusyState(boolean b)
          WRITEME: Document this method brpocock@star-hope.org
 void setLastInputTime(long thatTime)
          WRITEME: Document this method brpocock@star-hope.org
 void tick(long currentTime, long deltaTime)
           
 String toString()
          This returns a plethora of debugging-useful information about this particular server thread.
 

Method Detail

close

void close()
Close the server connection and terminate the game


connect

void connect(String serverAddress,
             int serverPort)
             throws UnknownHostException,
                    IOException,
                    ServerDisconnectedException
Connect to the server based upon a hostname and port

Parameters:
serverAddress - hostname or IP address of the server
serverPort - port number on the server
Throws:
UnknownHostException - If the hostname can't be interpreted
IOException - If we're not able to connect to the server
ServerDisconnectedException - If we're disconnected

send

void send(String string)
WRITEME: Document this method brpocock@star-hope.org

Parameters:
string - WRITEME

sendResponse

void sendResponse(com.google.gwt.json.client.JSONObject result)
                  throws ServerDisconnectedException
WRITEME

Parameters:
result - WRITEME
Throws:
ServerDisconnectedException - WRITEME

setBusyState

void setBusyState(boolean b)
WRITEME: Document this method brpocock@star-hope.org

Parameters:
b - WRITEME

setLastInputTime

void setLastInputTime(long thatTime)
WRITEME: Document this method brpocock@star-hope.org

Parameters:
thatTime - WRITEM

tick

void tick(long currentTime,
          long deltaTime)
Parameters:
currentTime - WRITEME
deltaTime - WRITEME

toString

String toString()
This returns a plethora of debugging-useful information about this particular server thread.

Overrides:
toString in class Object
See Also:
Thread.toString()