ggz.client.mod
Class EmbeddedIO

java.lang.Object
  extended by ggz.client.mod.EmbeddedIO
All Implemented Interfaces:
ModGameIO, ModGGZIO

public class EmbeddedIO
extends java.lang.Object
implements ModGGZIO, ModGameIO

This class doesn't actually do any IO. It justs forwards the requests directly between the core client and the game client. It's nice and efficient when the game client is running in the same JVM, which is the common case.

Author:
Helg.Bredow

Constructor Summary
EmbeddedIO(ModGGZ modGGZ, ModGame modGame)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmbeddedIO

public EmbeddedIO(ModGGZ modGGZ,
                  ModGame modGame)
Method Detail

disconnect

public void disconnect()
                throws java.io.IOException
Specified by:
disconnect in interface ModGGZIO
Throws:
java.io.IOException

send_error

public void send_error(java.lang.String error)
Specified by:
send_error in interface ModGGZIO

send_launch

public void send_launch()
                 throws java.io.IOException
Specified by:
send_launch in interface ModGGZIO
Throws:
java.io.IOException

send_msg_chat

public void send_msg_chat(java.lang.String player,
                          java.lang.String chat_msg)
                   throws java.io.IOException
Specified by:
send_msg_chat in interface ModGGZIO
Throws:
java.io.IOException

send_msg_info

public void send_msg_info(java.util.List infos)
                   throws java.io.IOException
Specified by:
send_msg_info in interface ModGGZIO
Throws:
java.io.IOException

send_player

public void send_player(java.lang.String name,
                        boolean is_spectator,
                        int seat_num)
                 throws java.io.IOException
Specified by:
send_player in interface ModGGZIO
Throws:
java.io.IOException

send_seat

public void send_seat(Seat seat)
               throws java.io.IOException
Specified by:
send_seat in interface ModGGZIO
Throws:
java.io.IOException

send_server

public void send_server(java.lang.String host,
                        int port,
                        java.lang.String handle)
                 throws java.io.IOException
Specified by:
send_server in interface ModGGZIO
Throws:
java.io.IOException

send_server_fd

public void send_server_fd(java.net.Socket server_fd)
                    throws java.io.IOException
Specified by:
send_server_fd in interface ModGGZIO
Throws:
java.io.IOException

send_spectator_seat

public void send_spectator_seat(SpectatorSeat seat)
                         throws java.io.IOException
Specified by:
send_spectator_seat in interface ModGGZIO
Throws:
java.io.IOException

send_stats

public void send_stats(Stat[] player_stats,
                       Stat[] spectator_stats)
                throws java.io.IOException
Specified by:
send_stats in interface ModGGZIO
Throws:
java.io.IOException

sendReqBoot

public void sendReqBoot(java.lang.String name)
                 throws java.io.IOException
Specified by:
sendReqBoot in interface ModGameIO
Throws:
java.io.IOException

sendReqInfo

public void sendReqInfo(int seat_num)
                 throws java.io.IOException
Specified by:
sendReqInfo in interface ModGameIO
Throws:
java.io.IOException

sendReqSit

public void sendReqSit(int seat_num)
                throws java.io.IOException
Specified by:
sendReqSit in interface ModGameIO
Throws:
java.io.IOException

sendReqStand

public void sendReqStand()
                  throws java.io.IOException
Specified by:
sendReqStand in interface ModGameIO
Throws:
java.io.IOException

sendRequestBot

public void sendRequestBot(int seat_num)
                    throws java.io.IOException
Specified by:
sendRequestBot in interface ModGameIO
Throws:
java.io.IOException

sendRequestChat

public void sendRequestChat(ChatType type,
                            java.lang.String target,
                            java.lang.String chat_msg)
                     throws java.io.IOException
Specified by:
sendRequestChat in interface ModGameIO
Throws:
java.io.IOException

sendRequestOpen

public void sendRequestOpen(int seat_num)
                     throws java.io.IOException
Specified by:
sendRequestOpen in interface ModGameIO
Throws:
java.io.IOException

sendState

public void sendState(ModState state)
               throws java.io.IOException
Specified by:
sendState in interface ModGameIO
Throws:
java.io.IOException