public class GraphicalClient
extends java.lang.Object
implements java.lang.Runnable, ihs.apcs.spacebattle.networking.Client
Constructor and Description |
---|
GraphicalClient(java.lang.String[] args) |
Modifier and Type | Method and Description |
---|---|
void |
disconnect() |
boolean |
isDisconnected() |
void |
logMessage(java.lang.String message) |
static void |
main(java.lang.String[] args) |
<T> void |
parseMessage(ihs.apcs.spacebattle.networking.MwnpMessage msg)
Reads a network message and takes appropriate action.
|
void |
run() |
public GraphicalClient(java.lang.String[] args) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public void run()
run
in interface java.lang.Runnable
public <T> void parseMessage(ihs.apcs.spacebattle.networking.MwnpMessage msg) throws java.io.IOException, java.lang.IllegalArgumentException, java.lang.IllegalAccessException
parseMessage
in interface ihs.apcs.spacebattle.networking.Client
msg
- the message received from the networkjava.lang.IllegalAccessException
java.lang.IllegalArgumentException
java.io.IOException
public void disconnect() throws java.io.IOException
disconnect
in interface ihs.apcs.spacebattle.networking.Client
java.io.IOException
public boolean isDisconnected()
isDisconnected
in interface ihs.apcs.spacebattle.networking.Client
public void logMessage(java.lang.String message)
logMessage
in interface ihs.apcs.spacebattle.networking.Client
public static void main(java.lang.String[] args) throws java.lang.InterruptedException, java.lang.reflect.InvocationTargetException, java.io.FileNotFoundException
java.lang.InterruptedException
java.lang.reflect.InvocationTargetException
java.io.FileNotFoundException