View Javadoc

1   
2               /**
3               IMPORTANT !!!
4   
5               DO NOT EDIT THIS FILE. IT IS GENERATED FROM approriate xml file in xmlresources/gbinfomessages 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.gbinfomessages;
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  		Asynchronous message. Sent when the observed player jumps.
35      
36                            Corresponding GameBots message is
37                            JUMP.
38                        
39               */
40              
41              public class
42              JumpPerformed
43                      extends GBEvent
44                  
45  	            	implements IWorldEvent, IWorldChangeEvent
46  
47              {
48              
49              /**
50                Creates new instance of command JumpPerformed.
51                
52  		Asynchronous message. Sent when the observed player jumps.
53      Corresponding GameBots message for this command is
54                .
55                    @param DoubleJump 
56  			Whether this is a double jump.
57  		
58                */
59               public JumpPerformed(
60                  boolean DoubleJump) {
61                      
62                      this.DoubleJump = DoubleJump;
63                  
64                  }
65  
66              
67      	/** Example how the message looks like - used during parser tests. */
68      	public static final String PROTOTYPE =
69      		"JUMP {DoubleJump False}";
70      
71  
72              /////// Properties BEGIN
73              
74          /**
75          
76  			Whether this is a double jump.
77  		 */
78          protected
79           boolean DoubleJump =
80          	false;
81  
82          
83          /**
84          
85  			Whether this is a double jump.
86  		 */
87          public
88          boolean isDoubleJump() {
89              return
90           DoubleJump;
91          }
92          
93  
94          
95              /////// Properties END
96  
97              /////// Extra Java code BEGIN
98  
99              	/////// Additional code from xslt BEGIN
100             		
101        					public long getSimTime() {
102        						// NOT IMPLEMENTED FOR UDK
103        						return 0;
104        					}
105             		
106 
107 
108             	/////// Additional code from xslt END
109 
110 	            /////// Extra Java from XML BEGIN
111             		
112             	/////// Extra Java from XML END
113 
114             /////// Extra Java code END
115 
116             
117 
118             /**
119               * Cloning constructor.
120               */
121              public JumpPerformed(JumpPerformed original) {
122                 
123                      this.DoubleJump=original.DoubleJump;
124                 
125              }
126 
127              
128                  /**
129                   * Used by Yylex to create empty message then to fill it's protected fields (Yylex is in the same package).
130                   */
131 	             public JumpPerformed() {
132 	             }
133              
134 
135                  
136             public String toString() {
137                 return
138                 
139                 		super.toString() + " | " +
140                 		
141 				               "DoubleJump = " +
142 				               String.valueOf(DoubleJump) + " | " +
143 				             "";
144                 	
145              }
146 
147              public String toHtmlString() {
148                 return super.toString() +
149             
150             "<b>DoubleJump</b> : " +
151             String.valueOf(DoubleJump) +
152             " <br/> " +
153              "";
154              }
155 
156              
157              
158              }
159 
160