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 public class NavPointStaticImpl
28 extends
29 NavPointStatic
30 {
31
32
33
34
35
36
37 public NavPointStaticImpl()
38 {
39 }
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218 public NavPointStaticImpl(
219 UnrealId Id, UnrealId Item, ItemType ItemClass, UnrealId Mover, Vector3d LiftOffset, boolean LiftJumpExit, boolean NoDoubleJump, boolean InvSpot, boolean PlayerStart, int TeamNumber, boolean DomPoint, boolean Door, boolean LiftCenter, boolean LiftExit, boolean AIMarker, boolean JumpSpot, boolean JumpPad, boolean JumpDest, boolean Teleporter, Rotation Rotation, boolean RoamingSpot, boolean SnipingSpot, Item ItemInstance, Map<UnrealId, NavPointNeighbourLink> OutgoingEdges, Map<UnrealId, NavPointNeighbourLink> IncomingEdges, String PreferedWeapon
220 ) {
221
222 this.Id = Id;
223
224 this.Item = Item;
225
226 this.ItemClass = ItemClass;
227
228 this.Mover = Mover;
229
230 this.LiftOffset = LiftOffset;
231
232 this.LiftJumpExit = LiftJumpExit;
233
234 this.NoDoubleJump = NoDoubleJump;
235
236 this.InvSpot = InvSpot;
237
238 this.PlayerStart = PlayerStart;
239
240 this.TeamNumber = TeamNumber;
241
242 this.DomPoint = DomPoint;
243
244 this.Door = Door;
245
246 this.LiftCenter = LiftCenter;
247
248 this.LiftExit = LiftExit;
249
250 this.AIMarker = AIMarker;
251
252 this.JumpSpot = JumpSpot;
253
254 this.JumpPad = JumpPad;
255
256 this.JumpDest = JumpDest;
257
258 this.Teleporter = Teleporter;
259
260 this.Rotation = Rotation;
261
262 this.RoamingSpot = RoamingSpot;
263
264 this.SnipingSpot = SnipingSpot;
265
266 this.ItemInstance = ItemInstance;
267
268 this.OutgoingEdges = OutgoingEdges;
269
270 this.IncomingEdges = IncomingEdges;
271
272 this.PreferedWeapon = PreferedWeapon;
273
274 }
275
276
277
278
279
280
281 public NavPointStaticImpl(NavPoint original) {
282
283 this.Id = original.getId()
284 ;
285
286 this.Item = original.getItem()
287 ;
288
289 this.ItemClass = original.getItemClass()
290 ;
291
292 this.Mover = original.getMover()
293 ;
294
295 this.LiftOffset = original.getLiftOffset()
296 ;
297
298 this.LiftJumpExit = original.isLiftJumpExit()
299 ;
300
301 this.NoDoubleJump = original.isNoDoubleJump()
302 ;
303
304 this.InvSpot = original.isInvSpot()
305 ;
306
307 this.PlayerStart = original.isPlayerStart()
308 ;
309
310 this.TeamNumber = original.getTeamNumber()
311 ;
312
313 this.DomPoint = original.isDomPoint()
314 ;
315
316 this.Door = original.isDoor()
317 ;
318
319 this.LiftCenter = original.isLiftCenter()
320 ;
321
322 this.LiftExit = original.isLiftExit()
323 ;
324
325 this.AIMarker = original.isAIMarker()
326 ;
327
328 this.JumpSpot = original.isJumpSpot()
329 ;
330
331 this.JumpPad = original.isJumpPad()
332 ;
333
334 this.JumpDest = original.isJumpDest()
335 ;
336
337 this.Teleporter = original.isTeleporter()
338 ;
339
340 this.Rotation = original.getRotation()
341 ;
342
343 this.RoamingSpot = original.isRoamingSpot()
344 ;
345
346 this.SnipingSpot = original.isSnipingSpot()
347 ;
348
349 this.ItemInstance = original.getItemInstance()
350 ;
351
352 this.OutgoingEdges = original.getOutgoingEdges()
353 ;
354
355 this.IncomingEdges = original.getIncomingEdges()
356 ;
357
358 this.PreferedWeapon = original.getPreferedWeapon()
359 ;
360
361 this.SimTime = original.getSimTime();
362 }
363
364
365
366
367
368
369 public NavPointStaticImpl(NavPointStaticImpl original) {
370
371 this.Id = original.getId()
372 ;
373
374 this.Item = original.getItem()
375 ;
376
377 this.ItemClass = original.getItemClass()
378 ;
379
380 this.Mover = original.getMover()
381 ;
382
383 this.LiftOffset = original.getLiftOffset()
384 ;
385
386 this.LiftJumpExit = original.isLiftJumpExit()
387 ;
388
389 this.NoDoubleJump = original.isNoDoubleJump()
390 ;
391
392 this.InvSpot = original.isInvSpot()
393 ;
394
395 this.PlayerStart = original.isPlayerStart()
396 ;
397
398 this.TeamNumber = original.getTeamNumber()
399 ;
400
401 this.DomPoint = original.isDomPoint()
402 ;
403
404 this.Door = original.isDoor()
405 ;
406
407 this.LiftCenter = original.isLiftCenter()
408 ;
409
410 this.LiftExit = original.isLiftExit()
411 ;
412
413 this.AIMarker = original.isAIMarker()
414 ;
415
416 this.JumpSpot = original.isJumpSpot()
417 ;
418
419 this.JumpPad = original.isJumpPad()
420 ;
421
422 this.JumpDest = original.isJumpDest()
423 ;
424
425 this.Teleporter = original.isTeleporter()
426 ;
427
428 this.Rotation = original.getRotation()
429 ;
430
431 this.RoamingSpot = original.isRoamingSpot()
432 ;
433
434 this.SnipingSpot = original.isSnipingSpot()
435 ;
436
437 this.ItemInstance = original.getItemInstance()
438 ;
439
440 this.OutgoingEdges = original.getOutgoingEdges()
441 ;
442
443 this.IncomingEdges = original.getIncomingEdges()
444 ;
445
446 this.PreferedWeapon = original.getPreferedWeapon()
447 ;
448
449 this.SimTime = original.getSimTime();
450 }
451
452
453
454
455
456
457 public NavPointStaticImpl(NavPointStatic original) {
458
459 this.Id = original.getId()
460 ;
461
462 this.Item = original.getItem()
463 ;
464
465 this.ItemClass = original.getItemClass()
466 ;
467
468 this.Mover = original.getMover()
469 ;
470
471 this.LiftOffset = original.getLiftOffset()
472 ;
473
474 this.LiftJumpExit = original.isLiftJumpExit()
475 ;
476
477 this.NoDoubleJump = original.isNoDoubleJump()
478 ;
479
480 this.InvSpot = original.isInvSpot()
481 ;
482
483 this.PlayerStart = original.isPlayerStart()
484 ;
485
486 this.TeamNumber = original.getTeamNumber()
487 ;
488
489 this.DomPoint = original.isDomPoint()
490 ;
491
492 this.Door = original.isDoor()
493 ;
494
495 this.LiftCenter = original.isLiftCenter()
496 ;
497
498 this.LiftExit = original.isLiftExit()
499 ;
500
501 this.AIMarker = original.isAIMarker()
502 ;
503
504 this.JumpSpot = original.isJumpSpot()
505 ;
506
507 this.JumpPad = original.isJumpPad()
508 ;
509
510 this.JumpDest = original.isJumpDest()
511 ;
512
513 this.Teleporter = original.isTeleporter()
514 ;
515
516 this.Rotation = original.getRotation()
517 ;
518
519 this.RoamingSpot = original.isRoamingSpot()
520 ;
521
522 this.SnipingSpot = original.isSnipingSpot()
523 ;
524
525 this.ItemInstance = original.getItemInstance()
526 ;
527
528 this.OutgoingEdges = original.getOutgoingEdges()
529 ;
530
531 this.IncomingEdges = original.getIncomingEdges()
532 ;
533
534 this.PreferedWeapon = original.getPreferedWeapon()
535 ;
536
537 }
538
539
540 @Override
541 public void setSimTime(long SimTime) {
542 super.setSimTime(SimTime);
543 }
544
545 @Override
546 public
547 NavPointStaticImpl clone() {
548 return new
549 NavPointStaticImpl(this);
550 }
551
552
553
554
555
556
557
558
559 protected
560 UnrealId Id =
561 null;
562
563
564
565
566
567
568 public UnrealId getId()
569 {
570 return Id;
571 }
572
573
574
575
576
577
578
579
580 protected
581 UnrealId Item =
582 null;
583
584
585
586
587
588
589
590 public UnrealId getItem()
591 {
592 return Item;
593 }
594
595
596
597
598
599
600
601 protected
602 ItemType ItemClass =
603 null;
604
605
606
607
608
609
610 public ItemType getItemClass()
611 {
612 return ItemClass;
613 }
614
615
616
617
618
619
620
621 protected
622 UnrealId Mover =
623 null;
624
625
626
627
628
629
630 public UnrealId getMover()
631 {
632 return Mover;
633 }
634
635
636
637
638
639
640
641 protected
642 Vector3d LiftOffset =
643 null;
644
645
646
647
648
649
650 public Vector3d getLiftOffset()
651 {
652 return LiftOffset;
653 }
654
655
656
657
658
659
660
661 protected
662 boolean LiftJumpExit =
663 false;
664
665
666
667
668
669
670 public boolean isLiftJumpExit()
671 {
672 return LiftJumpExit;
673 }
674
675
676
677
678
679
680
681 protected
682 boolean NoDoubleJump =
683 false;
684
685
686
687
688
689
690 public boolean isNoDoubleJump()
691 {
692 return NoDoubleJump;
693 }
694
695
696
697
698
699
700
701 protected
702 boolean InvSpot =
703 false;
704
705
706
707
708
709
710 public boolean isInvSpot()
711 {
712 return InvSpot;
713 }
714
715
716
717
718
719
720
721 protected
722 boolean PlayerStart =
723 false;
724
725
726
727
728
729
730 public boolean isPlayerStart()
731 {
732 return PlayerStart;
733 }
734
735
736
737
738
739
740
741 protected
742 int TeamNumber =
743 0;
744
745
746
747
748
749
750 public int getTeamNumber()
751 {
752 return TeamNumber;
753 }
754
755
756
757
758
759 protected
760 boolean DomPoint =
761 false;
762
763
764
765
766 public boolean isDomPoint()
767 {
768 return DomPoint;
769 }
770
771
772
773
774
775
776
777 protected
778 boolean Door =
779 false;
780
781
782
783
784
785
786 public boolean isDoor()
787 {
788 return Door;
789 }
790
791
792
793
794
795
796
797 protected
798 boolean LiftCenter =
799 false;
800
801
802
803
804
805
806 public boolean isLiftCenter()
807 {
808 return LiftCenter;
809 }
810
811
812
813
814
815
816
817 protected
818 boolean LiftExit =
819 false;
820
821
822
823
824
825
826 public boolean isLiftExit()
827 {
828 return LiftExit;
829 }
830
831
832
833
834
835
836
837 protected
838 boolean AIMarker =
839 false;
840
841
842
843
844
845
846 public boolean isAIMarker()
847 {
848 return AIMarker;
849 }
850
851
852
853
854
855
856
857 protected
858 boolean JumpSpot =
859 false;
860
861
862
863
864
865
866 public boolean isJumpSpot()
867 {
868 return JumpSpot;
869 }
870
871
872
873
874
875
876
877 protected
878 boolean JumpPad =
879 false;
880
881
882
883
884
885
886 public boolean isJumpPad()
887 {
888 return JumpPad;
889 }
890
891
892
893
894
895
896
897 protected
898 boolean JumpDest =
899 false;
900
901
902
903
904
905
906 public boolean isJumpDest()
907 {
908 return JumpDest;
909 }
910
911
912
913
914
915
916
917 protected
918 boolean Teleporter =
919 false;
920
921
922
923
924
925
926 public boolean isTeleporter()
927 {
928 return Teleporter;
929 }
930
931
932
933
934
935
936
937
938 protected
939 Rotation Rotation =
940 null;
941
942
943
944
945
946
947
948 public Rotation getRotation()
949 {
950 return Rotation;
951 }
952
953
954
955
956
957
958
959
960 protected
961 boolean RoamingSpot =
962 false;
963
964
965
966
967
968
969
970 public boolean isRoamingSpot()
971 {
972 return RoamingSpot;
973 }
974
975
976
977
978
979 protected
980 boolean SnipingSpot =
981 false;
982
983
984
985
986 public boolean isSnipingSpot()
987 {
988 return SnipingSpot;
989 }
990
991
992
993
994
995 protected
996 Item ItemInstance =
997 null;
998
999
1000
1001
1002 public Item getItemInstance()
1003 {
1004 return ItemInstance;
1005 }
1006
1007
1008
1009
1010
1011 protected
1012 Map<UnrealId, NavPointNeighbourLink> OutgoingEdges =
1013 new HashMap<UnrealId, NavPointNeighbourLink>();
1014
1015
1016
1017
1018 public Map<UnrealId, NavPointNeighbourLink> getOutgoingEdges()
1019 {
1020 return OutgoingEdges;
1021 }
1022
1023
1024
1025
1026
1027 protected
1028 Map<UnrealId, NavPointNeighbourLink> IncomingEdges =
1029 new HashMap<UnrealId, NavPointNeighbourLink>();
1030
1031
1032
1033
1034 public Map<UnrealId, NavPointNeighbourLink> getIncomingEdges()
1035 {
1036 return IncomingEdges;
1037 }
1038
1039
1040
1041
1042
1043
1044
1045
1046 protected
1047 String PreferedWeapon =
1048 null;
1049
1050
1051
1052
1053
1054
1055
1056 public String getPreferedWeapon()
1057 {
1058 return PreferedWeapon;
1059 }
1060
1061
1062
1063 public static class NavPointStaticUpdate
1064 implements IStaticWorldObjectUpdatedEvent
1065 {
1066
1067 private NavPointStatic data;
1068 private long time;
1069
1070 public NavPointStaticUpdate
1071 (NavPointStatic source, long time)
1072 {
1073 this.data = source;
1074 this.time = time;
1075 }
1076
1077
1078
1079
1080 @Override
1081 public long getSimTime() {
1082 return time;
1083 }
1084
1085 @Override
1086 public WorldObjectId getId() {
1087 return data.getId();
1088 }
1089
1090 @Override
1091 public IWorldObjectUpdateResult<IStaticWorldObject> update(
1092 IStaticWorldObject object) {
1093 if ( object == null)
1094 {
1095 data = new NavPointStaticImpl(data);
1096 return new IWorldObjectUpdateResult.WorldObjectUpdateResult<IStaticWorldObject>(IWorldObjectUpdateResult.Result.CREATED, data);
1097 }
1098
1099 if ( object instanceof NavPointStaticImpl)
1100 {
1101 NavPointStaticImpl orig = (NavPointStaticImpl)object;
1102
1103 if ( data.isDifferentFrom(orig) )
1104 {
1105
1106
1107 System.out.println("!!!!!ERROR!!!!!! in static object modification. Object class : NavPointStaticImpl to see which property was different see !!!!PROPERTY UPDATE ERROR!!!!");
1108 }
1109 return new IWorldObjectUpdateResult.WorldObjectUpdateResult<IStaticWorldObject>(IWorldObjectUpdateResult.Result.SAME, data);
1110 }
1111 throw new PogamutException("Unexpected object type for update, NavPointStaticImpl expected not class " + object.getClass().getSimpleName() + ".", this);
1112 }
1113 }
1114
1115
1116
1117 @Override
1118 public boolean isDifferentFrom(IStaticWorldObject other)
1119 {
1120 if (other == null)
1121 {
1122 return true;
1123 }
1124 else if (other == this)
1125 {
1126 return false;
1127 }
1128 else
1129 {
1130 NavPointStatic obj = (NavPointStatic) other;
1131
1132
1133 if ( !(
1134 AdvancedEquals.equalsOrNull(this.getId()
1135 , obj.getId()
1136 )
1137 ) )
1138 {
1139 System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Id on object class NavPointStatic");
1140 return true;
1141 }
1142
1143 if ( !(
1144 AdvancedEquals.equalsOrNull(this.getItem()
1145 , obj.getItem()
1146 )
1147 ) )
1148 {
1149 System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Item on object class NavPointStatic");
1150 return true;
1151 }
1152
1153 if ( !(
1154 AdvancedEquals.equalsOrNull(this.getItemClass()
1155 , obj.getItemClass()
1156 )
1157 ) )
1158 {
1159 System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property ItemClass on object class NavPointStatic");
1160 return true;
1161 }
1162
1163 if ( !(
1164 AdvancedEquals.equalsOrNull(this.getMover()
1165 , obj.getMover()
1166 )
1167 ) )
1168 {
1169 System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Mover on object class NavPointStatic");
1170 return true;
1171 }
1172
1173 if ( !(
1174 AdvancedEquals.equalsOrNull(this.getLiftOffset()
1175 , obj.getLiftOffset()
1176 )
1177 ) )
1178 {
1179 System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property LiftOffset on object class NavPointStatic");
1180 return true;
1181 }
1182
1183 if ( !(this.isLiftJumpExit()
1184
1185 == obj.isLiftJumpExit()
1186 ) )
1187 {
1188 System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property LiftJumpExit on object class NavPointStatic");
1189 return true;
1190 }
1191
1192 if ( !(this.isNoDoubleJump()
1193
1194 == obj.isNoDoubleJump()
1195 ) )
1196 {
1197 System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property NoDoubleJump on object class NavPointStatic");
1198 return true;
1199 }
1200
1201 if ( !(this.isInvSpot()
1202
1203 == obj.isInvSpot()
1204 ) )
1205 {
1206 System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property InvSpot on object class NavPointStatic");
1207 return true;
1208 }
1209
1210 if ( !(this.isPlayerStart()
1211
1212 == obj.isPlayerStart()
1213 ) )
1214 {
1215 System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property PlayerStart on object class NavPointStatic");
1216 return true;
1217 }
1218
1219 if ( !(this.getTeamNumber()
1220
1221 == obj.getTeamNumber()
1222 ) )
1223 {
1224 System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property TeamNumber on object class NavPointStatic");
1225 return true;
1226 }
1227
1228 if ( !(this.isDomPoint()
1229
1230 == obj.isDomPoint()
1231 ) )
1232 {
1233 System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property DomPoint on object class NavPointStatic");
1234 return true;
1235 }
1236
1237 if ( !(this.isDoor()
1238
1239 == obj.isDoor()
1240 ) )
1241 {
1242 System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Door on object class NavPointStatic");
1243 return true;
1244 }
1245
1246 if ( !(this.isLiftCenter()
1247
1248 == obj.isLiftCenter()
1249 ) )
1250 {
1251 System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property LiftCenter on object class NavPointStatic");
1252 return true;
1253 }
1254
1255 if ( !(this.isLiftExit()
1256
1257 == obj.isLiftExit()
1258 ) )
1259 {
1260 System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property LiftExit on object class NavPointStatic");
1261 return true;
1262 }
1263
1264 if ( !(this.isAIMarker()
1265
1266 == obj.isAIMarker()
1267 ) )
1268 {
1269 System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property AIMarker on object class NavPointStatic");
1270 return true;
1271 }
1272
1273 if ( !(this.isJumpSpot()
1274
1275 == obj.isJumpSpot()
1276 ) )
1277 {
1278 System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property JumpSpot on object class NavPointStatic");
1279 return true;
1280 }
1281
1282 if ( !(this.isJumpPad()
1283
1284 == obj.isJumpPad()
1285 ) )
1286 {
1287 System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property JumpPad on object class NavPointStatic");
1288 return true;
1289 }
1290
1291 if ( !(this.isJumpDest()
1292
1293 == obj.isJumpDest()
1294 ) )
1295 {
1296 System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property JumpDest on object class NavPointStatic");
1297 return true;
1298 }
1299
1300 if ( !(this.isTeleporter()
1301
1302 == obj.isTeleporter()
1303 ) )
1304 {
1305 System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Teleporter on object class NavPointStatic");
1306 return true;
1307 }
1308
1309 if ( !(
1310 AdvancedEquals.equalsOrNull(this.getRotation()
1311 , obj.getRotation()
1312 )
1313 ) )
1314 {
1315 System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Rotation on object class NavPointStatic");
1316 return true;
1317 }
1318
1319 if ( !(this.isRoamingSpot()
1320
1321 == obj.isRoamingSpot()
1322 ) )
1323 {
1324 System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property RoamingSpot on object class NavPointStatic");
1325 return true;
1326 }
1327
1328 if ( !(this.isSnipingSpot()
1329
1330 == obj.isSnipingSpot()
1331 ) )
1332 {
1333 System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property SnipingSpot on object class NavPointStatic");
1334 return true;
1335 }
1336
1337 if ( !(
1338 AdvancedEquals.equalsOrNull(this.getItemInstance()
1339 , obj.getItemInstance()
1340 )
1341 ) )
1342 {
1343 System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property ItemInstance on object class NavPointStatic");
1344 return true;
1345 }
1346
1347
1348
1349
1350
1351 if ( !(
1352 AdvancedEquals.equalsOrNull(this.getPreferedWeapon()
1353 , obj.getPreferedWeapon()
1354 )
1355 ) )
1356 {
1357 System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property PreferedWeapon on object class NavPointStatic");
1358 return true;
1359 }
1360
1361 }
1362 return false;
1363 }
1364
1365
1366 public String toString() {
1367 return
1368 super.toString() + "[" +
1369
1370 "Id = " + String.valueOf(getId()
1371 ) + " | " +
1372
1373 "Item = " + String.valueOf(getItem()
1374 ) + " | " +
1375
1376 "ItemClass = " + String.valueOf(getItemClass()
1377 ) + " | " +
1378
1379 "Mover = " + String.valueOf(getMover()
1380 ) + " | " +
1381
1382 "LiftOffset = " + String.valueOf(getLiftOffset()
1383 ) + " | " +
1384
1385 "LiftJumpExit = " + String.valueOf(isLiftJumpExit()
1386 ) + " | " +
1387
1388 "NoDoubleJump = " + String.valueOf(isNoDoubleJump()
1389 ) + " | " +
1390
1391 "InvSpot = " + String.valueOf(isInvSpot()
1392 ) + " | " +
1393
1394 "PlayerStart = " + String.valueOf(isPlayerStart()
1395 ) + " | " +
1396
1397 "TeamNumber = " + String.valueOf(getTeamNumber()
1398 ) + " | " +
1399
1400 "DomPoint = " + String.valueOf(isDomPoint()
1401 ) + " | " +
1402
1403 "Door = " + String.valueOf(isDoor()
1404 ) + " | " +
1405
1406 "LiftCenter = " + String.valueOf(isLiftCenter()
1407 ) + " | " +
1408
1409 "LiftExit = " + String.valueOf(isLiftExit()
1410 ) + " | " +
1411
1412 "AIMarker = " + String.valueOf(isAIMarker()
1413 ) + " | " +
1414
1415 "JumpSpot = " + String.valueOf(isJumpSpot()
1416 ) + " | " +
1417
1418 "JumpPad = " + String.valueOf(isJumpPad()
1419 ) + " | " +
1420
1421 "JumpDest = " + String.valueOf(isJumpDest()
1422 ) + " | " +
1423
1424 "Teleporter = " + String.valueOf(isTeleporter()
1425 ) + " | " +
1426
1427 "Rotation = " + String.valueOf(getRotation()
1428 ) + " | " +
1429
1430 "RoamingSpot = " + String.valueOf(isRoamingSpot()
1431 ) + " | " +
1432
1433 "SnipingSpot = " + String.valueOf(isSnipingSpot()
1434 ) + " | " +
1435
1436 "PreferedWeapon = " + String.valueOf(getPreferedWeapon()
1437 ) + " | " +
1438
1439 "]";
1440 }
1441
1442
1443 public String toHtmlString() {
1444 return super.toString() + "[<br/>" +
1445
1446 "<b>Id</b> = " + String.valueOf(getId()
1447 ) + " <br/> " +
1448
1449 "<b>Item</b> = " + String.valueOf(getItem()
1450 ) + " <br/> " +
1451
1452 "<b>ItemClass</b> = " + String.valueOf(getItemClass()
1453 ) + " <br/> " +
1454
1455 "<b>Mover</b> = " + String.valueOf(getMover()
1456 ) + " <br/> " +
1457
1458 "<b>LiftOffset</b> = " + String.valueOf(getLiftOffset()
1459 ) + " <br/> " +
1460
1461 "<b>LiftJumpExit</b> = " + String.valueOf(isLiftJumpExit()
1462 ) + " <br/> " +
1463
1464 "<b>NoDoubleJump</b> = " + String.valueOf(isNoDoubleJump()
1465 ) + " <br/> " +
1466
1467 "<b>InvSpot</b> = " + String.valueOf(isInvSpot()
1468 ) + " <br/> " +
1469
1470 "<b>PlayerStart</b> = " + String.valueOf(isPlayerStart()
1471 ) + " <br/> " +
1472
1473 "<b>TeamNumber</b> = " + String.valueOf(getTeamNumber()
1474 ) + " <br/> " +
1475
1476 "<b>DomPoint</b> = " + String.valueOf(isDomPoint()
1477 ) + " <br/> " +
1478
1479 "<b>Door</b> = " + String.valueOf(isDoor()
1480 ) + " <br/> " +
1481
1482 "<b>LiftCenter</b> = " + String.valueOf(isLiftCenter()
1483 ) + " <br/> " +
1484
1485 "<b>LiftExit</b> = " + String.valueOf(isLiftExit()
1486 ) + " <br/> " +
1487
1488 "<b>AIMarker</b> = " + String.valueOf(isAIMarker()
1489 ) + " <br/> " +
1490
1491 "<b>JumpSpot</b> = " + String.valueOf(isJumpSpot()
1492 ) + " <br/> " +
1493
1494 "<b>JumpPad</b> = " + String.valueOf(isJumpPad()
1495 ) + " <br/> " +
1496
1497 "<b>JumpDest</b> = " + String.valueOf(isJumpDest()
1498 ) + " <br/> " +
1499
1500 "<b>Teleporter</b> = " + String.valueOf(isTeleporter()
1501 ) + " <br/> " +
1502
1503 "<b>Rotation</b> = " + String.valueOf(getRotation()
1504 ) + " <br/> " +
1505
1506 "<b>RoamingSpot</b> = " + String.valueOf(isRoamingSpot()
1507 ) + " <br/> " +
1508
1509 "<b>SnipingSpot</b> = " + String.valueOf(isSnipingSpot()
1510 ) + " <br/> " +
1511
1512 "<b>PreferedWeapon</b> = " + String.valueOf(getPreferedWeapon()
1513 ) + " <br/> " +
1514
1515 "<br/>]";
1516 }
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537 public void setItemInstance(Item item) {
1538 this.ItemInstance = item;
1539 if (item != null) {
1540 this.Item = item.getId();
1541 }
1542 }
1543
1544
1545
1546 }
1547