public interface NetworkedWorldClient extends NetworkedWorld, ConnectionListener
Modifier and Type | Method and Description |
---|---|
void |
connect(String ip,
int port)
Connect to a server.
|
byte |
getId()
Get the network id.
|
String |
getName()
Get the client name.
|
int |
getPing()
Get the ping from the server (time elapsed between the ping request and response).
|
void |
notifyClientConnected(Byte id,
String name)
Notify when a new client is connected.
|
void |
notifyClientDisconnected(Byte id,
String name)
Notify when a client is disconnected.
|
void |
notifyClientNameChanged(Byte id,
String name)
Notify when a client changed its name.
|
void |
setName(String name)
Set the client new name.
|
addMessage, addMessages, addNetworkable, disconnect, getBandwidth, receiveMessages, removeNetworkable, sendMessages
notifyConnectionEstablished, notifyConnectionTerminated, notifyMessageOfTheDay
void connect(String ip, int port)
ip
- The server ip.port
- The server port.LionEngineException
- If unable to connect.void setName(String name)
name
- The new name.String getName()
int getPing()
byte getId()
void notifyClientConnected(Byte id, String name)
id
- The client id.name
- The client name.void notifyClientDisconnected(Byte id, String name)
id
- The client id.name
- The client name.Copyright © 2016 Byron 3D Games Studio. All rights reserved.