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 DISCONNECT.
15   		 *
16   		 * 
17  		Tells the GB2004 to destroy the bot inside UT2004 and
18  		close the connection which results in the termination
19  		of UT2004Bot as
20  		well.
21      
22           */
23   	public class DisconnectBot 
24  		extends CommandMessage
25  	        {
26  	        	
27  		        
28      	/** Example how the message looks like - used during parser tests. */
29      	public static final String PROTOTYPE =
30      		"";
31      
32  		/**
33  		 * Creates new instance of command DisconnectBot.
34  		 * 
35  		Tells the GB2004 to destroy the bot inside UT2004 and
36  		close the connection which results in the termination
37  		of UT2004Bot as
38  		well.
39      
40  		 * Corresponding GameBots message for this command is
41  		 * DISCONNECT.
42  		 *
43  		 * 
44  		 */
45  		public DisconnectBot(
46  			
47  		) {
48  			
49  		}
50  
51  			
52  		
53  		/**
54  		 * Cloning constructor.
55  		 *
56  		 * @param original
57  		 */
58  		public DisconnectBot(DisconnectBot original) {
59  		   
60  		}
61      
62   	    public String toString() {
63              return toMessage();
64          }
65   	
66   		public String toHtmlString() {
67  			return super.toString() + "[<br/>" +
68              	 
69              	"<br/>]"
70              ;
71  		}
72   	
73  		public String toMessage() {
74       		StringBuffer buf = new StringBuffer();
75       		buf.append("DISCONNECT");
76       		
77     			return buf.toString();
78     		}
79   	
80   		// --- Extra Java from XML BEGIN (extra/code/java)
81          	
82  		// --- Extra Java from XML END (extra/code/java)
83   	
84  	        }
85