ggz.client.mod
Class ModGameSocketIO

java.lang.Object
  extended by ggz.client.mod.ModIO
      extended by ggz.client.mod.ModGameSocketIO
All Implemented Interfaces:
ModGameIO, java.lang.Runnable

public class ModGameSocketIO
extends ModIO
implements java.lang.Runnable, ModGameIO


Field Summary
 
Fields inherited from class ggz.client.mod.ModIO
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 Summary
ModGameSocketIO(ModGame ggzmod)
           
 
Method Summary
 void run()
           
 void sendReqBoot(java.lang.String name)
           
 void sendReqInfo(int seatNum)
           
 void sendReqSit(int seatNum)
           
 void sendReqStand()
           
 void sendRequestBot(int seatNum)
           
 void sendRequestChat(ChatType type, java.lang.String target, java.lang.String chatMsg)
           
 void sendRequestOpen(int seatNum)
           
 void sendState(ModState state)
           
 
Methods inherited from class ggz.client.mod.ModIO
readBoolean, readInt, readSeatType, readState, readString, writeBoolean, writeInt, writeSeatType, writeState, writeString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModGameSocketIO

public ModGameSocketIO(ModGame ggzmod)
                throws java.io.IOException
Throws:
java.io.IOException
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable

sendState

public void sendState(ModState state)
               throws java.io.IOException
Specified by:
sendState 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

sendReqSit

public void sendReqSit(int seatNum)
                throws java.io.IOException
Specified by:
sendReqSit in interface ModGameIO
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

sendRequestBot

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

sendRequestOpen

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

sendRequestChat

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

sendReqInfo

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