protected static class PrivateChatDialog.ChatDialogManager extends java.lang.Object implements RoomListener, ServerListener
| Modifier and Type | Field and Description |
|---|---|
protected Room |
currentRoom |
| Modifier | Constructor and Description |
|---|---|
protected |
ChatDialogManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
chat_event(ChatEventData data)
Received a chat message of any kind.
|
void |
player_count(int count)
The number of players in a room has arrived.
|
void |
player_lag(Player player)
A player's lag (measure of connection speed) has been updated
|
void |
player_list(java.util.List players)
The list of players in a room has arrived.
|
void |
player_stats(Player player)
A player's stats have been updated.
|
void |
room_enter(RoomChangeEventData data)
A player has entered the room with you.
|
void |
room_leave(RoomChangeEventData data)
A player has left your room.
|
void |
server_channel_connected()
Status event: a requested direct game connection has been established.
|
void |
server_channel_fail(java.lang.String error)
Error: Failure during setup of direct connection to game server.
|
void |
server_channel_ready()
Game channel is ready for read/write operations.
|
void |
server_chat_fail(ErrorEventData data)
Error: A chat message could not be sent.
|
void |
server_connect_fail(java.lang.String error)
Error: we have failed to connect to the server.
|
void |
server_connected()
We have just made a connection to the server.
|
void |
server_enter_fail(ErrorEventData data)
Error: we have tried to enter a room and failed.
|
void |
server_enter_ok()
We have successfully entered a room.
|
void |
server_list_rooms()
The room list arrived.
|
void |
server_list_types()
The list of game types is available.
|
void |
server_logged_out()
Logged out of the server.
|
void |
server_login_fail(ErrorEventData data)
Error: login failure.
|
void |
server_login_ok()
We have successfully logged in.
|
void |
server_motd_loaded(MotdEventData data)
The MOTD has been read from the server and can be displayed.
|
void |
server_negotiate_fail(java.lang.String error)
Error: negotiation failure.
|
void |
server_negotiated()
We have negotiated a connection to the server.
|
void |
server_net_error(java.lang.String error)
Error: a network (transmission) error occurred.
|
void |
server_players_changed()
The number of players on the server has changed.
|
void |
server_protocol_error(java.lang.String error)
Error: a communication protocol error occured.
|
void |
server_rooms_changed()
A room has either been added, deleted or set to "closed".
|
void |
server_state_changed()
The internal state of ggzcore has changed.
|
void |
table_add(Table table)
A table has been created.
|
void |
table_delete(Table table)
A table has been removed from the room.
|
void |
table_join_fail(java.lang.String error)
Joining a table did not succeed.
|
void |
table_joined(int table_index)
Your table join attempt has succeeded.
|
void |
table_launch_fail(ErrorEventData data)
The table you tried to launch couldn't be launched
|
void |
table_launched()
The table you tried to launch has launched!
|
void |
table_leave_fail(java.lang.String error)
Your attempt to leave the table has failed.
|
void |
table_left(TableLeaveEventData data)
You have successfully left the table you were at.
|
void |
table_list()
Received the list of active tables.
|
void |
table_update(Table table)
One of the tables in the current room has changed.
|
protected Room currentRoom
public void server_channel_connected()
ServerListenerserver_channel_connected in interface ServerListenerggzcore_server_get_channel,
ggzcore_server_read_datapublic void server_channel_fail(java.lang.String error)
ServerListenerserver_channel_fail in interface ServerListenerggzcore_server_read_datapublic void server_channel_ready()
ServerListenerserver_channel_ready in interface ServerListenerggzcore_server_read_datapublic void server_chat_fail(ErrorEventData data)
ServerListenerserver_chat_fail in interface ServerListenerdata - A pointer to a GGZErrorEventData.GGZErrorEventData,
ggzcore_server_read_datapublic void server_connect_fail(java.lang.String error)
ServerListenerserver_connect_fail in interface ServerListenerggzcore_server_connectpublic void server_connected()
ServerListenerserver_connected in interface ServerListenerggzcore_server_connectpublic void server_enter_fail(ErrorEventData data)
ServerListenerserver_enter_fail in interface ServerListenerdata - A pointer to a GGZErrorEventData.GGZErrorEventData,
ggzcore_server_join_room,
ggzcore_server_read_datapublic void server_enter_ok()
ServerListenerserver_enter_ok in interface ServerListenerggzcore_server_join_room,
ggzcore_server_read_datapublic void server_list_rooms()
ServerListenerserver_list_rooms in interface ServerListenerggzcore_server_read_datapublic void server_rooms_changed()
ServerListenerserver_rooms_changed in interface ServerListenerpublic void server_list_types()
ServerListenerserver_list_types in interface ServerListenerggzcore_server_read_datapublic void server_logged_out()
ServerListenerserver_logged_out in interface ServerListenerggzcore_server_read_datapublic void server_login_fail(ErrorEventData data)
ServerListenerserver_login_fail in interface ServerListenerdata - A pointer to a GGZErrorEventData.GGZErrorEventData,
ggzcore_server_read_datapublic void server_login_ok()
ServerListenerserver_login_ok in interface ServerListenerggzcore_server_login,
ggzcore_server_read_datapublic void server_motd_loaded(MotdEventData data)
ServerListenerserver_motd_loaded in interface ServerListenerdata - Pointer to a GGZMotdEventData including the full MOTD text.ggzcore_server_motd,
ggzcore_server_read_data!public void server_negotiate_fail(java.lang.String error)
ServerListenerserver_negotiate_fail in interface ServerListenerggzcore_server_read_datapublic void server_negotiated()
ServerListenerserver_negotiated in interface ServerListenerggzcore_server_read_datapublic void server_net_error(java.lang.String error)
ServerListenerserver_net_error in interface ServerListenerggzcore_server_read_datapublic void server_players_changed()
ServerListenerserver_players_changed in interface ServerListenerggzcore_server_get_num_players,
ggzcore_server_read_datapublic void server_protocol_error(java.lang.String error)
ServerListenerserver_protocol_error in interface ServerListenerggzcore_server_read_datapublic void server_state_changed()
ServerListenerserver_state_changed in interface ServerListenerGGZStateID,
ggzcore_server_get_statepublic void chat_event(ChatEventData data)
RoomListenerchat_event in interface RoomListenerdata - The GGZChatEventData associated with the chat.GGZChatEventDatapublic void player_count(int count)
RoomListenerplayer_count in interface RoomListenercount - The number of players in the room.public void player_lag(Player player)
RoomListenerplayer_lag in interface RoomListenerplayer - The player whose lag has changed.ggzcore_player_get_lagpublic void player_list(java.util.List players)
RoomListenerplayer_list in interface RoomListenerplayers - The list of players.ggzcore_room_list_playerspublic void player_stats(Player player)
RoomListenerplayer_stats in interface RoomListenerplayer - The player whose stats have changed.void PLAYER_LIST,
ggzcore_player_get_record,
ggzcore_player_get_rating,
ggzcore_player_get_ranking,
ggzcore_player_get_highscorepublic void room_enter(RoomChangeEventData data)
RoomListenerroom_enter in interface RoomListenerdata - A GGZRoomChangeEventData structure.public void room_leave(RoomChangeEventData data)
RoomListenerroom_leave in interface RoomListenerdata - A GGZRoomChangeEventData structure.public void table_add(Table table)
RoomListenertable_add in interface RoomListenerpublic void table_delete(Table table)
RoomListenertable_delete in interface RoomListenerpublic void table_join_fail(java.lang.String error)
RoomListenertable_join_fail in interface RoomListenervoid TABLE_JOINEDpublic void table_joined(int table_index)
RoomListenertable_joined in interface RoomListenerggzcore_room_join_tablepublic void table_launch_fail(ErrorEventData data)
RoomListenertable_launch_fail in interface RoomListenerdata - A pointer to a GGZErrorEventDatavoid TABLE_LAUNCHEDpublic void table_launched()
RoomListenertable_launched in interface RoomListenerggzcore_room_launch_tablepublic void table_leave_fail(java.lang.String error)
RoomListenertable_leave_fail in interface RoomListenervoid TABLE_LEFTpublic void table_left(TableLeaveEventData data)
RoomListenertable_left in interface RoomListenerdata - The GGZTableLeaveEventData associated with the leave.ggzcore_room_leave_table,
GGZTableLeaveEventDatapublic void table_list()
RoomListenertable_list in interface RoomListenerggzcore_room_list_tablespublic void table_update(Table table)
RoomListenertable_update in interface RoomListener