public class Room
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
protected class |
Room.HookList |
| Modifier and Type | Field and Description |
|---|---|
static java.util.Comparator |
SORT_BY_NAME |
| Modifier and Type | Method and Description |
|---|---|
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) |
public Player get_player_by_name(java.lang.String player_name)
public Server get_server()
public int get_id()
public java.lang.String get_name()
public java.lang.String get_desc()
public GameType get_gametype()
public int get_num_players()
public int get_num_tables()
public Player get_nth_player(int num)
public Player[] get_players()
public Table get_nth_table(int num)
public Table get_table_by_id(int table_id)
public boolean is_closed()
public void list_players()
throws java.io.IOException
java.io.IOExceptionpublic void list_tables()
throws java.io.IOException
java.io.IOExceptionpublic void chat(ChatType type, java.lang.String player, java.lang.String msg) throws java.io.IOException
java.io.IOExceptionpublic void admin(AdminType type, java.lang.String player, java.lang.String reason) throws java.io.IOException
java.io.IOExceptionpublic void launch_table(Table table) throws java.io.IOException
java.io.IOExceptionpublic void join_table(int table_id,
int seat_num)
throws java.io.IOException
java.io.IOExceptionpublic void join_table(int table_id,
boolean spectator)
throws java.io.IOException
java.io.IOExceptionpublic void join_table(int table_id,
int seat_num,
boolean spectator)
throws java.io.IOException
java.io.IOExceptionpublic void leave_table(boolean force)
throws java.io.IOException
java.io.IOExceptionpublic void set_players(int players)
public void add_event_hook(RoomListener l)
l - public void remove_event_hook(RoomListener l)
l - public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object