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