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 COMBO.
15   		 *
16   		 * 
17  		Causes bot to perform desired adrenaline combo (only if it has enough adrenaline usually >= 100). Combo cannot be turned off when triggered. 
18       Combo will consume bot adrenaline slowly, when it reaches 0 combo stops. Combo can modify bots abilities or appearance. Combos can be xGame.ComboBerserk (bigger damage), xGame.ComboDefensive (every few seconds adds health), xGame.ComboInvis (bot is invisible and is very hard to spot) or xGame.ComboSpeed (bots speed is increased).
19  	
20           */
21   	public class Combo 
22  		extends CommandMessage
23  	        {
24  	        	
25  		        
26      	/** Example how the message looks like - used during parser tests. */
27      	public static final String PROTOTYPE =
28      		" {Type text} ";
29      
30  		/**
31  		 * Creates new instance of command Combo.
32  		 * 
33  		Causes bot to perform desired adrenaline combo (only if it has enough adrenaline usually >= 100). Combo cannot be turned off when triggered. 
34       Combo will consume bot adrenaline slowly, when it reaches 0 combo stops. Combo can modify bots abilities or appearance. Combos can be xGame.ComboBerserk (bigger damage), xGame.ComboDefensive (every few seconds adds health), xGame.ComboInvis (bot is invisible and is very hard to spot) or xGame.ComboSpeed (bots speed is increased).
35  	
36  		 * Corresponding GameBots message for this command is
37  		 * COMBO.
38  		 *
39  		 * 
40  		 *    @param Type 
41  			Holds the class name of the desired adrenaline combo (can be
42  			xGame.ComboBerserk, xGame.ComboDefensive, xGame.ComboInvis
43  			or xGame.ComboSpeed).
44  		
45  		 */
46  		public Combo(
47  			String Type
48  		) {
49  			
50  				this.Type = Type;
51              
52  		}
53  
54  		
55  			/**
56  			 * Creates new instance of command Combo.
57  			 * 
58  		Causes bot to perform desired adrenaline combo (only if it has enough adrenaline usually >= 100). Combo cannot be turned off when triggered. 
59       Combo will consume bot adrenaline slowly, when it reaches 0 combo stops. Combo can modify bots abilities or appearance. Combos can be xGame.ComboBerserk (bigger damage), xGame.ComboDefensive (every few seconds adds health), xGame.ComboInvis (bot is invisible and is very hard to spot) or xGame.ComboSpeed (bots speed is increased).
60  	
61  			 * Corresponding GameBots message for this command is
62  			 * COMBO.
63  			 * <p></p>
64  			 * WARNING: this is empty-command constructor, you have to use setters to fill it up with data that should be sent to GameBots2004!
65  		     */
66  		    public Combo() {
67  		    }
68  			
69  		
70  		/**
71  		 * Cloning constructor.
72  		 *
73  		 * @param original
74  		 */
75  		public Combo(Combo original) {
76  		   
77  		        this.Type = original.Type;
78  		   
79  		}
80      
81  	        /**
82  	        
83  			Holds the class name of the desired adrenaline combo (can be
84  			xGame.ComboBerserk, xGame.ComboDefensive, xGame.ComboInvis
85  			or xGame.ComboSpeed).
86  		 
87  	        */
88  	        protected
89  	         String Type =
90  	       	
91  	        		null
92  	        	;
93  	
94  	        
95  	        
96   		/**
97           * 
98  			Holds the class name of the desired adrenaline combo (can be
99  			xGame.ComboBerserk, xGame.ComboDefensive, xGame.ComboInvis
100 			or xGame.ComboSpeed).
101 		 
102          */
103         public String getType()
104  	
105 	        {
106 	            return
107 	        	 Type;
108 	        }
109 	        
110 	        
111 	        
112  		
113  		/**
114          * 
115 			Holds the class name of the desired adrenaline combo (can be
116 			xGame.ComboBerserk, xGame.ComboDefensive, xGame.ComboInvis
117 			or xGame.ComboSpeed).
118 		 
119          */
120         public Combo 
121         setType(String Type)
122  	
123 			{
124 				this.Type = Type;
125 				return this;
126 			}
127 		
128  	    public String toString() {
129             return toMessage();
130         }
131  	
132  		public String toHtmlString() {
133 			return super.toString() + "[<br/>" +
134             	
135             	"<b>Type</b> = " +
136             	String.valueOf(getType()
137  	) +
138             	" <br/> " +
139             	 
140             	"<br/>]"
141             ;
142 		}
143  	
144 		public String toMessage() {
145      		StringBuffer buf = new StringBuffer();
146      		buf.append("COMBO");
147      		
148 						if (Type != null) {
149 							buf.append(" {Type " + Type + "}");
150 						}
151 					
152    			return buf.toString();
153    		}
154  	
155  		// --- Extra Java from XML BEGIN (extra/code/java)
156         	
157 		// --- Extra Java from XML END (extra/code/java)
158  	
159 	        }
160