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  		Asynchronous message. Sent for bot connection. First message
35  		from UDK, part of handshake.
36  	
37                            Corresponding GameBots message is
38                            HELLO_BOT.
39                        
40               */
41              
42              public class
43              HelloBotHandshake
44                      extends GBEvent
45                  
46  	            	implements IWorldEvent, IWorldChangeEvent
47  
48              {
49              
50              /**
51                Creates new instance of command HelloBotHandshake.
52                
53  		Asynchronous message. Sent for bot connection. First message
54  		from UDK, part of handshake.
55  	Corresponding GameBots message for this command is
56                .
57                    @param ServerFull 
58  			If it is true, connection will be terminated afterwards.
59  		
60                */
61               public HelloBotHandshake(
62                  boolean ServerFull) {
63                      
64                      this.ServerFull = ServerFull;
65                  
66                  }
67  
68              
69      	/** Example how the message looks like - used during parser tests. */
70      	public static final String PROTOTYPE =
71      		"HELLO_BOT {ServerFull False}";
72      
73  
74              /////// Properties BEGIN
75              
76          /**
77          
78  			If it is true, connection will be terminated afterwards.
79  		 */
80          protected
81           boolean ServerFull =
82          	false;
83  
84          
85          /**
86          
87  			If it is true, connection will be terminated afterwards.
88  		 */
89          public
90          boolean isServerFull() {
91              return
92           ServerFull;
93          }
94          
95  
96          
97              /////// Properties END
98  
99              /////// Extra Java code BEGIN
100 
101             	/////// Additional code from xslt BEGIN
102             		
103        					public long getSimTime() {
104        						// NOT IMPLEMENTED FOR UDK
105        						return 0;
106        					}
107             		
108 
109 
110             	/////// Additional code from xslt END
111 
112 	            /////// Extra Java from XML BEGIN
113             		
114             	/////// Extra Java from XML END
115 
116             /////// Extra Java code END
117 
118             
119 
120             /**
121               * Cloning constructor.
122               */
123              public HelloBotHandshake(HelloBotHandshake original) {
124                 
125                      this.ServerFull=original.ServerFull;
126                 
127              }
128 
129              
130                  /**
131                   * Used by Yylex to create empty message then to fill it's protected fields (Yylex is in the same package).
132                   */
133 	             public HelloBotHandshake() {
134 	             }
135              
136 
137                  
138             public String toString() {
139                 return
140                 
141                 		super.toString() + " | " +
142                 		
143 				               "ServerFull = " +
144 				               String.valueOf(ServerFull) + " | " +
145 				             "";
146                 	
147              }
148 
149              public String toHtmlString() {
150                 return super.toString() +
151             
152             "<b>ServerFull</b> : " +
153             String.valueOf(ServerFull) +
154             " <br/> " +
155              "";
156              }
157 
158              
159              
160              }
161 
162