ggz.client.mod
Class ModIO

java.lang.Object
  extended by ggz.client.mod.ModIO
Direct Known Subclasses:
ModGameSocketIO, ModGGZSocketIO

public class ModIO
extends java.lang.Object


Field Summary
protected  java.io.DataInputStream in
           
protected static int MSG_GAME_CHAT
           
protected static int MSG_GAME_INFO
           
protected static int MSG_GAME_LAUNCH
          Messages sent from the ggz core client to the game client.
protected static int MSG_GAME_PLAYER
          Info about this player (us).
protected static int MSG_GAME_SEAT
          Sent from GGZ to game to tell of a seat change.
protected static int MSG_GAME_SERVER
           
protected static int MSG_GAME_SERVER_FD
           
protected static int MSG_GAME_SPECTATOR_SEAT
           
protected static int MSG_GAME_STATE
          Messages sent from the game client to the ggz core client.
protected static int MSG_GAME_STATS
           
protected  java.io.DataOutputStream out
           
protected static int REQ_BOOT
           
protected static int REQ_BOT
           
protected static int REQ_CHAT
           
protected static int REQ_INFO
           
protected static int REQ_OPEN
           
protected static int REQ_SIT
           
protected static int REQ_STAND
           
 
Constructor Summary
ModIO()
           
 
Method Summary
protected  boolean readBoolean()
           
protected  int readInt()
           
protected  SeatType readSeatType()
           
protected  ModState readState()
           
protected  java.lang.String readString()
           
protected  void writeBoolean(boolean b)
           
protected  void writeInt(int v)
           
protected  void writeSeatType(SeatType type)
           
protected  void writeState(ModState state)
           
protected  void writeString(java.lang.String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MSG_GAME_STATE

protected static final int MSG_GAME_STATE
Messages sent from the game client to the ggz core client.

See Also:
Constant Field Values

REQ_STAND

protected static final int REQ_STAND
See Also:
Constant Field Values

REQ_SIT

protected static final int REQ_SIT
See Also:
Constant Field Values

REQ_BOOT

protected static final int REQ_BOOT
See Also:
Constant Field Values

REQ_BOT

protected static final int REQ_BOT
See Also:
Constant Field Values

REQ_OPEN

protected static final int REQ_OPEN
See Also:
Constant Field Values

REQ_CHAT

protected static final int REQ_CHAT
See Also:
Constant Field Values

REQ_INFO

protected static final int REQ_INFO
See Also:
Constant Field Values

MSG_GAME_LAUNCH

protected static final int MSG_GAME_LAUNCH
Messages sent from the ggz core client to the game client.

See Also:
Constant Field Values

MSG_GAME_SERVER

protected static final int MSG_GAME_SERVER
See Also:
Constant Field Values

MSG_GAME_SERVER_FD

protected static final int MSG_GAME_SERVER_FD
See Also:
Constant Field Values

MSG_GAME_PLAYER

protected static final int MSG_GAME_PLAYER
Info about this player (us).

See Also:
Constant Field Values

MSG_GAME_SEAT

protected static final int MSG_GAME_SEAT
Sent from GGZ to game to tell of a seat change. No response is necessary.

See Also:
Constant Field Values

MSG_GAME_SPECTATOR_SEAT

protected static final int MSG_GAME_SPECTATOR_SEAT
See Also:
Constant Field Values

MSG_GAME_CHAT

protected static final int MSG_GAME_CHAT
See Also:
Constant Field Values

MSG_GAME_STATS

protected static final int MSG_GAME_STATS
See Also:
Constant Field Values

MSG_GAME_INFO

protected static final int MSG_GAME_INFO
See Also:
Constant Field Values

in

protected java.io.DataInputStream in

out

protected java.io.DataOutputStream out
Constructor Detail

ModIO

public ModIO()
Method Detail

readInt

protected int readInt()
               throws java.io.IOException
Throws:
java.io.IOException

writeInt

protected void writeInt(int v)
                 throws java.io.IOException
Throws:
java.io.IOException

writeString

protected void writeString(java.lang.String s)
                    throws java.io.IOException
Throws:
java.io.IOException

readString

protected java.lang.String readString()
                               throws java.io.IOException
Throws:
java.io.IOException

readBoolean

protected boolean readBoolean()
                       throws java.io.IOException
Throws:
java.io.IOException

writeBoolean

protected void writeBoolean(boolean b)
                     throws java.io.IOException
Throws:
java.io.IOException

readSeatType

protected SeatType readSeatType()
                         throws java.io.IOException
Throws:
java.io.IOException

writeSeatType

protected void writeSeatType(SeatType type)
                      throws java.io.IOException
Throws:
java.io.IOException

readState

protected ModState readState()
                      throws java.io.IOException
Throws:
java.io.IOException

writeState

protected void writeState(ModState state)
                   throws java.io.IOException
Throws:
java.io.IOException