1
2
3
4
5
6
7
8
9
10
11
12 package cz.cuni.amis.pogamut.ut2004.communication.messages.gbcommands;import java.util.*;import javax.vecmath.*;import cz.cuni.amis.pogamut.base.communication.messages.*;import cz.cuni.amis.pogamut.base.communication.worldview.*;import cz.cuni.amis.pogamut.base.communication.worldview.event.*;import cz.cuni.amis.pogamut.base.communication.worldview.object.*;import cz.cuni.amis.pogamut.multi.communication.worldview.object.*;import cz.cuni.amis.pogamut.base.communication.translator.event.*;import cz.cuni.amis.pogamut.multi.communication.translator.event.*;import cz.cuni.amis.pogamut.base3d.worldview.object.*;import cz.cuni.amis.pogamut.base3d.worldview.object.event.*;import cz.cuni.amis.pogamut.ut2004.communication.messages.*;import cz.cuni.amis.pogamut.ut2004.communication.worldview.objects.*;import cz.cuni.amis.pogamut.ut2004multi.communication.worldview.objects.*;import cz.cuni.amis.pogamut.ut2004.communication.translator.itemdescriptor.*;import cz.cuni.amis.pogamut.ut2004.communication.messages.ItemType.Category;import cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId;import cz.cuni.amis.utils.exception.*;import cz.cuni.amis.pogamut.base.communication.translator.event.IWorldObjectUpdateResult.Result;import cz.cuni.amis.utils.SafeEquals;import cz.cuni.amis.pogamut.base.agent.*;import cz.cuni.amis.pogamut.multi.agent.*;import cz.cuni.amis.pogamut.multi.communication.worldview.property.*;import cz.cuni.amis.pogamut.ut2004multi.communication.worldview.property.*;import cz.cuni.amis.utils.token.*;import cz.cuni.amis.utils.*;
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28 public class SetSkin
29 extends CommandMessage
30 {
31
32
33
34 public static final String PROTOTYPE =
35 " {Skin text} {URHair text} {URClothes text} {URSkin text} ";
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59 public SetSkin(
60 String Skin, String URHair, String URClothes, String URSkin
61 ) {
62
63 this.Skin = Skin;
64
65 this.URHair = URHair;
66
67 this.URClothes = URClothes;
68
69 this.URSkin = URSkin;
70
71 }
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92 public SetSkin() {
93 }
94
95
96
97
98
99
100
101 public SetSkin(SetSkin original) {
102
103 this.Skin = original.Skin;
104
105 this.URHair = original.URHair;
106
107 this.URClothes = original.URClothes;
108
109 this.URSkin = original.URSkin;
110
111 }
112
113
114
115
116 protected
117 String Skin =
118
119 null
120 ;
121
122
123
124
125
126
127 public String getSkin()
128
129 {
130 return
131 Skin;
132 }
133
134
135
136
137
138
139
140 public SetSkin
141 setSkin(String Skin)
142
143 {
144 this.Skin = Skin;
145 return this;
146 }
147
148
149
150
151 protected
152 String URHair =
153
154 null
155 ;
156
157
158
159
160
161
162 public String getURHair()
163
164 {
165 return
166 URHair;
167 }
168
169
170
171
172
173
174
175 public SetSkin
176 setURHair(String URHair)
177
178 {
179 this.URHair = URHair;
180 return this;
181 }
182
183
184
185
186 protected
187 String URClothes =
188
189 null
190 ;
191
192
193
194
195
196
197 public String getURClothes()
198
199 {
200 return
201 URClothes;
202 }
203
204
205
206
207
208
209
210 public SetSkin
211 setURClothes(String URClothes)
212
213 {
214 this.URClothes = URClothes;
215 return this;
216 }
217
218
219
220
221 protected
222 String URSkin =
223
224 null
225 ;
226
227
228
229
230
231
232 public String getURSkin()
233
234 {
235 return
236 URSkin;
237 }
238
239
240
241
242
243
244
245 public SetSkin
246 setURSkin(String URSkin)
247
248 {
249 this.URSkin = URSkin;
250 return this;
251 }
252
253 public String toString() {
254 return toMessage();
255 }
256
257 public String toHtmlString() {
258 return super.toString() + "[<br/>" +
259
260 "<b>Skin</b> = " +
261 String.valueOf(getSkin()
262 ) +
263 " <br/> " +
264
265 "<b>URHair</b> = " +
266 String.valueOf(getURHair()
267 ) +
268 " <br/> " +
269
270 "<b>URClothes</b> = " +
271 String.valueOf(getURClothes()
272 ) +
273 " <br/> " +
274
275 "<b>URSkin</b> = " +
276 String.valueOf(getURSkin()
277 ) +
278 " <br/> " +
279
280 "<br/>]"
281 ;
282 }
283
284 public String toMessage() {
285 StringBuffer buf = new StringBuffer();
286 buf.append("SETSKIN");
287
288 if (Skin != null) {
289 buf.append(" {Skin " + Skin + "}");
290 }
291
292 if (URHair != null) {
293 buf.append(" {URHair " + URHair + "}");
294 }
295
296 if (URClothes != null) {
297 buf.append(" {URClothes " + URClothes + "}");
298 }
299
300 if (URSkin != null) {
301 buf.append(" {URSkin " + URSkin + "}");
302 }
303
304 return buf.toString();
305 }
306
307
308
309
310
311 }
312