ggz.client.core
Class Room
java.lang.Object
ggz.client.core.Room
public class Room
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
SORT_BY_NAME
public static final java.util.Comparator SORT_BY_NAME
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