public class EmbeddedIO extends java.lang.Object implements ModGGZIO, ModGameIO
| Constructor and Description |
|---|
EmbeddedIO(ModGGZ modGGZ,
ModGame modGame) |
| Modifier and Type | Method and Description |
|---|---|
void |
disconnect() |
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) |
void |
sendReqBoot(java.lang.String name) |
void |
sendReqInfo(int seat_num) |
void |
sendReqSit(int seat_num) |
void |
sendReqStand() |
void |
sendRequestBot(int seat_num) |
void |
sendRequestChat(ChatType type,
java.lang.String target,
java.lang.String chat_msg) |
void |
sendRequestOpen(int seat_num) |
void |
sendState(ModState state) |
public void disconnect()
throws java.io.IOException
disconnect in interface ModGGZIOjava.io.IOExceptionpublic void send_error(java.lang.String error)
send_error in interface ModGGZIOpublic void send_launch()
throws java.io.IOException
send_launch 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_msg_info(java.util.List infos)
throws java.io.IOException
send_msg_info in interface ModGGZIOjava.io.IOExceptionpublic 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_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)
throws java.io.IOException
send_server_fd in interface ModGGZIOjava.io.IOExceptionpublic void send_spectator_seat(SpectatorSeat seat) throws java.io.IOException
send_spectator_seat in interface ModGGZIOjava.io.IOExceptionpublic void send_stats(Stat[] player_stats, Stat[] spectator_stats) throws java.io.IOException
send_stats in interface ModGGZIOjava.io.IOExceptionpublic void sendReqBoot(java.lang.String name)
throws java.io.IOException
sendReqBoot in interface ModGameIOjava.io.IOExceptionpublic void sendReqInfo(int seat_num)
throws java.io.IOException
sendReqInfo in interface ModGameIOjava.io.IOExceptionpublic void sendReqSit(int seat_num)
throws java.io.IOException
sendReqSit in interface ModGameIOjava.io.IOExceptionpublic void sendReqStand()
throws java.io.IOException
sendReqStand in interface ModGameIOjava.io.IOExceptionpublic void sendRequestBot(int seat_num)
throws java.io.IOException
sendRequestBot in interface ModGameIOjava.io.IOExceptionpublic void sendRequestChat(ChatType type, java.lang.String target, java.lang.String chat_msg) throws java.io.IOException
sendRequestChat in interface ModGameIOjava.io.IOExceptionpublic void sendRequestOpen(int seat_num)
throws java.io.IOException
sendRequestOpen in interface ModGameIOjava.io.IOException