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