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 starts shooting.
35
36 Corresponding GameBots message is
37 SHOOT.
38
39 */
40
41 public class
42 ShootingStarted
43 extends GBEvent
44
45 implements IWorldEvent, IWorldChangeEvent
46
47 {
48
49 /**
50 Creates new instance of command ShootingStarted.
51
52 Asynchronous message. Sent when the observed player starts shooting.
53 Corresponding GameBots message for this command is
54 .
55 @param Alt
56 Whether using the alternate firing mode.
57
58 */
59 public ShootingStarted(
60 boolean Alt) {
61
62 this.Alt = Alt;
63
64 }
65
66
67 /** Example how the message looks like - used during parser tests. */
68 public static final String PROTOTYPE =
69 "SHOOT {Alt False}";
70
71
72 /////// Properties BEGIN
73
74 /**
75
76 Whether using the alternate firing mode.
77 */
78 protected
79 boolean Alt =
80 false;
81
82
83 /**
84
85 Whether using the alternate firing mode.
86 */
87 public
88 boolean isAlt() {
89 return
90 Alt;
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 ShootingStarted(ShootingStarted original) {
122
123 this.Alt=original.Alt;
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 ShootingStarted() {
132 }
133
134
135
136 public String toString() {
137 return
138
139 super.toString() + " | " +
140
141 "Alt = " +
142 String.valueOf(Alt) + " | " +
143 "";
144
145 }
146
147 public String toHtmlString() {
148 return super.toString() +
149
150 "<b>Alt</b> : " +
151 String.valueOf(Alt) +
152 " <br/> " +
153 "";
154 }
155
156
157
158 }
159
160