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 SMAP message, ends with EMAP
35  		message. Hold information about available maps on the server
36  		(maps to which we can change the game).
37  	
38                            Corresponding GameBots message is
39                            IMAP.
40                        
41               */
42              
43              public class
44              MapList extends
45          InfoMessage
46  	            	implements IWorldEvent, IWorldChangeEvent, cz.cuni.amis.pogamut.unreal.communication.messages.gbinfomessages.IMapList
47  
48              {
49              
50              /**
51                Creates new instance of command MapList.
52                
53  		Info batch message. Starts with SMAP message, ends with EMAP
54  		message. Hold information about available maps on the server
55  		(maps to which we can change the game).
56  	Corresponding GameBots message for this command is
57                .
58                    @param Name 
59  			Name of one map in map list on the server.
60  		
61                */
62               public MapList(
63                  String Name) {
64                      
65                      this.Name = Name;
66                  
67                  }
68  
69              
70      	/** Example how the message looks like - used during parser tests. */
71      	public static final String PROTOTYPE =
72      		"IMAP {Name text}";
73      
74  
75              /////// Properties BEGIN
76              
77          /**
78          
79  			Name of one map in map list on the server.
80  		 */
81          protected
82           String Name =
83          	null;
84  
85          
86          /**
87          
88  			Name of one map in map list on the server.
89  		 */
90          public
91          String getName() {
92              return
93           Name;
94          }
95          
96  
97          
98              /////// Properties END
99  
100             /////// Extra Java code BEGIN
101 
102             	/////// Additional code from xslt BEGIN
103             		
104        					public long getSimTime() {
105        						// NOT IMPLEMENTED FOR UDK
106        						return 0;
107        					}
108             		
109 
110 
111             	/////// Additional code from xslt END
112 
113 	            /////// Extra Java from XML BEGIN
114             		
115             	/////// Extra Java from XML END
116 
117             /////// Extra Java code END
118 
119             
120 
121             /**
122               * Cloning constructor.
123               */
124              public MapList(MapList original) {
125                 
126                      this.Name=original.Name;
127                 
128              }
129 
130              
131                  /**
132                   * Used by Yylex to create empty message then to fill it's protected fields (Yylex is in the same package).
133                   */
134 	             public MapList() {
135 	             }
136              
137 
138                  
139             public String toString() {
140                 return
141                 
142                 		super.toString() + " | " +
143                 		
144 				               "Name = " +
145 				               String.valueOf(Name) + " | " +
146 				             "";
147                 	
148              }
149 
150              public String toHtmlString() {
151                 return super.toString() +
152             
153             "<b>Name</b> : " +
154             String.valueOf(Name) +
155             " <br/> " +
156              "";
157              }
158 
159              
160              
161              }
162 
163