diff options
Diffstat (limited to 'NET/worlds/network/propReqCmd.java')
| -rw-r--r-- | NET/worlds/network/propReqCmd.java | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/NET/worlds/network/propReqCmd.java b/NET/worlds/network/propReqCmd.java new file mode 100644 index 0000000..c59a333 --- /dev/null +++ b/NET/worlds/network/propReqCmd.java @@ -0,0 +1,84 @@ +/* */ 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<Integer> _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 + */
\ No newline at end of file |