ggz.client.core
Interface RoomListener

All Superinterfaces:
java.util.EventListener
All Known Implementing Classes:
PrivateChatDialog.ChatDialogManager, RoomChatPanel, RoomPanel

public interface RoomListener
extends java.util.EventListener


Method Summary
 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 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.
 

Method Detail

player_list

void player_list(java.util.List players)
The list of players in a room has arrived.

Parameters:
players - The list of players.
See Also:
ggzcore_room_list_players

table_list

void table_list()
Received the list of active tables.

Parameters:
data - NULL
See Also:
ggzcore_room_list_tables

chat_event

void chat_event(ChatEventData data)
Received a chat message of any kind. This can happen at any time when you're in a room.

Parameters:
data - The GGZChatEventData associated with the chat.
See Also:
GGZChatEventData

room_enter

void room_enter(RoomChangeEventData data)
A player has entered the room with you.

Parameters:
data - A GGZRoomChangeEventData structure.

room_leave

void room_leave(RoomChangeEventData data)
A player has left your room.

Parameters:
data - A GGZRoomChangeEventData structure.

table_add

void table_add(Table table)
A table has been created.

Parameters:
data - the table that was added

table_delete

void table_delete(Table table)
A table has been removed from the room.

Parameters:
data - the table that was removed

table_update

void table_update(Table table)
One of the tables in the current room has changed.

Parameters:
data - the table that was updated

table_launched

void table_launched()
The table you tried to launch has launched!

Parameters:
data - NULL
See Also:
ggzcore_room_launch_table

table_launch_fail

void table_launch_fail(ErrorEventData data)
The table you tried to launch couldn't be launched

Parameters:
data - A pointer to a GGZErrorEventData
See Also:
void TABLE_LAUNCHED

table_joined

void table_joined(int table_index)
Your table join attempt has succeeded.

Parameters:
data - The table index (int*) of the table we joined.
See Also:
ggzcore_room_join_table

table_join_fail

void table_join_fail(java.lang.String error)
Joining a table did not succeed.

Parameters:
data - A helpful error string.
See Also:
void TABLE_JOINED

table_left

void table_left(TableLeaveEventData data)
You have successfully left the table you were at.

Parameters:
data - The GGZTableLeaveEventData associated with the leave.
See Also:
ggzcore_room_leave_table, GGZTableLeaveEventData

table_leave_fail

void table_leave_fail(java.lang.String error)
Your attempt to leave the table has failed.

Parameters:
data - A helpful error string.
See Also:
void TABLE_LEFT

player_lag

void player_lag(Player player)
A player's lag (measure of connection speed) has been updated

Parameters:
player - The player whose lag has changed.
See Also:
ggzcore_player_get_lag

player_stats

void player_stats(Player player)
A player's stats have been updated.

Parameters:
player - The player whose stats have changed.
See Also:
void PLAYER_LIST, ggzcore_player_get_record, ggzcore_player_get_rating, ggzcore_player_get_ranking, ggzcore_player_get_highscore

player_count

void player_count(int count)
The number of players in a room has arrived.

Parameters:
count - The number of players in the room.