/* */ package NET.worlds.network; /* */ /* */ import java.io.IOException; /* */ import java.util.Vector; /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ public class propReqCmd /* */ extends netPacket /* */ { /* */ public static final byte PROPREQCMD = 10; /* */ protected Vector _varids; /* */ /* */ public propReqCmd(ObjID id, int varid) /* */ { /* 38 */ super(id, 10); /* 39 */ this._varids = new Vector(); /* 40 */ addProp(varid); /* */ } /* */ /* */ public propReqCmd(ObjID id) { /* 44 */ super(id, 10); /* 45 */ this._varids = new Vector(); /* */ } /* */ /* */ public void addProp(int varid) { /* 49 */ this._varids.addElement(new Integer(varid)); /* */ } /* */ /* */ int packetSize() /* */ { /* 54 */ return this._varids.size() + super.packetSize(); /* */ } /* */ /* */ void send(ServerOutputStream o) throws IOException /* */ { /* 59 */ super.send(o); /* 60 */ int maxidx = this._varids.size(); /* */ /* 62 */ for (int i = 0; i < maxidx; i++) { /* 63 */ Integer tmpInt = (Integer)this._varids.elementAt(i); /* 64 */ o.writeByte(tmpInt.intValue()); /* */ } /* */ } /* */ /* */ /* */ public String toString(WorldServer serv) /* */ { /* 71 */ String out = "PROPREQ " + this._objID.toString(serv) + " "; /* 72 */ int maxidx = this._varids.size(); /* 73 */ for (int i = 0; i < maxidx; i++) { /* 74 */ out = out + " #" + (Integer)this._varids.elementAt(i); /* */ } /* 76 */ return out; /* */ } /* */ } /* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\network\propReqCmd.class * Java compiler version: 6 (50.0) * JD-Core Version: 0.7.1 */