|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface that defines a game client.
Method Summary | |
void |
connect(ServerEntry server,
java.lang.String name)
Connect the client to a server |
void |
disconnect()
Disconnect from the current server |
ServerEntry |
getServer()
Returns the server represented by a server entry. |
boolean |
isConnected()
Checks if the client is connected to a server. |
void |
quit()
Shuts down the client and everything... |
boolean |
runsServer()
Returns true, is a local server is running on this client machine. |
void |
shutDownServer()
Shuts down a local server on the client machine if one is running. |
void |
startServer(int port)
Starts a local server on the client machine. |
Method Detail |
public void connect(ServerEntry server, java.lang.String name) throws java.lang.Exception
server
- ServerEntry the server entry of the server to connect toname
- String the name of this client
java.lang.Exception
public void disconnect() throws java.lang.Exception
java.lang.Exception
public boolean isConnected()
public ServerEntry getServer()
public void startServer(int port) throws java.lang.Exception
port
- int the port on which the server should listen
java.lang.Exception
public void shutDownServer() throws java.lang.Exception
java.lang.Exception
public boolean runsServer()
public void quit()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |