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 THESE FILES INSTEAD OF THIS ONE.
7
8 IMPORTANT END !!!
9 */
10 package
11 cz.cuni.amis.pogamut.udk.communication.messages.gbcommands;
12 import java.util.*;
13 import javax.vecmath.*;
14 import cz.cuni.amis.pogamut.base.communication.messages.*;
15 import cz.cuni.amis.pogamut.base.communication.worldview.*;
16 import cz.cuni.amis.pogamut.base.communication.worldview.event.*;
17 import cz.cuni.amis.pogamut.base.communication.worldview.object.*;
18 import cz.cuni.amis.pogamut.base.communication.translator.event.*;
19 import cz.cuni.amis.pogamut.base3d.worldview.object.*;
20 import cz.cuni.amis.pogamut.base3d.worldview.object.event.*;
21 import cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId;
22 import cz.cuni.amis.pogamut.udk.communication.messages.*;
23 import cz.cuni.amis.pogamut.udk.communication.worldview.objects.*;
24 import cz.cuni.amis.pogamut.udk.communication.translator.itemdescriptor.*;
25 import cz.cuni.amis.pogamut.udk.communication.messages.ItemType.Category;
26 import cz.cuni.amis.utils.exception.*;
27 import cz.cuni.amis.pogamut.base.communication.translator.event.IWorldObjectUpdateResult.Result;
28 import cz.cuni.amis.utils.SafeEquals;
29 import cz.cuni.amis.pogamut.multi.communication.worldview.object.*;
30
31
32 /**
33
34 Set whether you are walking or running (default is run).
35
36 Corresponding GameBots command is
37 SETWALK.
38
39 */
40
41 public class
42 SetWalk extends
43 CommandMessage
44
45 {
46
47 /**
48 Creates new instance of command SetWalk.
49
50 Set whether you are walking or running (default is run).
51 Corresponding GameBots message for this command is
52 SETWALK.
53 @param Walk
54 True or false to enable/disable bot walking.
55
56 */
57 public SetWalk(
58 boolean Walk) {
59
60 this.Walk = Walk;
61
62 }
63
64
65 /**
66 Creates new instance of command SetWalk.
67
68 Set whether you are walking or running (default is run).
69 Corresponding GameBots message for this command is
70 SETWALK.
71 <p></p>WARNING: this is empty-command constructor, you have to use setters to fill it up!
72 */
73 public SetWalk() {
74 }
75
76
77 /////// Properties BEGIN
78
79 /**
80
81 True or false to enable/disable bot walking.
82 */
83 protected
84 boolean Walk =
85 false;
86
87
88 /**
89
90 True or false to enable/disable bot walking.
91 */
92 public
93 boolean isWalk() {
94 return
95 Walk;
96 }
97
98
99
100 /**
101
102 True or false to enable/disable bot walking.
103 */
104 public SetWalk setWalk(boolean Walk) {
105 this.Walk = Walk;
106 return this;
107 }
108
109 /////// Properties END
110
111 /////// Extra Java code BEGIN
112
113 /////// Additional code from xslt BEGIN
114
115
116
117 /////// Additional code from xslt END
118
119 /////// Extra Java from XML BEGIN
120
121 /////// Extra Java from XML END
122
123 /////// Extra Java code END
124
125
126
127 /**
128 * Cloning constructor.
129 */
130 public SetWalk(SetWalk original) {
131
132 this.Walk=original.Walk;
133
134 }
135
136
137
138
139 public String toString() {
140 return
141
142 toMessage();
143
144 }
145
146 public String toHtmlString() {
147 return super.toString() +
148
149 "<b>Walk</b> : " +
150 String.valueOf(Walk) +
151 " <br/> " +
152 "";
153 }
154
155
156
157 public String toMessage() {
158 StringBuffer buf = new StringBuffer();
159 buf.append("SETWALK");
160
161 buf.append(" {Walk " + Walk + "}");
162
163 return buf.toString();
164 }
165
166 }
167
168