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 THROW.
15   		 *
16   		 * 
17  		Without any parameters. Will drop your current weapon (if it is
18  		possible) and will change to best weapon available. If done
19  		successfully, message THROWN will come right away.
20  	
21           */
22   	public class Throw 
23  		extends CommandMessage
24  	        {
25  	        	
26  		        
27      	/** Example how the message looks like - used during parser tests. */
28      	public static final String PROTOTYPE =
29      		"";
30      
31  		/**
32  		 * Creates new instance of command Throw.
33  		 * 
34  		Without any parameters. Will drop your current weapon (if it is
35  		possible) and will change to best weapon available. If done
36  		successfully, message THROWN will come right away.
37  	
38  		 * Corresponding GameBots message for this command is
39  		 * THROW.
40  		 *
41  		 * 
42  		 */
43  		public Throw(
44  			
45  		) {
46  			
47  		}
48  
49  			
50  		
51  		/**
52  		 * Cloning constructor.
53  		 *
54  		 * @param original
55  		 */
56  		public Throw(Throw original) {
57  		   
58  		}
59      
60   	    public String toString() {
61              return toMessage();
62          }
63   	
64   		public String toHtmlString() {
65  			return super.toString() + "[<br/>" +
66              	 
67              	"<br/>]"
68              ;
69  		}
70   	
71  		public String toMessage() {
72       		StringBuffer buf = new StringBuffer();
73       		buf.append("THROW");
74       		
75     			return buf.toString();
76     		}
77   	
78   		// --- Extra Java from XML BEGIN (extra/code/java)
79          	
80  		// --- Extra Java from XML END (extra/code/java)
81   	
82  	        }
83