ggz.client.core
Class Room

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

public class Room
extends java.lang.Object


Nested Class Summary
protected  class Room.HookList
           
 
Field Summary
static java.util.Comparator SORT_BY_NAME
           
 
Method Summary
 void add_event_hook(RoomListener l)
          This is different to the C code since Java has better support for event listeners.
 void admin(AdminType type, java.lang.String player, java.lang.String reason)
           
 void chat(ChatType type, java.lang.String player, java.lang.String msg)
           
 boolean equals(java.lang.Object o)
           
 java.lang.String get_desc()
           
 GameType get_gametype()
           
 int get_id()
           
 java.lang.String get_name()
           
 Player get_nth_player(int num)
           
 Table get_nth_table(int num)
           
 int get_num_players()
           
 int get_num_tables()
           
 Player get_player_by_name(java.lang.String player_name)
           
 Player[] get_players()
           
 Server get_server()
           
 Table get_table_by_id(int table_id)
           
 int hashCode()
          This is here only because the Java API says we should implement hashCode() if we implement equals().
 boolean is_closed()
           
 void join_table(int table_id, boolean spectator)
           
 void join_table(int table_id, int seat_num)
           
 void join_table(int table_id, int seat_num, boolean spectator)
           
 void launch_table(Table table)
           
 void leave_table(boolean force)
           
 void list_players()
           
 void list_tables()
           
 void remove_event_hook(RoomListener l)
          This is different to the C code since Java has better support for event listeners.
 void set_players(int players)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SORT_BY_NAME

public static final java.util.Comparator SORT_BY_NAME
Method Detail

get_player_by_name

public Player get_player_by_name(java.lang.String player_name)

get_server

public Server get_server()

get_id

public int get_id()

get_name

public java.lang.String get_name()

get_desc

public java.lang.String get_desc()

get_gametype

public GameType get_gametype()

get_num_players

public int get_num_players()

get_num_tables

public int get_num_tables()

get_nth_player

public Player get_nth_player(int num)

get_players

public Player[] get_players()

get_nth_table

public Table get_nth_table(int num)

get_table_by_id

public Table get_table_by_id(int table_id)

is_closed

public boolean is_closed()

list_players

public void list_players()
                  throws java.io.IOException
Throws:
java.io.IOException

list_tables

public void list_tables()
                 throws java.io.IOException
Throws:
java.io.IOException

chat

public void chat(ChatType type,
                 java.lang.String player,
                 java.lang.String msg)
          throws java.io.IOException
Throws:
java.io.IOException

admin

public void admin(AdminType type,
                  java.lang.String player,
                  java.lang.String reason)
           throws java.io.IOException
Throws:
java.io.IOException

launch_table

public void launch_table(Table table)
                  throws java.io.IOException
Throws:
java.io.IOException

join_table

public void join_table(int table_id,
                       int seat_num)
                throws java.io.IOException
Throws:
java.io.IOException

join_table

public void join_table(int table_id,
                       boolean spectator)
                throws java.io.IOException
Throws:
java.io.IOException

join_table

public void join_table(int table_id,
                       int seat_num,
                       boolean spectator)
                throws java.io.IOException
Throws:
java.io.IOException

leave_table

public void leave_table(boolean force)
                 throws java.io.IOException
Throws:
java.io.IOException

set_players

public void set_players(int players)

add_event_hook

public void add_event_hook(RoomListener l)
This is different to the C code since Java has better support for event listeners.

Parameters:
l -

remove_event_hook

public void remove_event_hook(RoomListener l)
This is different to the C code since Java has better support for event listeners.

Parameters:
l -

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
This is here only because the Java API says we should implement hashCode() if we implement equals().

Overrides:
hashCode in class java.lang.Object