public class ClientEvent
extends java.util.EventObject
ClientListener
,
Serialized FormModifier and Type | Field and Description |
---|---|
static int |
ClientAdded
Client added event type.
|
static int |
ClientAway
Client away from keyboard event type.
|
static int |
ClientBack
Client back at keyboard event type.
|
static int |
ClientRemoved
Client removed event type.
|
Constructor and Description |
---|
ClientEvent(java.lang.Object source,
java.lang.String id,
int type) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getClientID()
Retrieve the Client ID for whom this event belongs.
|
int |
getEventType()
Retrieves the type of event that occurred.
|
public static final int ClientAdded
public static final int ClientRemoved
public static final int ClientAway
public static final int ClientBack
public ClientEvent(java.lang.Object source, java.lang.String id, int type)
public java.lang.String getClientID()
public int getEventType()
ClientAdded
- a Client joined the game
ClientRemoved
- a Client left the game
ClientAway
- a Client is away from his keyboard
ClientBack
- a Client is back at his keyboard