1 package cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages;
2
3
4 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.*;
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31 public class PlayerCompositeImpl
32 extends Player
33 {
34
35
36
37
38
39
40 public PlayerCompositeImpl()
41 {
42 }
43
44
45
46
47
48
49
50
51
52 public PlayerCompositeImpl(
53 PlayerLocalImpl partLocal,
54 PlayerSharedImpl partShared,
55 PlayerStaticImpl partStatic
56 ) {
57 this.partLocal = partLocal;
58 this.partShared = partShared;
59 this.partStatic = partStatic;
60 }
61
62
63
64
65
66
67 public PlayerCompositeImpl(PlayerCompositeImpl original) {
68 this.partLocal = partLocal;
69 this.partShared = partShared;
70 this.partStatic = partStatic;
71 }
72
73
74 @Override
75 public void setSimTime(long SimTime) {
76 super.setSimTime(SimTime);
77 }
78
79
80 protected
81 PlayerStaticImpl
82 partStatic;
83
84 @Override
85 public PlayerStatic getStatic() {
86 return partStatic;
87 }
88
89 protected
90 PlayerLocalImpl
91 partLocal;
92
93 @Override
94 public PlayerLocal getLocal() {
95 return partLocal;
96 }
97
98 PlayerSharedImpl
99 partShared;
100
101 @Override
102 public PlayerShared getShared() {
103 return partShared;
104 }
105
106
107
108 @Override
109
110
111
112
113 public UnrealId getId()
114 {
115 return
116
117 partStatic.
118 getId()
119 ;
120 }
121
122 @Override
123
124
125
126
127
128
129
130 public String getJmx()
131 {
132 return
133
134 partLocal.
135 getJmx()
136 ;
137 }
138
139 @Override
140
141
142
143
144
145
146 public String getName()
147 {
148 return
149
150 partShared.
151 getName()
152 ;
153 }
154
155 @Override
156
157
158
159
160
161
162 public String getAction()
163 {
164 return
165
166 partShared.
167 getAction()
168 ;
169 }
170
171 @Override
172
173
174
175
176
177
178 public boolean isVisible()
179 {
180 return
181
182 partLocal.
183 isVisible()
184 ;
185 }
186
187 @Override
188
189
190
191
192
193
194 public Rotation getRotation()
195 {
196 return
197
198 partShared.
199 getRotation()
200 ;
201 }
202
203 @Override
204
205
206
207
208
209
210 public Location getLocation()
211 {
212 return
213
214 partShared.
215 getLocation()
216 ;
217 }
218
219 @Override
220
221
222
223
224
225
226
227 public Velocity getVelocity()
228 {
229 return
230
231 partShared.
232 getVelocity()
233 ;
234 }
235
236 @Override
237
238
239
240
241
242
243
244 public int getTeam()
245 {
246 return
247
248 partShared.
249 getTeam()
250 ;
251 }
252
253 @Override
254
255
256
257
258
259
260
261
262
263
264 public String getWeapon()
265 {
266 return
267
268 partShared.
269 getWeapon()
270 ;
271 }
272
273 @Override
274
275
276
277
278
279
280 public boolean isCrouched()
281 {
282 return
283
284 partShared.
285 isCrouched()
286 ;
287 }
288
289 @Override
290
291
292
293
294
295
296
297 public int getFiring()
298 {
299 return
300
301 partShared.
302 getFiring()
303 ;
304 }
305
306 @Override
307
308
309
310
311
312
313 public String getEmotLeft()
314 {
315 return
316
317 partShared.
318 getEmotLeft()
319 ;
320 }
321
322 @Override
323
324
325
326
327
328
329 public String getEmotCenter()
330 {
331 return
332
333 partShared.
334 getEmotCenter()
335 ;
336 }
337
338 @Override
339
340
341
342
343
344
345 public String getEmotRight()
346 {
347 return
348
349 partShared.
350 getEmotRight()
351 ;
352 }
353
354 @Override
355
356
357
358
359
360
361 public String getBubble()
362 {
363 return
364
365 partShared.
366 getBubble()
367 ;
368 }
369
370 @Override
371
372
373
374
375
376
377 public String getAnim()
378 {
379 return
380
381 partShared.
382 getAnim()
383 ;
384 }
385
386
387 public String toString() {
388 return
389 super.toString() + "[" +
390
391 "Static = " + String.valueOf(partStatic) + " | Local = " + String.valueOf(partLocal) + " | Shared = " + String.valueOf(partShared) + " ]" +
392
393 "]";
394 }
395
396
397 public String toHtmlString() {
398 return super.toString() + "[<br/>" +
399
400 "Static = " + String.valueOf(partStatic) + " <br/> Local = " + String.valueOf(partLocal) + " <br/> Shared = " + String.valueOf(partShared) + " ]" +
401
402 "<br/>]";
403 }
404
405
406
407
408
409
410
411
412
413
414 }
415