ggz.client.core
Class RoomEvent

java.lang.Object
  extended by ggz.client.core.RoomEvent

public class RoomEvent
extends java.lang.Object

A GGZRoomEvent is an event associated with the room, that is triggered by a communication from the server. When a room event occurs, the associated event handler will be called, and will be passed the event data (a void*), along with the (optional) user data. All room events apply to the current room unless a room number is given. Room events are almost always triggered by calling ggzcore_server_read_data.

See Also:
ggzcore_room_add_event_hook, ggzcore_server_read_data

Field Summary
static RoomEvent GGZ_CHAT_EVENT
          Received a chat message of any kind.
static RoomEvent GGZ_PLAYER_COUNT
          The number of players in a room has arrived.
static RoomEvent GGZ_PLAYER_LAG
          A player's lag (measure of connection speed) has been updated
static RoomEvent GGZ_PLAYER_LIST
          The list of players in a room has arrived.
static RoomEvent GGZ_PLAYER_STATS
          A player's stats have been updated.
static RoomEvent GGZ_ROOM_ENTER
          A player has entered the room with you.
static RoomEvent GGZ_ROOM_LEAVE
          A player has left your room.
static RoomEvent GGZ_TABLE_ADD
          A table has been added (created) to the room.
static RoomEvent GGZ_TABLE_DELETE
          A table has been removed (deleted) from the room.
static RoomEvent GGZ_TABLE_JOIN_FAIL
          Joining a table did not succeed.
static RoomEvent GGZ_TABLE_JOINED
          Your table join attempt has succeeded.
static RoomEvent GGZ_TABLE_LAUNCH_FAIL
          The table you tried to launch couldn't be launched
static RoomEvent GGZ_TABLE_LAUNCHED
          The table you tried to launch has launched!
static RoomEvent GGZ_TABLE_LEAVE_FAIL
          Your attempt to leave the table has failed.
static RoomEvent GGZ_TABLE_LEFT
          You have successfully left the table you were at.
static RoomEvent GGZ_TABLE_LIST
          Received the list of active tables.
static RoomEvent GGZ_TABLE_UPDATE
          One of the tables in the current room has changed.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GGZ_PLAYER_LIST

public static final RoomEvent GGZ_PLAYER_LIST
The list of players in a room has arrived.

See Also:
ggzcore_room_list_players

GGZ_TABLE_LIST

public static final RoomEvent GGZ_TABLE_LIST
Received the list of active tables.

See Also:
ggzcore_room_list_tables

GGZ_CHAT_EVENT

public static final RoomEvent GGZ_CHAT_EVENT
Received a chat message of any kind. This can happen at any time when you're in a room.

See Also:
GGZChatEventData

GGZ_ROOM_ENTER

public static final RoomEvent GGZ_ROOM_ENTER
A player has entered the room with you.


GGZ_ROOM_LEAVE

public static final RoomEvent GGZ_ROOM_LEAVE
A player has left your room.


GGZ_TABLE_ADD

public static final RoomEvent GGZ_TABLE_ADD
A table has been added (created) to the room.


GGZ_TABLE_DELETE

public static final RoomEvent GGZ_TABLE_DELETE
A table has been removed (deleted) from the room.


GGZ_TABLE_UPDATE

public static final RoomEvent GGZ_TABLE_UPDATE
One of the tables in the current room has changed.


GGZ_TABLE_LAUNCHED

public static final RoomEvent GGZ_TABLE_LAUNCHED
The table you tried to launch has launched!

See Also:
ggzcore_room_launch_table

GGZ_TABLE_LAUNCH_FAIL

public static final RoomEvent GGZ_TABLE_LAUNCH_FAIL
The table you tried to launch couldn't be launched

See Also:
GGZ_TABLE_LAUNCHED

GGZ_TABLE_JOINED

public static final RoomEvent GGZ_TABLE_JOINED
Your table join attempt has succeeded.

See Also:
ggzcore_room_join_table

GGZ_TABLE_JOIN_FAIL

public static final RoomEvent GGZ_TABLE_JOIN_FAIL
Joining a table did not succeed.

See Also:
GGZ_TABLE_JOINED

GGZ_TABLE_LEFT

public static final RoomEvent GGZ_TABLE_LEFT
You have successfully left the table you were at.

See Also:
ggzcore_room_leave_table, GGZTableLeaveEventData

GGZ_TABLE_LEAVE_FAIL

public static final RoomEvent GGZ_TABLE_LEAVE_FAIL
Your attempt to leave the table has failed.

See Also:
GGZ_TABLE_LEFT

GGZ_PLAYER_LAG

public static final RoomEvent GGZ_PLAYER_LAG
A player's lag (measure of connection speed) has been updated

See Also:
ggzcore_player_get_lag

GGZ_PLAYER_STATS

public static final RoomEvent GGZ_PLAYER_STATS
A player's stats have been updated.

See Also:
GGZ_PLAYER_LIST, ggzcore_player_get_record, ggzcore_player_get_rating, ggzcore_player_get_ranking, ggzcore_player_get_highscore

GGZ_PLAYER_COUNT

public static final RoomEvent GGZ_PLAYER_COUNT
The number of players in a room has arrived.