View Javadoc

1   
2               /**
3               IMPORTANT !!!
4   
5               DO NOT EDIT THIS FILE. IT IS GENERATED FROM approriate xml file in xmlresources/gbinfomessages 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.gbinfomessages;
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  		Info batch message. Starts with SMUT message, ends with EMUT
35  		message. Hold information about current mutators active
36  		on the server.
37  	
38                            Corresponding GameBots message is
39                            MUT.
40                        
41               */
42              
43              public class
44              Mutator extends
45          InfoMessage
46  	            	implements IWorldEvent, IWorldChangeEvent, cz.cuni.amis.pogamut.unreal.communication.messages.gbinfomessages.IMutator
47  
48              {
49              
50              /**
51                Creates new instance of command Mutator.
52                
53  		Info batch message. Starts with SMUT message, ends with EMUT
54  		message. Hold information about current mutators active
55  		on the server.
56  	Corresponding GameBots message for this command is
57                .
58                    @param Id 
59  			Id of the mutator. 
60  		
61                    @param Name 
62  			Name of the mutator. 
63  		
64                */
65               public Mutator(
66                  UnrealId Id,  String Name) {
67                      
68                      this.Id = Id;
69                  
70                      this.Name = Name;
71                  
72                  }
73  
74              
75      	/** Example how the message looks like - used during parser tests. */
76      	public static final String PROTOTYPE =
77      		"MUT {Id unreal_id} {Name text}";
78      
79  
80              /////// Properties BEGIN
81              
82          /**
83          
84  			Id of the mutator. 
85  		 */
86          protected
87           UnrealId Id =
88          	null;
89  
90          
91          /**
92          
93  			Id of the mutator. 
94  		 */
95          public
96          UnrealId getId() {
97              return
98           Id;
99          }
100         
101 
102         
103         /**
104         
105 			Name of the mutator. 
106 		 */
107         protected
108          String Name =
109         	null;
110 
111         
112         /**
113         
114 			Name of the mutator. 
115 		 */
116         public
117         String getName() {
118             return
119          Name;
120         }
121         
122 
123         
124             /////// Properties END
125 
126             /////// Extra Java code BEGIN
127 
128             	/////// Additional code from xslt BEGIN
129             		
130        					public long getSimTime() {
131        						// NOT IMPLEMENTED FOR UDK
132        						return 0;
133        					}
134             		
135 
136 
137             	/////// Additional code from xslt END
138 
139 	            /////// Extra Java from XML BEGIN
140             		
141             	/////// Extra Java from XML END
142 
143             /////// Extra Java code END
144 
145             
146 
147             /**
148               * Cloning constructor.
149               */
150              public Mutator(Mutator original) {
151                 
152                      this.Id=original.Id;
153                 
154                      this.Name=original.Name;
155                 
156              }
157 
158              
159                  /**
160                   * Used by Yylex to create empty message then to fill it's protected fields (Yylex is in the same package).
161                   */
162 	             public Mutator() {
163 	             }
164              
165 
166                  
167             public String toString() {
168                 return
169                 
170                 		super.toString() + " | " +
171                 		
172 				               "Id = " +
173 				               String.valueOf(Id) + " | " +
174 				            
175 				               "Name = " +
176 				               String.valueOf(Name) + " | " +
177 				             "";
178                 	
179              }
180 
181              public String toHtmlString() {
182                 return super.toString() +
183             
184             "<b>Id</b> : " +
185             String.valueOf(Id) +
186             " <br/> " +
187             
188             "<b>Name</b> : " +
189             String.valueOf(Name) +
190             " <br/> " +
191              "";
192              }
193 
194              
195              
196              }
197 
198