|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectggz.client.core.ServerEvent
public class ServerEvent
A GGZServerEvent is an event triggered by a communication from the server. Each time an event occurs, the associated event handler will be called, and will be passed the event data (a void*). Most events are generated as a result of ggzcore_server_read_data.
ggzcore_server_add_event_hook| Field Summary | |
|---|---|
static ServerEvent |
GGZ_CHANNEL_CONNECTED
Status event: a requested direct game connection has been established. |
static ServerEvent |
GGZ_CHANNEL_FAIL
Error: Failure during setup of direct connection to game server. |
static ServerEvent |
GGZ_CHANNEL_READY
Game channel is ready for read/write operations. |
static ServerEvent |
GGZ_CHAT_FAIL
Error: A chat message could not be sent. |
static ServerEvent |
GGZ_CONNECT_FAIL
Error: we have failed to connect to the server. |
static ServerEvent |
GGZ_CONNECTED
We have just made a connection to the server. |
static ServerEvent |
GGZ_ENTER_FAIL
Error: we have tried to enter a room and failed. |
static ServerEvent |
GGZ_ENTERED
We have successfully entered a room. |
static ServerEvent |
GGZ_LOGGED_IN
We have successfully logged in. |
static ServerEvent |
GGZ_LOGIN_FAIL
Error: login failure. |
static ServerEvent |
GGZ_LOGOUT
Logged out of the server. |
static ServerEvent |
GGZ_MOTD_LOADED
The MOTD has been read from the server and can be displayed. |
static ServerEvent |
GGZ_NEGOTIATE_FAIL
Error: negotiation failure. |
static ServerEvent |
GGZ_NEGOTIATED
We have negotiated a connection to the server. |
static ServerEvent |
GGZ_NET_ERROR
Error: a network (transmission) error occurred. |
static ServerEvent |
GGZ_NUM_SERVER_EVENTS
Terminator. |
static ServerEvent |
GGZ_PROTOCOL_ERROR
Error: a communication protocol error occured. |
static ServerEvent |
GGZ_ROOM_LIST
The room list arrived. |
static ServerEvent |
GGZ_SERVER_PLAYERS_CHANGED
The number of players on the server has changed. |
static ServerEvent |
GGZ_SERVER_ROOMS_CHANGED
A room was added, deleted or closed. |
static ServerEvent |
GGZ_STATE_CHANGE
The internal state of ggzcore has changed. |
static ServerEvent |
GGZ_TYPE_LIST
The list of game types is available. |
| Method Summary |
|---|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final ServerEvent GGZ_CONNECTED
ggzcore_server_connectpublic static final ServerEvent GGZ_CONNECT_FAIL
ggzcore_server_connectpublic static final ServerEvent GGZ_NEGOTIATED
ggzcore_server_read_datapublic static final ServerEvent GGZ_NEGOTIATE_FAIL
ggzcore_server_read_datapublic static final ServerEvent GGZ_LOGGED_IN
ggzcore_server_login,
ggzcore_server_read_datapublic static final ServerEvent GGZ_LOGIN_FAIL
GGZErrorEventData,
ggzcore_server_read_datapublic static final ServerEvent GGZ_MOTD_LOADED
ggzcore_server_motd,
ggzcore_server_read_data!public static final ServerEvent GGZ_ROOM_LIST
ggzcore_server_read_datapublic static final ServerEvent GGZ_SERVER_ROOMS_CHANGED
public static final ServerEvent GGZ_TYPE_LIST
ggzcore_server_read_datapublic static final ServerEvent GGZ_SERVER_PLAYERS_CHANGED
Server.get_num_players()public static final ServerEvent GGZ_ENTERED
ggzcore_server_join_room,
ggzcore_server_read_datapublic static final ServerEvent GGZ_ENTER_FAIL
GGZErrorEventData,
ggzcore_server_join_room,
ggzcore_server_read_datapublic static final ServerEvent GGZ_LOGOUT
ggzcore_server_read_datapublic static final ServerEvent GGZ_NET_ERROR
ggzcore_server_read_datapublic static final ServerEvent GGZ_PROTOCOL_ERROR
ggzcore_server_read_datapublic static final ServerEvent GGZ_CHAT_FAIL
GGZErrorEventData,
ggzcore_server_read_datapublic static final ServerEvent GGZ_STATE_CHANGE
GGZStateID,
ggzcore_server_get_statepublic static final ServerEvent GGZ_CHANNEL_CONNECTED
ggzcore_server_get_channel,
ggzcore_server_read_datapublic static final ServerEvent GGZ_CHANNEL_READY
ggzcore_server_read_datapublic static final ServerEvent GGZ_CHANNEL_FAIL
ggzcore_server_read_datapublic static final ServerEvent GGZ_NUM_SERVER_EVENTS
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||