1
2 /**
3 IMPORTANT !!!
4
5 DO NOT EDIT THIS FILE. IT IS GENERATED FROM approriate xml file in xmlresources/gbcommands BY
6 THE JavaClassesGenerator.xslt. MODIFY THAT FILE INSTEAD OF THIS ONE.
7
8 Use Ant task process-gb-messages after that to generate .java files again.
9
10 IMPORTANT END !!!
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 * Representation of the GameBots2004 command SETSKIN.
15 *
16 *
17 Sets the bot current skin through Skin attribute (e.g. SETSKIN
18 {Skin "HumanMaleA.MercMaleA"}). Find all packages and skins
19 through unrealEd (Actor browser, search in UT2004/Animations
20 folder). Supported bot skins are Aliens (Aliens.), Bots (Bot.),
21 human males (HumanMaleA.), human females (HumanFemaleA. ),
22 juggernauts (Jugg.). Skaarj skins are not supported at the time
23 being.
24 In UnrealRuntime we use different attributes to set up textures of
25 the bots.
26
27 */
28 public class SetSkin
29 extends CommandMessage
30 {
31
32
33 /** Example how the message looks like - used during parser tests. */
34 public static final String PROTOTYPE =
35 " {Skin text} {URHair text} {URClothes text} {URSkin text} ";
36
37 /**
38 * Creates new instance of command SetSkin.
39 *
40 Sets the bot current skin through Skin attribute (e.g. SETSKIN
41 {Skin "HumanMaleA.MercMaleA"}). Find all packages and skins
42 through unrealEd (Actor browser, search in UT2004/Animations
43 folder). Supported bot skins are Aliens (Aliens.), Bots (Bot.),
44 human males (HumanMaleA.), human females (HumanFemaleA. ),
45 juggernauts (Jugg.). Skaarj skins are not supported at the time
46 being.
47 In UnrealRuntime we use different attributes to set up textures of
48 the bots.
49
50 * Corresponding GameBots message for this command is
51 * SETSKIN.
52 *
53 *
54 * @param Skin Holds the desired skin.
55 * @param URHair A number representing hair. String type is desired here. Parsed only in UnrealRuntime.
56 * @param URClothes A number representing clothes. String type is desired here. Parsed only in UnrealRuntime.
57 * @param URSkin A number representing skin. String type is desired here. Parsed only in UnrealRuntime.
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 * Creates new instance of command SetSkin.
76 *
77 Sets the bot current skin through Skin attribute (e.g. SETSKIN
78 {Skin "HumanMaleA.MercMaleA"}). Find all packages and skins
79 through unrealEd (Actor browser, search in UT2004/Animations
80 folder). Supported bot skins are Aliens (Aliens.), Bots (Bot.),
81 human males (HumanMaleA.), human females (HumanFemaleA. ),
82 juggernauts (Jugg.). Skaarj skins are not supported at the time
83 being.
84 In UnrealRuntime we use different attributes to set up textures of
85 the bots.
86
87 * Corresponding GameBots message for this command is
88 * SETSKIN.
89 * <p></p>
90 * WARNING: this is empty-command constructor, you have to use setters to fill it up with data that should be sent to GameBots2004!
91 */
92 public SetSkin() {
93 }
94
95
96 /**
97 * Cloning constructor.
98 *
99 * @param original
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 Holds the desired skin.
115 */
116 protected
117 String Skin =
118
119 null
120 ;
121
122
123
124 /**
125 * Holds the desired skin.
126 */
127 public String getSkin()
128
129 {
130 return
131 Skin;
132 }
133
134
135
136
137 /**
138 * Holds the desired skin.
139 */
140 public SetSkin
141 setSkin(String Skin)
142
143 {
144 this.Skin = Skin;
145 return this;
146 }
147
148 /**
149 A number representing hair. String type is desired here. Parsed only in UnrealRuntime.
150 */
151 protected
152 String URHair =
153
154 null
155 ;
156
157
158
159 /**
160 * A number representing hair. String type is desired here. Parsed only in UnrealRuntime.
161 */
162 public String getURHair()
163
164 {
165 return
166 URHair;
167 }
168
169
170
171
172 /**
173 * A number representing hair. String type is desired here. Parsed only in UnrealRuntime.
174 */
175 public SetSkin
176 setURHair(String URHair)
177
178 {
179 this.URHair = URHair;
180 return this;
181 }
182
183 /**
184 A number representing clothes. String type is desired here. Parsed only in UnrealRuntime.
185 */
186 protected
187 String URClothes =
188
189 null
190 ;
191
192
193
194 /**
195 * A number representing clothes. String type is desired here. Parsed only in UnrealRuntime.
196 */
197 public String getURClothes()
198
199 {
200 return
201 URClothes;
202 }
203
204
205
206
207 /**
208 * A number representing clothes. String type is desired here. Parsed only in UnrealRuntime.
209 */
210 public SetSkin
211 setURClothes(String URClothes)
212
213 {
214 this.URClothes = URClothes;
215 return this;
216 }
217
218 /**
219 A number representing skin. String type is desired here. Parsed only in UnrealRuntime.
220 */
221 protected
222 String URSkin =
223
224 null
225 ;
226
227
228
229 /**
230 * A number representing skin. String type is desired here. Parsed only in UnrealRuntime.
231 */
232 public String getURSkin()
233
234 {
235 return
236 URSkin;
237 }
238
239
240
241
242 /**
243 * A number representing skin. String type is desired here. Parsed only in UnrealRuntime.
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 // --- Extra Java from XML BEGIN (extra/code/java)
308
309 // --- Extra Java from XML END (extra/code/java)
310
311 }
312