blob: 95f166bb85a414f359734b37ac8fab800ad27189 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
|
/* */ 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
*/
|