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 THAT FILE INSTEAD OF THIS ONE.
7            
8            Use Ant task process-gb-messages after that to generate .java files again.
9            
10           IMPORTANT END !!!
11          */
12   	package cz.cuni.amis.pogamut.ut2004.communication.messages.gbcommands;import java.util.*;import javax.vecmath.*;import cz.cuni.amis.pogamut.base.communication.messages.*;import cz.cuni.amis.pogamut.base.communication.worldview.*;import cz.cuni.amis.pogamut.base.communication.worldview.event.*;import cz.cuni.amis.pogamut.base.communication.worldview.object.*;import cz.cuni.amis.pogamut.multi.communication.worldview.object.*;import cz.cuni.amis.pogamut.base.communication.translator.event.*;import cz.cuni.amis.pogamut.multi.communication.translator.event.*;import cz.cuni.amis.pogamut.base3d.worldview.object.*;import cz.cuni.amis.pogamut.base3d.worldview.object.event.*;import cz.cuni.amis.pogamut.ut2004.communication.messages.*;import cz.cuni.amis.pogamut.ut2004.communication.worldview.objects.*;import cz.cuni.amis.pogamut.ut2004multi.communication.worldview.objects.*;import cz.cuni.amis.pogamut.ut2004.communication.translator.itemdescriptor.*;import cz.cuni.amis.pogamut.ut2004.communication.messages.ItemType.Category;import cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId;import cz.cuni.amis.utils.exception.*;import cz.cuni.amis.pogamut.base.communication.translator.event.IWorldObjectUpdateResult.Result;import cz.cuni.amis.utils.SafeEquals;import cz.cuni.amis.pogamut.base.agent.*;import cz.cuni.amis.pogamut.multi.agent.*;import cz.cuni.amis.pogamut.multi.communication.worldview.property.*;import cz.cuni.amis.pogamut.ut2004multi.communication.worldview.property.*;import cz.cuni.amis.utils.token.*;import cz.cuni.amis.utils.*;
13   		/**
14   		 * Representation of the GameBots2004 command PASSWORD.
15   		 *
16   		 * 
17  		Send password to the server. For more information see command
18  		SETPASS.
19  	
20           */
21   	public class PasswordReply 
22  		extends CommandMessage
23  	        {
24  	        	
25  		        
26      	/** Example how the message looks like - used during parser tests. */
27      	public static final String PROTOTYPE =
28      		" {Password text} ";
29      
30  		/**
31  		 * Creates new instance of command PasswordReply.
32  		 * 
33  		Send password to the server. For more information see command
34  		SETPASS.
35  	
36  		 * Corresponding GameBots message for this command is
37  		 * PASSWORD.
38  		 *
39  		 * 
40  		 *    @param Password The password.
41  		 */
42  		public PasswordReply(
43  			String Password
44  		) {
45  			
46  				this.Password = Password;
47              
48  		}
49  
50  		
51  			/**
52  			 * Creates new instance of command PasswordReply.
53  			 * 
54  		Send password to the server. For more information see command
55  		SETPASS.
56  	
57  			 * Corresponding GameBots message for this command is
58  			 * PASSWORD.
59  			 * <p></p>
60  			 * WARNING: this is empty-command constructor, you have to use setters to fill it up with data that should be sent to GameBots2004!
61  		     */
62  		    public PasswordReply() {
63  		    }
64  			
65  		
66  		/**
67  		 * Cloning constructor.
68  		 *
69  		 * @param original
70  		 */
71  		public PasswordReply(PasswordReply original) {
72  		   
73  		        this.Password = original.Password;
74  		   
75  		}
76      
77  	        /**
78  	        The password. 
79  	        */
80  	        protected
81  	         String Password =
82  	       	
83  	        		null
84  	        	;
85  	
86  	        
87  	        
88   		/**
89           * The password. 
90           */
91          public String getPassword()
92   	
93  	        {
94  	            return
95  	        	 Password;
96  	        }
97  	        
98  	        
99  	        
100  		
101  		/**
102          * The password. 
103          */
104         public PasswordReply 
105         setPassword(String Password)
106  	
107 			{
108 				this.Password = Password;
109 				return this;
110 			}
111 		
112  	    public String toString() {
113             return toMessage();
114         }
115  	
116  		public String toHtmlString() {
117 			return super.toString() + "[<br/>" +
118             	
119             	"<b>Password</b> = " +
120             	String.valueOf(getPassword()
121  	) +
122             	" <br/> " +
123             	 
124             	"<br/>]"
125             ;
126 		}
127  	
128 		public String toMessage() {
129      		StringBuffer buf = new StringBuffer();
130      		buf.append("PASSWORD");
131      		
132 						if (Password != null) {
133 							buf.append(" {Password " + Password + "}");
134 						}
135 					
136    			return buf.toString();
137    		}
138  	
139  		// --- Extra Java from XML BEGIN (extra/code/java)
140         	
141 		// --- Extra Java from XML END (extra/code/java)
142  	
143 	        }
144