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 THESE FILES INSTEAD OF THIS ONE.
7   
8               IMPORTANT END !!!
9               */
10              package
11              cz.cuni.amis.pogamut.udk.communication.messages.gbcommands;
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  		Works only in BotScenario GameType. Bot tries to use Factory - he needs to be at factory position + he needs to have enough adrenaline to trigger the factory. Game responds with USED (FactoryUsed) message. The item will be spawned at bot's location.
35  	
36                            Corresponding GameBots command is
37                            USE.
38                        
39               */
40              
41              public class
42              FactoryUse extends
43          CommandMessage
44  
45              {
46              
47              /**
48                Creates new instance of command FactoryUse.
49                
50  		Works only in BotScenario GameType. Bot tries to use Factory - he needs to be at factory position + he needs to have enough adrenaline to trigger the factory. Game responds with USED (FactoryUsed) message. The item will be spawned at bot's location.
51  	Corresponding GameBots message for this command is
52                USE.
53                */
54               public FactoryUse(
55                  ) {
56                      
57                  }
58  
59              
60  
61              /////// Properties BEGIN
62              
63              /////// Properties END
64  
65              /////// Extra Java code BEGIN
66  
67              	/////// Additional code from xslt BEGIN
68              		
69  
70  
71              	/////// Additional code from xslt END
72  
73  	            /////// Extra Java from XML BEGIN
74              		
75              	/////// Extra Java from XML END
76  
77              /////// Extra Java code END
78  
79              
80  
81              /**
82                * Cloning constructor.
83                */
84               public FactoryUse(FactoryUse original) {
85                  
86               }
87  
88               
89  
90                   
91              public String toString() {
92                  return
93                  
94                      	toMessage();
95                      
96               }
97  
98               public String toHtmlString() {
99                  return super.toString() +
100              "";
101              }
102 
103              
104              
105              	 public String toMessage() {
106               		StringBuffer buf = new StringBuffer();
107               		buf.append("USE");
108               		
109             		return buf.toString();
110             }
111              
112              }
113 
114