View Javadoc

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  		Will crouch/uncrouch the bot. If crouched you cannot jump. If
35  		killed, this will be reset.
36  	
37                            Corresponding GameBots command is
38                            SETCROUCH.
39                        
40               */
41              
42              public class
43              SetCrouch extends
44          CommandMessage
45  
46              {
47              
48              /**
49                Creates new instance of command SetCrouch.
50                
51  		Will crouch/uncrouch the bot. If crouched you cannot jump. If
52  		killed, this will be reset.
53  	Corresponding GameBots message for this command is
54                SETCROUCH.
55                    @param Crouch 
56  			True or false to crouch or unrouch.
57  		
58                */
59               public SetCrouch(
60                  boolean Crouch) {
61                      
62                      this.Crouch = Crouch;
63                  
64                  }
65  
66              
67              		/**
68  		             Creates new instance of command SetCrouch.
69  		             
70  		Will crouch/uncrouch the bot. If crouched you cannot jump. If
71  		killed, this will be reset.
72  	Corresponding GameBots message for this command is
73  		             SETCROUCH.
74  		             <p></p>WARNING: this is empty-command constructor, you have to use setters to fill it up!
75  		             */
76              		public  SetCrouch() {
77              		}
78              	
79  
80              /////// Properties BEGIN
81              
82          /**
83          
84  			True or false to crouch or unrouch.
85  		 */
86          protected
87           boolean Crouch =
88          	false;
89  
90          
91          /**
92          
93  			True or false to crouch or unrouch.
94  		 */
95          public
96          boolean isCrouch() {
97              return
98           Crouch;
99          }
100         
101 
102         
103             /**
104         
105 			True or false to crouch or unrouch.
106 		 */
107         public SetCrouch setCrouch(boolean Crouch) {
108             this.Crouch = Crouch;
109             return this;
110             }
111        
112             /////// Properties END
113 
114             /////// Extra Java code BEGIN
115 
116             	/////// Additional code from xslt BEGIN
117             		
118 
119 
120             	/////// Additional code from xslt END
121 
122 	            /////// Extra Java from XML BEGIN
123             		
124             	/////// Extra Java from XML END
125 
126             /////// Extra Java code END
127 
128             
129 
130             /**
131               * Cloning constructor.
132               */
133              public SetCrouch(SetCrouch original) {
134                 
135                      this.Crouch=original.Crouch;
136                 
137              }
138 
139              
140 
141                  
142             public String toString() {
143                 return
144                 
145                     	toMessage();
146                     
147              }
148 
149              public String toHtmlString() {
150                 return super.toString() +
151             
152             "<b>Crouch</b> : " +
153             String.valueOf(Crouch) +
154             " <br/> " +
155              "";
156              }
157 
158              
159              
160              	 public String toMessage() {
161               		StringBuffer buf = new StringBuffer();
162               		buf.append("SETCROUCH");
163               		
164 		    					buf.append(" {Crouch " + Crouch + "}");
165 		    				
166             		return buf.toString();
167             }
168              
169              }
170 
171