/* */ package NET.worlds.network; /* */ /* */ import java.io.IOException; /* */ import java.io.PrintStream; /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ public class propCmd /* */ extends receivedNetPacket /* */ { /* */ public static final byte PROPCMD = 3; /* */ protected OldPropertyList _propList; /* */ /* */ public propCmd() /* */ { /* 60 */ this._commandType = 3; /* */ /* 62 */ this._propList = new OldPropertyList(); /* */ } /* */ /* */ public propCmd(OldPropertyList propList) /* */ { /* 67 */ super(null, 3); /* 68 */ this._propList = propList; /* */ } /* */ /* */ public propCmd(ObjID objID, OldPropertyList propList) /* */ { /* 73 */ super(objID, 3); /* 74 */ this._propList = propList; /* */ } /* */ /* */ void parseNetData(ServerInputStream data) throws IOException /* */ { /* 79 */ this._propList = new OldPropertyList(); /* 80 */ this._propList.parseNetData(data); /* */ } /* */ /* */ int packetSize() /* */ { /* 85 */ return super.packetSize() + this._propList.packetSize(); /* */ } /* */ /* */ void send(ServerOutputStream o) throws IOException /* */ { /* 90 */ super.send(o); /* 91 */ assert (this._propList != null); /* 92 */ this._propList.send(o); /* */ } /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ void process(WorldServer _serv) /* */ throws Exception /* */ { /* 111 */ NetworkObject o = _serv.getObject(this._objID); /* */ /* 113 */ if (o == null) { /* 114 */ System.err.println("propCmd::process() error: cannot find object with name " + /* 115 */ this._objID); /* 116 */ return; /* */ } /* */ /* 119 */ o.property(this._propList); /* */ } /* */ /* */ /* */ public String toString(WorldServer serv) /* */ { /* 125 */ return "PROP " + this._objID.toString(serv) + " " + this._propList; /* */ } /* */ } /* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\network\propCmd.class * Java compiler version: 6 (50.0) * JD-Core Version: 0.7.1 */