in, MSG_GAME_CHAT, MSG_GAME_INFO, MSG_GAME_LAUNCH, MSG_GAME_PLAYER, MSG_GAME_SEAT, MSG_GAME_SERVER, MSG_GAME_SERVER_FD, MSG_GAME_SPECTATOR_SEAT, MSG_GAME_STATE, MSG_GAME_STATS, out, REQ_BOOT, REQ_BOT, REQ_CHAT, REQ_INFO, REQ_OPEN, REQ_SIT, REQ_STAND| Constructor and Description |
|---|
ModGGZSocketIO(ModGGZ ggzMod_GGZ,
java.net.Socket fd) |
| Modifier and Type | Method and Description |
|---|---|
void |
disconnect() |
void |
run() |
void |
send_error(java.lang.String error) |
void |
send_launch() |
void |
send_msg_chat(java.lang.String player,
java.lang.String chat_msg) |
void |
send_msg_info(java.util.List infos) |
void |
send_player(java.lang.String name,
boolean is_spectator,
int seat_num) |
void |
send_seat(Seat seat) |
void |
send_server_fd(java.net.Socket server_fd) |
void |
send_server(java.lang.String host,
int port,
java.lang.String handle) |
void |
send_spectator_seat(SpectatorSeat seat) |
void |
send_stats(Stat[] player_stats,
Stat[] spectator_stats) |
readBoolean, readInt, readSeatType, readState, readString, writeBoolean, writeInt, writeSeatType, writeState, writeStringpublic ModGGZSocketIO(ModGGZ ggzMod_GGZ, java.net.Socket fd) throws java.io.IOException
java.io.IOExceptionpublic void run()
run in interface java.lang.Runnablepublic void disconnect()
throws java.io.IOException
disconnect in interface ModGGZIOjava.io.IOExceptionpublic void send_launch()
throws java.io.IOException
send_launch in interface ModGGZIOjava.io.IOExceptionpublic void send_server(java.lang.String host,
int port,
java.lang.String handle)
throws java.io.IOException
send_server in interface ModGGZIOjava.io.IOExceptionpublic void send_server_fd(java.net.Socket server_fd)
send_server_fd in interface ModGGZIOpublic void send_player(java.lang.String name,
boolean is_spectator,
int seat_num)
throws java.io.IOException
send_player in interface ModGGZIOjava.io.IOExceptionpublic void send_seat(Seat seat) throws java.io.IOException
public void send_spectator_seat(SpectatorSeat seat) throws java.io.IOException
send_spectator_seat in interface ModGGZIOjava.io.IOExceptionpublic void send_msg_chat(java.lang.String player,
java.lang.String chat_msg)
throws java.io.IOException
send_msg_chat in interface ModGGZIOjava.io.IOExceptionpublic void send_error(java.lang.String error)
send_error in interface ModGGZIOpublic void send_stats(Stat[] player_stats, Stat[] spectator_stats) throws java.io.IOException
send_stats in interface ModGGZIOjava.io.IOExceptionpublic void send_msg_info(java.util.List infos)
throws java.io.IOException
send_msg_info in interface ModGGZIOjava.io.IOException