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