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