public class Client
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
boolean |
connect()
Attempts to connect the client to the server.
|
void |
disconnect()
Disconnects the client from the server.
|
boolean |
isConnected()
Returns true if the client is currently connected to the server.
|
void |
update()
This is a blocking command that tells the server to process commands sent from the client and proceed to the next frame in the game.
|
public boolean isConnected()
public boolean connect()
public void disconnect()
public void update()