1
2
3
4
5
6
7
8
9
10
11 package cz.cuni.amis.pogamut.udk.communication.messages.gbinfomessages;
12
13 import java.util.*;
14 import javax.vecmath.*;
15 import cz.cuni.amis.pogamut.base.communication.messages.*;
16 import cz.cuni.amis.pogamut.base.communication.worldview.*;
17 import cz.cuni.amis.pogamut.base.communication.worldview.event.*;
18 import cz.cuni.amis.pogamut.base.communication.worldview.object.*;
19 import cz.cuni.amis.pogamut.base.communication.translator.event.*;
20 import cz.cuni.amis.pogamut.base3d.worldview.object.*;
21 import cz.cuni.amis.pogamut.base3d.worldview.object.event.*;
22 import cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId;
23 import cz.cuni.amis.pogamut.udk.communication.messages.*;
24 import cz.cuni.amis.pogamut.udk.communication.worldview.objects.*;
25 import cz.cuni.amis.pogamut.udk.communication.translator.itemdescriptor.*;
26 import cz.cuni.amis.pogamut.udk.communication.messages.ItemType.Category;
27 import cz.cuni.amis.utils.exception.*;
28 import cz.cuni.amis.pogamut.base.communication.translator.event.IWorldObjectUpdateResult.Result;
29 import cz.cuni.amis.utils.SafeEquals;
30 import cz.cuni.amis.pogamut.multi.communication.worldview.object.*;
31
32
33
34
35
36 public class InfoMessages {
37 public static final String[] PROTOTYPES =
38 new String[]{
39 null
40 ,Trigger.PROTOTYPE,GameResumed.PROTOTYPE,Self.PROTOTYPE,MapChange.PROTOTYPE,MyInventoryEnd.PROTOTYPE,WeaponUpdate.PROTOTYPE,FallEdge.PROTOTYPE,HearNoise.PROTOTYPE,PlayerListStart.PROTOTYPE,Mutator.PROTOTYPE,NavPointNeighbourLinkStart.PROTOTYPE,EnteredVehicle.PROTOTYPE,MapListStart.PROTOTYPE,MoverListEnd.PROTOTYPE,PathListStart.PROTOTYPE,Landed.PROTOTYPE,ItemCategory.PROTOTYPE,ItemListEnd.PROTOTYPE,LostChild.PROTOTYPE,MutatorListStart.PROTOTYPE,HelloObserverHandshake.PROTOTYPE,FlagInfo.PROTOTYPE,MapFinished.PROTOTYPE,LockedVehicle.PROTOTYPE,PlayerListEnd.PROTOTYPE,ItemListStart.PROTOTYPE,Spawn.PROTOTYPE,NavPointNeighbourLinkEnd.PROTOTYPE,InitedMessage.PROTOTYPE,ShootingStarted.PROTOTYPE,ExitedVehicle.PROTOTYPE,PathList.PROTOTYPE,EndMessage.PROTOTYPE,HelloBotHandshake.PROTOTYPE,HearPickup.PROTOTYPE,TeamScore.PROTOTYPE,Reachable.PROTOTYPE,AutoTraceRay.PROTOTYPE,PlayerKilled.PROTOTYPE,ItemPickedUp.PROTOTYPE,PlayerJoinsGame.PROTOTYPE,AddInventoryMsg.PROTOTYPE,PasswdOk.PROTOTYPE,PlayerDamaged.PROTOTYPE,Password.PROTOTYPE,Mover.PROTOTYPE,ItemCategoryEnd.PROTOTYPE,TeamChat.PROTOTYPE,MutatorListEnd.PROTOTYPE,ChangedWeapon.PROTOTYPE,Thrown.PROTOTYPE,ConfigChange.PROTOTYPE,FactoryUsed.PROTOTYPE,Bumped.PROTOTYPE,TeamChanged.PROTOTYPE,RecordingEnded.PROTOTYPE,Vehicle.PROTOTYPE,NavPointNeighbourLink.PROTOTYPE,AliveMessage.PROTOTYPE,HandShakeEnd.PROTOTYPE,JumpPerformed.PROTOTYPE,MoverListStart.PROTOTYPE,PasswdWrong.PROTOTYPE,MapList.PROTOTYPE,MyInventory.PROTOTYPE,Player.PROTOTYPE,PlayerScore.PROTOTYPE,ZoneChangedBot.PROTOTYPE,BeginMessage.PROTOTYPE,VehicleListStart.PROTOTYPE,LostInventory.PROTOTYPE,WallCollision.PROTOTYPE,Item.PROTOTYPE,VehicleListEnd.PROTOTYPE,BotDamaged.PROTOTYPE,FastTraceResponse.PROTOTYPE,RecordingStarted.PROTOTYPE,ItemCategoryStart.PROTOTYPE,NavPointListEnd.PROTOTYPE,GameInfo.PROTOTYPE,IncomingProjectile.PROTOTYPE,PlayerLeft.PROTOTYPE,AdrenalineGained.PROTOTYPE,MyInventoryStart.PROTOTYPE,KeyEvent.PROTOTYPE,GlobalChat.PROTOTYPE,BotKilled.PROTOTYPE,TriggerUsed.PROTOTYPE,VolumeChanged.PROTOTYPE,MapListEnd.PROTOTYPE,HelloControlServerHandshake.PROTOTYPE,Pong.PROTOTYPE,NavPoint.PROTOTYPE,ObjectSelected.PROTOTYPE,PathListEnd.PROTOTYPE,NavPointListStart.PROTOTYPE,GamePaused.PROTOTYPE,TraceResponse.PROTOTYPE,ShootingStopped.PROTOTYPE,HandShakeStart.PROTOTYPE
41 };
42
43
44 private static final Map<String,Class<? extends InfoMessage>> prototypeMap =
45 new HashMap<String,Class<? extends InfoMessage>>();
46
47
48 public static final Map<String,Class<? extends InfoMessage>> PROTOTYPE_MAP;
49
50 static {
51
52 prototypeMap.put(Trigger.PROTOTYPE, Trigger.class);
53
54 prototypeMap.put(GameResumed.PROTOTYPE, GameResumed.class);
55
56 prototypeMap.put(Self.PROTOTYPE, Self.class);
57
58 prototypeMap.put(MapChange.PROTOTYPE, MapChange.class);
59
60 prototypeMap.put(MyInventoryEnd.PROTOTYPE, MyInventoryEnd.class);
61
62 prototypeMap.put(WeaponUpdate.PROTOTYPE, WeaponUpdate.class);
63
64 prototypeMap.put(FallEdge.PROTOTYPE, FallEdge.class);
65
66 prototypeMap.put(HearNoise.PROTOTYPE, HearNoise.class);
67
68 prototypeMap.put(PlayerListStart.PROTOTYPE, PlayerListStart.class);
69
70 prototypeMap.put(Mutator.PROTOTYPE, Mutator.class);
71
72 prototypeMap.put(NavPointNeighbourLinkStart.PROTOTYPE, NavPointNeighbourLinkStart.class);
73
74 prototypeMap.put(EnteredVehicle.PROTOTYPE, EnteredVehicle.class);
75
76 prototypeMap.put(MapListStart.PROTOTYPE, MapListStart.class);
77
78 prototypeMap.put(MoverListEnd.PROTOTYPE, MoverListEnd.class);
79
80 prototypeMap.put(PathListStart.PROTOTYPE, PathListStart.class);
81
82 prototypeMap.put(Landed.PROTOTYPE, Landed.class);
83
84 prototypeMap.put(ItemCategory.PROTOTYPE, ItemCategory.class);
85
86 prototypeMap.put(ItemListEnd.PROTOTYPE, ItemListEnd.class);
87
88 prototypeMap.put(LostChild.PROTOTYPE, LostChild.class);
89
90 prototypeMap.put(MutatorListStart.PROTOTYPE, MutatorListStart.class);
91
92 prototypeMap.put(HelloObserverHandshake.PROTOTYPE, HelloObserverHandshake.class);
93
94 prototypeMap.put(FlagInfo.PROTOTYPE, FlagInfo.class);
95
96 prototypeMap.put(MapFinished.PROTOTYPE, MapFinished.class);
97
98 prototypeMap.put(LockedVehicle.PROTOTYPE, LockedVehicle.class);
99
100 prototypeMap.put(PlayerListEnd.PROTOTYPE, PlayerListEnd.class);
101
102 prototypeMap.put(ItemListStart.PROTOTYPE, ItemListStart.class);
103
104 prototypeMap.put(Spawn.PROTOTYPE, Spawn.class);
105
106 prototypeMap.put(NavPointNeighbourLinkEnd.PROTOTYPE, NavPointNeighbourLinkEnd.class);
107
108 prototypeMap.put(InitedMessage.PROTOTYPE, InitedMessage.class);
109
110 prototypeMap.put(ShootingStarted.PROTOTYPE, ShootingStarted.class);
111
112 prototypeMap.put(ExitedVehicle.PROTOTYPE, ExitedVehicle.class);
113
114 prototypeMap.put(PathList.PROTOTYPE, PathList.class);
115
116 prototypeMap.put(EndMessage.PROTOTYPE, EndMessage.class);
117
118 prototypeMap.put(HelloBotHandshake.PROTOTYPE, HelloBotHandshake.class);
119
120 prototypeMap.put(HearPickup.PROTOTYPE, HearPickup.class);
121
122 prototypeMap.put(TeamScore.PROTOTYPE, TeamScore.class);
123
124 prototypeMap.put(Reachable.PROTOTYPE, Reachable.class);
125
126 prototypeMap.put(AutoTraceRay.PROTOTYPE, AutoTraceRay.class);
127
128 prototypeMap.put(PlayerKilled.PROTOTYPE, PlayerKilled.class);
129
130 prototypeMap.put(ItemPickedUp.PROTOTYPE, ItemPickedUp.class);
131
132 prototypeMap.put(PlayerJoinsGame.PROTOTYPE, PlayerJoinsGame.class);
133
134 prototypeMap.put(AddInventoryMsg.PROTOTYPE, AddInventoryMsg.class);
135
136 prototypeMap.put(PasswdOk.PROTOTYPE, PasswdOk.class);
137
138 prototypeMap.put(PlayerDamaged.PROTOTYPE, PlayerDamaged.class);
139
140 prototypeMap.put(Password.PROTOTYPE, Password.class);
141
142 prototypeMap.put(Mover.PROTOTYPE, Mover.class);
143
144 prototypeMap.put(ItemCategoryEnd.PROTOTYPE, ItemCategoryEnd.class);
145
146 prototypeMap.put(TeamChat.PROTOTYPE, TeamChat.class);
147
148 prototypeMap.put(MutatorListEnd.PROTOTYPE, MutatorListEnd.class);
149
150 prototypeMap.put(ChangedWeapon.PROTOTYPE, ChangedWeapon.class);
151
152 prototypeMap.put(Thrown.PROTOTYPE, Thrown.class);
153
154 prototypeMap.put(ConfigChange.PROTOTYPE, ConfigChange.class);
155
156 prototypeMap.put(FactoryUsed.PROTOTYPE, FactoryUsed.class);
157
158 prototypeMap.put(Bumped.PROTOTYPE, Bumped.class);
159
160 prototypeMap.put(TeamChanged.PROTOTYPE, TeamChanged.class);
161
162 prototypeMap.put(RecordingEnded.PROTOTYPE, RecordingEnded.class);
163
164 prototypeMap.put(Vehicle.PROTOTYPE, Vehicle.class);
165
166 prototypeMap.put(NavPointNeighbourLink.PROTOTYPE, NavPointNeighbourLink.class);
167
168 prototypeMap.put(AliveMessage.PROTOTYPE, AliveMessage.class);
169
170 prototypeMap.put(HandShakeEnd.PROTOTYPE, HandShakeEnd.class);
171
172 prototypeMap.put(JumpPerformed.PROTOTYPE, JumpPerformed.class);
173
174 prototypeMap.put(MoverListStart.PROTOTYPE, MoverListStart.class);
175
176 prototypeMap.put(PasswdWrong.PROTOTYPE, PasswdWrong.class);
177
178 prototypeMap.put(MapList.PROTOTYPE, MapList.class);
179
180 prototypeMap.put(MyInventory.PROTOTYPE, MyInventory.class);
181
182 prototypeMap.put(Player.PROTOTYPE, Player.class);
183
184 prototypeMap.put(PlayerScore.PROTOTYPE, PlayerScore.class);
185
186 prototypeMap.put(ZoneChangedBot.PROTOTYPE, ZoneChangedBot.class);
187
188 prototypeMap.put(BeginMessage.PROTOTYPE, BeginMessage.class);
189
190 prototypeMap.put(VehicleListStart.PROTOTYPE, VehicleListStart.class);
191
192 prototypeMap.put(LostInventory.PROTOTYPE, LostInventory.class);
193
194 prototypeMap.put(WallCollision.PROTOTYPE, WallCollision.class);
195
196 prototypeMap.put(Item.PROTOTYPE, Item.class);
197
198 prototypeMap.put(VehicleListEnd.PROTOTYPE, VehicleListEnd.class);
199
200 prototypeMap.put(BotDamaged.PROTOTYPE, BotDamaged.class);
201
202 prototypeMap.put(FastTraceResponse.PROTOTYPE, FastTraceResponse.class);
203
204 prototypeMap.put(RecordingStarted.PROTOTYPE, RecordingStarted.class);
205
206 prototypeMap.put(ItemCategoryStart.PROTOTYPE, ItemCategoryStart.class);
207
208 prototypeMap.put(NavPointListEnd.PROTOTYPE, NavPointListEnd.class);
209
210 prototypeMap.put(GameInfo.PROTOTYPE, GameInfo.class);
211
212 prototypeMap.put(IncomingProjectile.PROTOTYPE, IncomingProjectile.class);
213
214 prototypeMap.put(PlayerLeft.PROTOTYPE, PlayerLeft.class);
215
216 prototypeMap.put(AdrenalineGained.PROTOTYPE, AdrenalineGained.class);
217
218 prototypeMap.put(MyInventoryStart.PROTOTYPE, MyInventoryStart.class);
219
220 prototypeMap.put(KeyEvent.PROTOTYPE, KeyEvent.class);
221
222 prototypeMap.put(GlobalChat.PROTOTYPE, GlobalChat.class);
223
224 prototypeMap.put(BotKilled.PROTOTYPE, BotKilled.class);
225
226 prototypeMap.put(TriggerUsed.PROTOTYPE, TriggerUsed.class);
227
228 prototypeMap.put(VolumeChanged.PROTOTYPE, VolumeChanged.class);
229
230 prototypeMap.put(MapListEnd.PROTOTYPE, MapListEnd.class);
231
232 prototypeMap.put(HelloControlServerHandshake.PROTOTYPE, HelloControlServerHandshake.class);
233
234 prototypeMap.put(Pong.PROTOTYPE, Pong.class);
235
236 prototypeMap.put(NavPoint.PROTOTYPE, NavPoint.class);
237
238 prototypeMap.put(ObjectSelected.PROTOTYPE, ObjectSelected.class);
239
240 prototypeMap.put(PathListEnd.PROTOTYPE, PathListEnd.class);
241
242 prototypeMap.put(NavPointListStart.PROTOTYPE, NavPointListStart.class);
243
244 prototypeMap.put(GamePaused.PROTOTYPE, GamePaused.class);
245
246 prototypeMap.put(TraceResponse.PROTOTYPE, TraceResponse.class);
247
248 prototypeMap.put(ShootingStopped.PROTOTYPE, ShootingStopped.class);
249
250 prototypeMap.put(HandShakeStart.PROTOTYPE, HandShakeStart.class);
251
252 PROTOTYPE_MAP = Collections.unmodifiableMap(prototypeMap);
253 }
254 }
255
256