Freeciv-3.1: /fast/freeciv/nightly/S3_1/server/hand_gen.c Source File

Freeciv-3.1

Loading...
Searching...
No Matches
hand_gen.c
Go to the documentation of this file.
1
2 /****************************************************************************
3 * THIS FILE WAS GENERATED *
4 * Script: common/generate_packets.py *
5 * Input: common/networking/packets.def *
6 * DO NOT CHANGE THIS FILE *
7 ****************************************************************************/
8
9
10
11#ifdef HAVE_CONFIG_H
12#include <fc_config.h>
13#endif
14
15/* common */
16#include "packets.h"
17
18#include "hand_gen.h"
19
20 bool server_handle_packet(enum packet_type type, const void *packet,
21 struct player *pplayer, struct connection *pconn)
22{
23 switch (type) {
24 case PACKET_NATION_SELECT_REQ:
25 handle_nation_select_req(pconn,
26 ((const struct packet_nation_select_req *)packet)->player_no,
27 ((const struct packet_nation_select_req *)packet)->nation_no,
28 ((const struct packet_nation_select_req *)packet)->is_male,
29 ((const struct packet_nation_select_req *)packet)->name,
30 ((const struct packet_nation_select_req *)packet)->style);
31 return TRUE;
32
33 case PACKET_PLAYER_READY:
34 handle_player_ready(pplayer,
35 ((const struct packet_player_ready *)packet)->player_no,
36 ((const struct packet_player_ready *)packet)->is_ready);
37 return TRUE;
38
39 case PACKET_CHAT_MSG_REQ:
40 handle_chat_msg_req(pconn,
41 ((const struct packet_chat_msg_req *)packet)->message);
42 return TRUE;
43
44 case PACKET_CITY_SELL:
45 handle_city_sell(pplayer,
46 ((const struct packet_city_sell *)packet)->city_id16,
47 ((const struct packet_city_sell *)packet)->city_id32,
48 ((const struct packet_city_sell *)packet)->build_id);
49 return TRUE;
50
51 case PACKET_CITY_BUY:
52 handle_city_buy(pplayer,
53 ((const struct packet_city_buy *)packet)->city_id16,
54 ((const struct packet_city_buy *)packet)->city_id32);
55 return TRUE;
56
57 case PACKET_CITY_CHANGE:
58 handle_city_change(pplayer,
59 ((const struct packet_city_change *)packet)->city_id16,
60 ((const struct packet_city_change *)packet)->city_id32,
61 ((const struct packet_city_change *)packet)->production_kind,
62 ((const struct packet_city_change *)packet)->production_value);
63 return TRUE;
64
65 case PACKET_CITY_WORKLIST:
66 handle_city_worklist(pplayer,
67 ((const struct packet_city_worklist *)packet)->city_id16,
68 ((const struct packet_city_worklist *)packet)->city_id32,
69 &((const struct packet_city_worklist *)packet)->worklist);
70 return TRUE;
71
72 case PACKET_CITY_MAKE_SPECIALIST:
73 handle_city_make_specialist(pplayer,
74 ((const struct packet_city_make_specialist *)packet)->city_id16,
75 ((const struct packet_city_make_specialist *)packet)->city_id32,
76 ((const struct packet_city_make_specialist *)packet)->tile_id);
77 return TRUE;
78
79 case PACKET_CITY_MAKE_WORKER:
80 handle_city_make_worker(pplayer,
81 ((const struct packet_city_make_worker *)packet)->city_id16,
82 ((const struct packet_city_make_worker *)packet)->city_id32,
83 ((const struct packet_city_make_worker *)packet)->tile_id);
84 return TRUE;
85
86 case PACKET_CITY_CHANGE_SPECIALIST:
87 handle_city_change_specialist(pplayer,
88 ((const struct packet_city_change_specialist *)packet)->city_id16,
89 ((const struct packet_city_change_specialist *)packet)->city_id32,
90 ((const struct packet_city_change_specialist *)packet)->from,
91 ((const struct packet_city_change_specialist *)packet)->to);
92 return TRUE;
93
94 case PACKET_CITY_RENAME:
95 handle_city_rename(pplayer,
96 ((const struct packet_city_rename *)packet)->city_id16,
97 ((const struct packet_city_rename *)packet)->city_id32,
98 ((const struct packet_city_rename *)packet)->name);
99 return TRUE;
100
101 case PACKET_CITY_OPTIONS_REQ:
102 handle_city_options_req(pplayer,
103 ((const struct packet_city_options_req *)packet)->city_id16,
104 ((const struct packet_city_options_req *)packet)->city_id32,
105 ((const struct packet_city_options_req *)packet)->options);
106 return TRUE;
107
108 case PACKET_CITY_REFRESH:
109 handle_city_refresh(pplayer,
110 ((const struct packet_city_refresh *)packet)->city_id16,
111 ((const struct packet_city_refresh *)packet)->city_id32);
112 return TRUE;
113
114 case PACKET_CITY_NAME_SUGGESTION_REQ:
115 handle_city_name_suggestion_req(pplayer,
116 ((const struct packet_city_name_suggestion_req *)packet)->unit_id16,
117 ((const struct packet_city_name_suggestion_req *)packet)->unit_id32);
118 return TRUE;
119
120 case PACKET_CITY_RALLY_POINT:
121 handle_city_rally_point(pplayer, packet);
122 return TRUE;
123
124 case PACKET_WORKER_TASK:
125 handle_worker_task(pplayer, packet);
126 return TRUE;
127
128 case PACKET_PLAYER_PHASE_DONE:
129 handle_player_phase_done(pplayer,
130 ((const struct packet_player_phase_done *)packet)->turn);
131 return TRUE;
132
133 case PACKET_PLAYER_RATES:
134 handle_player_rates(pplayer,
135 ((const struct packet_player_rates *)packet)->tax,
136 ((const struct packet_player_rates *)packet)->luxury,
137 ((const struct packet_player_rates *)packet)->science);
138 return TRUE;
139
140 case PACKET_PLAYER_CHANGE_GOVERNMENT:
141 handle_player_change_government(pplayer,
142 ((const struct packet_player_change_government *)packet)->government);
143 return TRUE;
144
145 case PACKET_PLAYER_PLACE_INFRA:
146 handle_player_place_infra(pplayer,
147 ((const struct packet_player_place_infra *)packet)->tile,
148 ((const struct packet_player_place_infra *)packet)->extra);
149 return TRUE;
150
151 case PACKET_PLAYER_ATTRIBUTE_BLOCK:
152 handle_player_attribute_block(pplayer);
153 return TRUE;
154
155 case PACKET_PLAYER_ATTRIBUTE_CHUNK:
156 handle_player_attribute_chunk(pplayer, packet);
157 return TRUE;
158
159 case PACKET_PLAYER_MULTIPLIER:
160 handle_player_multiplier(pplayer,
161 ((const struct packet_player_multiplier *)packet)->count,
162 ((const struct packet_player_multiplier *)packet)->multipliers);
163 return TRUE;
164
165 case PACKET_PLAYER_RESEARCH:
166 handle_player_research(pplayer,
167 ((const struct packet_player_research *)packet)->tech);
168 return TRUE;
169
170 case PACKET_PLAYER_TECH_GOAL:
171 handle_player_tech_goal(pplayer,
172 ((const struct packet_player_tech_goal *)packet)->tech);
173 return TRUE;
174
175 case PACKET_UNIT_SSCS_SET:
176 handle_unit_sscs_set(pplayer,
177 ((const struct packet_unit_sscs_set *)packet)->unit_id16,
178 ((const struct packet_unit_sscs_set *)packet)->unit_id32,
179 ((const struct packet_unit_sscs_set *)packet)->type,
180 ((const struct packet_unit_sscs_set *)packet)->value);
181 return TRUE;
182
183 case PACKET_UNIT_ORDERS:
184 handle_unit_orders(pplayer, packet);
185 return TRUE;
186
187 case PACKET_UNIT_SERVER_SIDE_AGENT_SET:
188 handle_unit_server_side_agent_set(pplayer,
189 ((const struct packet_unit_server_side_agent_set *)packet)->unit_id16,
190 ((const struct packet_unit_server_side_agent_set *)packet)->unit_id32,
191 ((const struct packet_unit_server_side_agent_set *)packet)->agent);
192 return TRUE;
193
194 case PACKET_UNIT_ACTION_QUERY:
195 handle_unit_action_query(pconn,
196 ((const struct packet_unit_action_query *)packet)->actor_id16,
197 ((const struct packet_unit_action_query *)packet)->actor_id32,
198 ((const struct packet_unit_action_query *)packet)->target_id,
199 ((const struct packet_unit_action_query *)packet)->action_type,
200 ((const struct packet_unit_action_query *)packet)->request_kind);
201 return TRUE;
202
203 case PACKET_UNIT_TYPE_UPGRADE:
204 handle_unit_type_upgrade(pplayer,
205 ((const struct packet_unit_type_upgrade *)packet)->type);
206 return TRUE;
207
208 case PACKET_UNIT_DO_ACTION:
209 handle_unit_do_action(pplayer, packet);
210 return TRUE;
211
212 case PACKET_UNIT_GET_ACTIONS:
213 handle_unit_get_actions(pconn, packet);
214 return TRUE;
215
216 case PACKET_UNIT_CHANGE_ACTIVITY:
217 handle_unit_change_activity(pplayer,
218 ((const struct packet_unit_change_activity *)packet)->unit_id16,
219 ((const struct packet_unit_change_activity *)packet)->unit_id32,
220 ((const struct packet_unit_change_activity *)packet)->activity,
221 ((const struct packet_unit_change_activity *)packet)->target);
222 return TRUE;
223
224 case PACKET_DIPLOMACY_INIT_MEETING_REQ:
225 handle_diplomacy_init_meeting_req(pplayer,
226 ((const struct packet_diplomacy_init_meeting_req *)packet)->counterpart);
227 return TRUE;
228
229 case PACKET_DIPLOMACY_CANCEL_MEETING_REQ:
230 handle_diplomacy_cancel_meeting_req(pplayer,
231 ((const struct packet_diplomacy_cancel_meeting_req *)packet)->counterpart);
232 return TRUE;
233
234 case PACKET_DIPLOMACY_CREATE_CLAUSE_REQ:
235 handle_diplomacy_create_clause_req(pplayer,
236 ((const struct packet_diplomacy_create_clause_req *)packet)->counterpart,
237 ((const struct packet_diplomacy_create_clause_req *)packet)->giver,
238 ((const struct packet_diplomacy_create_clause_req *)packet)->type,
239 ((const struct packet_diplomacy_create_clause_req *)packet)->value);
240 return TRUE;
241
242 case PACKET_DIPLOMACY_REMOVE_CLAUSE_REQ:
243 handle_diplomacy_remove_clause_req(pplayer,
244 ((const struct packet_diplomacy_remove_clause_req *)packet)->counterpart,
245 ((const struct packet_diplomacy_remove_clause_req *)packet)->giver,
246 ((const struct packet_diplomacy_remove_clause_req *)packet)->type,
247 ((const struct packet_diplomacy_remove_clause_req *)packet)->value);
248 return TRUE;
249
250 case PACKET_DIPLOMACY_ACCEPT_TREATY_REQ:
251 handle_diplomacy_accept_treaty_req(pplayer,
252 ((const struct packet_diplomacy_accept_treaty_req *)packet)->counterpart);
253 return TRUE;
254
255 case PACKET_DIPLOMACY_CANCEL_PACT:
256 handle_diplomacy_cancel_pact(pplayer,
257 ((const struct packet_diplomacy_cancel_pact *)packet)->other_player_id,
258 ((const struct packet_diplomacy_cancel_pact *)packet)->clause);
259 return TRUE;
260
261 case PACKET_REPORT_REQ:
262 handle_report_req(pconn,
263 ((const struct packet_report_req *)packet)->type);
264 return TRUE;
265
266 case PACKET_CONN_PONG:
267 handle_conn_pong(pconn);
268 return TRUE;
269
270 case PACKET_CLIENT_HEARTBEAT:
271 handle_client_heartbeat(pconn);
272 return TRUE;
273
274 case PACKET_CLIENT_INFO:
275 handle_client_info(pconn,
276 ((const struct packet_client_info *)packet)->gui,
277 ((const struct packet_client_info *)packet)->emerg_version,
278 ((const struct packet_client_info *)packet)->distribution);
279 return TRUE;
280
281 case PACKET_SPACESHIP_LAUNCH:
282 handle_spaceship_launch(pplayer);
283 return TRUE;
284
285 case PACKET_SPACESHIP_PLACE:
286 handle_spaceship_place(pplayer,
287 ((const struct packet_spaceship_place *)packet)->type,
288 ((const struct packet_spaceship_place *)packet)->num);
289 return TRUE;
290
291 case PACKET_SINGLE_WANT_HACK_REQ:
292 handle_single_want_hack_req(pconn, packet);
293 return TRUE;
294
295 case PACKET_SAVE_SCENARIO:
296 handle_save_scenario(pconn,
297 ((const struct packet_save_scenario *)packet)->name);
298 return TRUE;
299
300 case PACKET_VOTE_SUBMIT:
301 handle_vote_submit(pconn,
302 ((const struct packet_vote_submit *)packet)->vote_no,
303 ((const struct packet_vote_submit *)packet)->value);
304 return TRUE;
305
306 case PACKET_EDIT_MODE:
307 handle_edit_mode(pconn,
308 ((const struct packet_edit_mode *)packet)->state);
309 return TRUE;
310
311 case PACKET_EDIT_RECALCULATE_BORDERS:
312 handle_edit_recalculate_borders(pconn);
313 return TRUE;
314
315 case PACKET_EDIT_CHECK_TILES:
316 handle_edit_check_tiles(pconn);
317 return TRUE;
318
319 case PACKET_EDIT_TOGGLE_FOGOFWAR:
320 handle_edit_toggle_fogofwar(pconn,
321 ((const struct packet_edit_toggle_fogofwar *)packet)->player);
322 return TRUE;
323
324 case PACKET_EDIT_TILE_TERRAIN:
325 handle_edit_tile_terrain(pconn,
326 ((const struct packet_edit_tile_terrain *)packet)->tile,
327 ((const struct packet_edit_tile_terrain *)packet)->terrain,
328 ((const struct packet_edit_tile_terrain *)packet)->size);
329 return TRUE;
330
331 case PACKET_EDIT_TILE_EXTRA:
332 handle_edit_tile_extra(pconn,
333 ((const struct packet_edit_tile_extra *)packet)->tile,
334 ((const struct packet_edit_tile_extra *)packet)->extra_type_id,
335 ((const struct packet_edit_tile_extra *)packet)->removal,
336 ((const struct packet_edit_tile_extra *)packet)->eowner,
337 ((const struct packet_edit_tile_extra *)packet)->size);
338 return TRUE;
339
340 case PACKET_EDIT_STARTPOS:
341 handle_edit_startpos(pconn, packet);
342 return TRUE;
343
344 case PACKET_EDIT_STARTPOS_FULL:
345 handle_edit_startpos_full(pconn, packet);
346 return TRUE;
347
348 case PACKET_EDIT_TILE:
349 handle_edit_tile(pconn, packet);
350 return TRUE;
351
352 case PACKET_EDIT_UNIT_CREATE:
353 handle_edit_unit_create(pconn,
354 ((const struct packet_edit_unit_create *)packet)->owner,
355 ((const struct packet_edit_unit_create *)packet)->tile,
356 ((const struct packet_edit_unit_create *)packet)->type,
357 ((const struct packet_edit_unit_create *)packet)->count,
358 ((const struct packet_edit_unit_create *)packet)->tag);
359 return TRUE;
360
361 case PACKET_EDIT_UNIT_REMOVE:
362 handle_edit_unit_remove(pconn,
363 ((const struct packet_edit_unit_remove *)packet)->owner,
364 ((const struct packet_edit_unit_remove *)packet)->tile,
365 ((const struct packet_edit_unit_remove *)packet)->type,
366 ((const struct packet_edit_unit_remove *)packet)->count);
367 return TRUE;
368
369 case PACKET_EDIT_UNIT_REMOVE_BY_ID:
370 handle_edit_unit_remove_by_id(pconn,
371 ((const struct packet_edit_unit_remove_by_id *)packet)->id16,
372 ((const struct packet_edit_unit_remove_by_id *)packet)->id32);
373 return TRUE;
374
375 case PACKET_EDIT_UNIT:
376 handle_edit_unit(pconn, packet);
377 return TRUE;
378
379 case PACKET_EDIT_CITY_CREATE:
380 handle_edit_city_create(pconn,
381 ((const struct packet_edit_city_create *)packet)->owner,
382 ((const struct packet_edit_city_create *)packet)->tile,
383 ((const struct packet_edit_city_create *)packet)->size,
384 ((const struct packet_edit_city_create *)packet)->tag);
385 return TRUE;
386
387 case PACKET_EDIT_CITY_REMOVE:
388 handle_edit_city_remove(pconn,
389 ((const struct packet_edit_city_remove *)packet)->id16,
390 ((const struct packet_edit_city_remove *)packet)->id32);
391 return TRUE;
392
393 case PACKET_EDIT_CITY:
394 handle_edit_city(pconn, packet);
395 return TRUE;
396
397 case PACKET_EDIT_PLAYER_CREATE:
398 handle_edit_player_create(pconn,
399 ((const struct packet_edit_player_create *)packet)->tag);
400 return TRUE;
401
402 case PACKET_EDIT_PLAYER_REMOVE:
403 handle_edit_player_remove(pconn,
404 ((const struct packet_edit_player_remove *)packet)->id);
405 return TRUE;
406
407 case PACKET_EDIT_PLAYER:
408 handle_edit_player(pconn, packet);
409 return TRUE;
410
411 case PACKET_EDIT_PLAYER_VISION:
412 handle_edit_player_vision(pconn,
413 ((const struct packet_edit_player_vision *)packet)->player,
414 ((const struct packet_edit_player_vision *)packet)->tile,
415 ((const struct packet_edit_player_vision *)packet)->known,
416 ((const struct packet_edit_player_vision *)packet)->size);
417 return TRUE;
418
419 case PACKET_EDIT_GAME:
420 handle_edit_game(pconn, packet);
421 return TRUE;
422
423 case PACKET_EDIT_SCENARIO_DESC:
424 handle_edit_scenario_desc(pconn,
425 ((const struct packet_edit_scenario_desc *)packet)->scenario_desc);
426 return TRUE;
427
428 default:
429 return FALSE;
430 }
431}
handle_city_rally_point
void handle_city_rally_point(struct player *pplayer, const struct packet_city_rally_point *packet)
Definition cityhand.c:588
handle_city_refresh
void handle_city_refresh(struct player *pplayer, int city_id16, int city_id32)
Definition cityhand.c:455
handle_city_options_req
void handle_city_options_req(struct player *pplayer, int city_id16, int city_id32, bv_city_options options)
Definition cityhand.c:564
handle_city_make_specialist
void handle_city_make_specialist(struct player *pplayer, int city_id16, int city_id32, int tile_id)
Definition cityhand.c:138
handle_city_make_worker
void handle_city_make_worker(struct player *pplayer, int city_id16, int city_id32, int tile_id)
Definition cityhand.c:189
handle_city_worklist
void handle_city_worklist(struct player *pplayer, int city_id16, int city_id32, const struct worklist *worklist)
Definition cityhand.c:411
handle_city_sell
void handle_city_sell(struct player *pplayer, int city_id16, int city_id32, int build_id)
Definition cityhand.c:298
handle_city_change
void handle_city_change(struct player *pplayer, int city_id16, int city_id32, int production_kind, int production_value)
Definition cityhand.c:478
handle_city_buy
void handle_city_buy(struct player *pplayer, int city_id16, int city_id32)
Definition cityhand.c:435
handle_city_change_specialist
void handle_city_change_specialist(struct player *pplayer, int city_id16, int city_id32, Specialist_type_id from, Specialist_type_id to)
Definition cityhand.c:100
handle_city_name_suggestion_req
void handle_city_name_suggestion_req(struct player *pplayer, int unit_id16, int unit_id32)
Definition cityhand.c:60
handle_city_rename
void handle_city_rename(struct player *pplayer, int city_id16, int city_id32, const char *name)
Definition cityhand.c:533
handle_diplomacy_remove_clause_req
void handle_diplomacy_remove_clause_req(struct player *pplayer, int counterpart, int giver, enum clause_type type, int value)
Definition diplhand.c:746
handle_diplomacy_create_clause_req
void handle_diplomacy_create_clause_req(struct player *pplayer, int counterpart, int giver, enum clause_type type, int value)
Definition diplhand.c:779
handle_diplomacy_init_meeting_req
void handle_diplomacy_init_meeting_req(struct player *pplayer, int counterpart)
Definition diplhand.c:872
handle_diplomacy_cancel_meeting_req
void handle_diplomacy_cancel_meeting_req(struct player *pplayer, int counterpart)
Definition diplhand.c:857
handle_diplomacy_accept_treaty_req
void handle_diplomacy_accept_treaty_req(struct player *pplayer, int counterpart)
Definition diplhand.c:184
giver
int int initiated_from int int giver
Definition diplodlg_g.h:28
counterpart
int counterpart
Definition diplodlg_g.h:25
handle_edit_tile
void handle_edit_tile(struct connection *pc, const struct packet_edit_tile *packet)
Definition edithand.c:376
handle_edit_scenario_desc
void handle_edit_scenario_desc(struct connection *pc, const char *scenario_desc)
Definition edithand.c:1500
handle_edit_check_tiles
void handle_edit_check_tiles(struct connection *pc)
Definition edithand.c:1318
handle_edit_mode
void handle_edit_mode(struct connection *pc, bool is_edit_mode)
Definition edithand.c:189
handle_edit_tile_terrain
void handle_edit_tile_terrain(struct connection *pc, int tile, Terrain_type_id terrain, int size)
Definition edithand.c:299
handle_edit_player
void handle_edit_player(struct connection *pc, const struct packet_edit_player *packet)
Definition edithand.c:1021
handle_edit_player_remove
void handle_edit_player_remove(struct connection *pc, int id)
Definition edithand.c:997
handle_edit_player_vision
void handle_edit_player_vision(struct connection *pc, int plr_no, int tile, bool known, int size)
Definition edithand.c:1217
handle_edit_city
void handle_edit_city(struct connection *pc, const struct packet_edit_city *packet)
Definition edithand.c:751
handle_edit_city_create
void handle_edit_city_create(struct connection *pc, int owner, int tile, int size, int tag)
Definition edithand.c:695
handle_edit_unit_remove_by_id
void handle_edit_unit_remove_by_id(struct connection *pc, Unit_type_id id16, Unit_type_id id32)
Definition edithand.c:592
handle_edit_game
void handle_edit_game(struct connection *pc, const struct packet_edit_game *packet)
Definition edithand.c:1437
handle_edit_city_remove
void handle_edit_city_remove(struct connection *pc, int id16, int id32)
Definition edithand.c:1297
handle_edit_unit_remove
void handle_edit_unit_remove(struct connection *pc, int owner, int tile, Unit_type_id utid, int count)
Definition edithand.c:537
handle_edit_toggle_fogofwar
void handle_edit_toggle_fogofwar(struct connection *pc, int plr_no)
Definition edithand.c:1328
handle_edit_startpos_full
void handle_edit_startpos_full(struct connection *pconn, const struct packet_edit_startpos_full *packet)
Definition edithand.c:1399
handle_edit_player_create
void handle_edit_player_create(struct connection *pc, int tag)
Definition edithand.c:918
handle_edit_recalculate_borders
void handle_edit_recalculate_borders(struct connection *pc)
Definition edithand.c:1289
handle_save_scenario
void handle_save_scenario(struct connection *pc, const char *name)
Definition edithand.c:1512
handle_edit_tile_extra
void handle_edit_tile_extra(struct connection *pc, int tile, int id, bool removal, int eowner, int size)
Definition edithand.c:336
handle_edit_unit_create
void handle_edit_unit_create(struct connection *pc, int owner, int tile, Unit_type_id utid, int count, int tag)
Definition edithand.c:434
handle_edit_unit
void handle_edit_unit(struct connection *pc, const struct packet_edit_unit *packet)
Definition edithand.c:614
handle_edit_startpos
void handle_edit_startpos(struct connection *pconn, const struct packet_edit_startpos *packet)
Definition edithand.c:1361
handle_single_want_hack_req
void handle_single_want_hack_req(struct connection *pc, const struct packet_single_want_hack_req *packet)
Definition gamehand.c:1137
owner
struct city * owner
Definition citydlg.c:219
type
GType type
Definition repodlgs.c:1312
server_handle_packet
bool server_handle_packet(enum packet_type type, const void *packet, struct player *pplayer, struct connection *pconn)
Definition hand_gen.c:20
hand_gen.h
handle_player_phase_done
void handle_player_phase_done(struct player *pplayer, int turn)
Definition plrhand.c:3007
handle_player_multiplier
void handle_player_multiplier(struct player *pplayer, int count, const int *multipliers)
Definition plrhand.c:3220
handle_unit_server_side_agent_set
void handle_unit_server_side_agent_set(struct player *pplayer, int unit_id16, int unit_id32, enum server_side_agent agent)
Definition unithand.c:6021
handle_client_heartbeat
void handle_client_heartbeat(struct connection *pc)
Definition sernet.c:1451
handle_unit_change_activity
void handle_unit_change_activity(struct player *pplayer, int unit_id16, int unit_id32, enum unit_activity activity, int target)
Definition unithand.c:4148
handle_nation_select_req
void handle_nation_select_req(struct connection *pc, int player_no, Nation_type_id nation_no, bool is_male, const char *name, int style)
Definition srv_main.c:2259
handle_unit_get_actions
void handle_unit_get_actions(struct connection *pc, const struct packet_unit_get_actions *packet)
Definition unithand.c:2079
handle_unit_type_upgrade
void handle_unit_type_upgrade(struct player *pplayer, Unit_type_id type)
Definition unithand.c:186
handle_unit_orders
void handle_unit_orders(struct player *pplayer, const struct packet_unit_orders *packet)
Definition unithand.c:6307
handle_unit_sscs_set
void handle_unit_sscs_set(struct player *pplayer, int unit_id16, int unit_id32, enum unit_ss_data_type type, int value)
Definition unithand.c:5908
handle_report_req
void handle_report_req(struct connection *pc, enum report_type type)
Definition srv_main.c:1882
handle_client_info
void handle_client_info(struct connection *pc, enum gui_type gui, int emerg_version, const char *distribution)
Definition srv_main.c:307
handle_worker_task
void handle_worker_task(struct player *pplayer, const struct packet_worker_task *packet)
Definition unithand.c:6425
handle_player_tech_goal
void handle_player_tech_goal(struct player *pplayer, int tech)
Definition techtools.c:1334
handle_player_place_infra
void handle_player_place_infra(struct player *pplayer, int tile, int extra)
Definition infrapts.c:29
handle_player_attribute_block
void handle_player_attribute_block(struct player *pplayer)
Definition plrhand.c:2999
handle_player_ready
void handle_player_ready(struct player *pplayer, int player_no, bool is_ready)
Definition srv_main.c:2341
handle_chat_msg_req
void handle_chat_msg_req(struct connection *pc, const char *message)
Definition handchat.c:320
handle_player_research
void handle_player_research(struct player *pplayer, int tech)
Definition techtools.c:1311
handle_player_change_government
void handle_player_change_government(struct player *pplayer, Government_type_id government)
Definition plrhand.c:454
handle_spaceship_place
void handle_spaceship_place(struct player *pplayer, enum spaceship_place_type type, int num)
Definition spacerace.c:205
handle_conn_pong
void handle_conn_pong(struct connection *pc)
Definition sernet.c:1431
handle_unit_do_action
void handle_unit_do_action(struct player *pplayer, const struct packet_unit_do_action *packet)
Definition unithand.c:3134
handle_diplomacy_cancel_pact
void handle_diplomacy_cancel_pact(struct player *pplayer, int other_player_id, enum clause_type clause)
Definition plrhand.c:761
handle_player_attribute_chunk
void handle_player_attribute_chunk(struct player *pplayer, const struct packet_player_attribute_chunk *packet)
Definition plrhand.c:2989
handle_spaceship_launch
void handle_spaceship_launch(struct player *pplayer)
Definition spacerace.c:166
handle_player_rates
void handle_player_rates(struct player *pplayer, int tax, int luxury, int science)
Definition plrhand.c:285
handle_vote_submit
void handle_vote_submit(struct connection *pc, int vote_no, int value)
Definition voting.c:775
handle_unit_action_query
void handle_unit_action_query(struct connection *pc, int actor_id16, int actor_id32, int target_id, action_id action_type, int request_kind)
Definition unithand.c:3013
name
const char * name
Definition inputfile.c:127
gui
static mpgui * gui
Definition mpgui_qt.cpp:52
multipliers
static struct multiplier multipliers[MAX_NUM_MULTIPLIERS]
Definition multipliers.c:23
packets.h
packet_type
packet_type
Definition packets_gen.h:1883
PACKET_PLAYER_MULTIPLIER
@ PACKET_PLAYER_MULTIPLIER
Definition packets_gen.h:2059
PACKET_PLAYER_CHANGE_GOVERNMENT
@ PACKET_PLAYER_CHANGE_GOVERNMENT
Definition packets_gen.h:1930
PACKET_SAVE_SCENARIO
@ PACKET_SAVE_SCENARIO
Definition packets_gen.h:2010
PACKET_EDIT_TOGGLE_FOGOFWAR
@ PACKET_EDIT_TOGGLE_FOGOFWAR
Definition packets_gen.h:2019
PACKET_EDIT_MODE
@ PACKET_EDIT_MODE
Definition packets_gen.h:2016
PACKET_EDIT_PLAYER
@ PACKET_EDIT_PLAYER
Definition packets_gen.h:2034
PACKET_DIPLOMACY_CANCEL_MEETING_REQ
@ PACKET_DIPLOMACY_CANCEL_MEETING_REQ
Definition packets_gen.h:1956
PACKET_CITY_MAKE_WORKER
@ PACKET_CITY_MAKE_WORKER
Definition packets_gen.h:1917
PACKET_CITY_OPTIONS_REQ
@ PACKET_CITY_OPTIONS_REQ
Definition packets_gen.h:1920
PACKET_CITY_CHANGE
@ PACKET_CITY_CHANGE
Definition packets_gen.h:1914
PACKET_UNIT_SSCS_SET
@ PACKET_UNIT_SSCS_SET
Definition packets_gen.h:1943
PACKET_UNIT_DO_ACTION
@ PACKET_UNIT_DO_ACTION
Definition packets_gen.h:1948
PACKET_EDIT_PLAYER_CREATE
@ PACKET_EDIT_PLAYER_CREATE
Definition packets_gen.h:2032
PACKET_EDIT_GAME
@ PACKET_EDIT_GAME
Definition packets_gen.h:2036
PACKET_EDIT_TILE_EXTRA
@ PACKET_EDIT_TILE_EXTRA
Definition packets_gen.h:2021
PACKET_SPACESHIP_PLACE
@ PACKET_SPACESHIP_PLACE
Definition packets_gen.h:1978
PACKET_NATION_SELECT_REQ
@ PACKET_NATION_SELECT_REQ
Definition packets_gen.h:1892
PACKET_REPORT_REQ
@ PACKET_REPORT_REQ
Definition packets_gen.h:1966
PACKET_EDIT_CITY_CREATE
@ PACKET_EDIT_CITY_CREATE
Definition packets_gen.h:2029
PACKET_DIPLOMACY_INIT_MEETING_REQ
@ PACKET_DIPLOMACY_INIT_MEETING_REQ
Definition packets_gen.h:1954
PACKET_PLAYER_ATTRIBUTE_BLOCK
@ PACKET_PLAYER_ATTRIBUTE_BLOCK
Definition packets_gen.h:1933
PACKET_CITY_SELL
@ PACKET_CITY_SELL
Definition packets_gen.h:1912
PACKET_CITY_NAME_SUGGESTION_REQ
@ PACKET_CITY_NAME_SUGGESTION_REQ
Definition packets_gen.h:1922
PACKET_CHAT_MSG_REQ
@ PACKET_CHAT_MSG_REQ
Definition packets_gen.h:1905
PACKET_CLIENT_HEARTBEAT
@ PACKET_CLIENT_HEARTBEAT
Definition packets_gen.h:2071
PACKET_DIPLOMACY_CREATE_CLAUSE_REQ
@ PACKET_DIPLOMACY_CREATE_CLAUSE_REQ
Definition packets_gen.h:1958
PACKET_CITY_BUY
@ PACKET_CITY_BUY
Definition packets_gen.h:1913
PACKET_EDIT_CITY_REMOVE
@ PACKET_EDIT_CITY_REMOVE
Definition packets_gen.h:2030
PACKET_EDIT_STARTPOS
@ PACKET_EDIT_STARTPOS
Definition packets_gen.h:2022
PACKET_PLAYER_RESEARCH
@ PACKET_PLAYER_RESEARCH
Definition packets_gen.h:1931
PACKET_PLAYER_PHASE_DONE
@ PACKET_PLAYER_PHASE_DONE
Definition packets_gen.h:1928
PACKET_CLIENT_INFO
@ PACKET_CLIENT_INFO
Definition packets_gen.h:1969
PACKET_CITY_WORKLIST
@ PACKET_CITY_WORKLIST
Definition packets_gen.h:1915
PACKET_UNIT_TYPE_UPGRADE
@ PACKET_UNIT_TYPE_UPGRADE
Definition packets_gen.h:1947
PACKET_UNIT_GET_ACTIONS
@ PACKET_UNIT_GET_ACTIONS
Definition packets_gen.h:1950
PACKET_PLAYER_ATTRIBUTE_CHUNK
@ PACKET_PLAYER_ATTRIBUTE_CHUNK
Definition packets_gen.h:1934
PACKET_CITY_MAKE_SPECIALIST
@ PACKET_CITY_MAKE_SPECIALIST
Definition packets_gen.h:1916
PACKET_SINGLE_WANT_HACK_REQ
@ PACKET_SINGLE_WANT_HACK_REQ
Definition packets_gen.h:1996
PACKET_PLAYER_PLACE_INFRA
@ PACKET_PLAYER_PLACE_INFRA
Definition packets_gen.h:1937
PACKET_EDIT_PLAYER_REMOVE
@ PACKET_EDIT_PLAYER_REMOVE
Definition packets_gen.h:2033
PACKET_EDIT_TILE_TERRAIN
@ PACKET_EDIT_TILE_TERRAIN
Definition packets_gen.h:2020
PACKET_UNIT_ACTION_QUERY
@ PACKET_UNIT_ACTION_QUERY
Definition packets_gen.h:1946
PACKET_EDIT_SCENARIO_DESC
@ PACKET_EDIT_SCENARIO_DESC
Definition packets_gen.h:1896
PACKET_EDIT_UNIT_CREATE
@ PACKET_EDIT_UNIT_CREATE
Definition packets_gen.h:2025
PACKET_UNIT_CHANGE_ACTIVITY
@ PACKET_UNIT_CHANGE_ACTIVITY
Definition packets_gen.h:2039
PACKET_EDIT_UNIT_REMOVE
@ PACKET_EDIT_UNIT_REMOVE
Definition packets_gen.h:2026
PACKET_VOTE_SUBMIT
@ PACKET_VOTE_SUBMIT
Definition packets_gen.h:2015
PACKET_EDIT_PLAYER_VISION
@ PACKET_EDIT_PLAYER_VISION
Definition packets_gen.h:2035
PACKET_EDIT_CHECK_TILES
@ PACKET_EDIT_CHECK_TILES
Definition packets_gen.h:2018
PACKET_CITY_CHANGE_SPECIALIST
@ PACKET_CITY_CHANGE_SPECIALIST
Definition packets_gen.h:1918
PACKET_CITY_REFRESH
@ PACKET_CITY_REFRESH
Definition packets_gen.h:1921
PACKET_EDIT_TILE
@ PACKET_EDIT_TILE
Definition packets_gen.h:2024
PACKET_PLAYER_READY
@ PACKET_PLAYER_READY
Definition packets_gen.h:1893
PACKET_EDIT_UNIT
@ PACKET_EDIT_UNIT
Definition packets_gen.h:2028
PACKET_CONN_PONG
@ PACKET_CONN_PONG
Definition packets_gen.h:1952
PACKET_EDIT_RECALCULATE_BORDERS
@ PACKET_EDIT_RECALCULATE_BORDERS
Definition packets_gen.h:2017
PACKET_EDIT_CITY
@ PACKET_EDIT_CITY
Definition packets_gen.h:2031
PACKET_PLAYER_TECH_GOAL
@ PACKET_PLAYER_TECH_GOAL
Definition packets_gen.h:1932
PACKET_CITY_RALLY_POINT
@ PACKET_CITY_RALLY_POINT
Definition packets_gen.h:1980
PACKET_UNIT_SERVER_SIDE_AGENT_SET
@ PACKET_UNIT_SERVER_SIDE_AGENT_SET
Definition packets_gen.h:1945
PACKET_SPACESHIP_LAUNCH
@ PACKET_SPACESHIP_LAUNCH
Definition packets_gen.h:1977
PACKET_DIPLOMACY_REMOVE_CLAUSE_REQ
@ PACKET_DIPLOMACY_REMOVE_CLAUSE_REQ
Definition packets_gen.h:1960
PACKET_DIPLOMACY_ACCEPT_TREATY_REQ
@ PACKET_DIPLOMACY_ACCEPT_TREATY_REQ
Definition packets_gen.h:1962
PACKET_UNIT_ORDERS
@ PACKET_UNIT_ORDERS
Definition packets_gen.h:1944
PACKET_EDIT_UNIT_REMOVE_BY_ID
@ PACKET_EDIT_UNIT_REMOVE_BY_ID
Definition packets_gen.h:2027
PACKET_EDIT_STARTPOS_FULL
@ PACKET_EDIT_STARTPOS_FULL
Definition packets_gen.h:2023
PACKET_DIPLOMACY_CANCEL_PACT
@ PACKET_DIPLOMACY_CANCEL_PACT
Definition packets_gen.h:1964
PACKET_PLAYER_RATES
@ PACKET_PLAYER_RATES
Definition packets_gen.h:1929
PACKET_CITY_RENAME
@ PACKET_CITY_RENAME
Definition packets_gen.h:1919
PACKET_WORKER_TASK
@ PACKET_WORKER_TASK
Definition packets_gen.h:2058
size
size_t size
Definition specvec.h:72
agent
Definition agents.h:40
connection
Definition connection.h:141
government
Definition government.h:52
message
Definition messagewin_common.h:29
packet_chat_msg_req
Definition packets_gen.h:305
packet_city_buy
Definition packets_gen.h:422
packet_city_change_specialist
Definition packets_gen.h:452
packet_city_change
Definition packets_gen.h:427
packet_city_make_specialist
Definition packets_gen.h:440
packet_city_make_worker
Definition packets_gen.h:446
packet_city_name_suggestion_req
Definition packets_gen.h:476
packet_city_options_req
Definition packets_gen.h:465
packet_city_refresh
Definition packets_gen.h:471
packet_city_rename
Definition packets_gen.h:459
packet_city_sell
Definition packets_gen.h:416
packet_city_worklist
Definition packets_gen.h:434
packet_client_info
Definition packets_gen.h:906
packet_diplomacy_accept_treaty_req
Definition packets_gen.h:845
packet_diplomacy_cancel_meeting_req
Definition packets_gen.h:808
packet_diplomacy_cancel_pact
Definition packets_gen.h:855
packet_diplomacy_create_clause_req
Definition packets_gen.h:817
packet_diplomacy_init_meeting_req
Definition packets_gen.h:799
packet_diplomacy_remove_clause_req
Definition packets_gen.h:831
packet_edit_city_create
Definition packets_gen.h:1754
packet_edit_city_remove
Definition packets_gen.h:1761
packet_edit_mode
Definition packets_gen.h:1659
packet_edit_player_create
Definition packets_gen.h:1798
packet_edit_player_remove
Definition packets_gen.h:1802
packet_edit_player_vision
Definition packets_gen.h:1834
packet_edit_scenario_desc
Definition packets_gen.h:1853
packet_edit_tile_extra
Definition packets_gen.h:1681
packet_edit_tile_terrain
Definition packets_gen.h:1675
packet_edit_toggle_fogofwar
Definition packets_gen.h:1671
packet_edit_unit_create
Definition packets_gen.h:1711
packet_edit_unit_remove_by_id
Definition packets_gen.h:1726
packet_edit_unit_remove
Definition packets_gen.h:1719
packet_nation_select_req
Definition packets_gen.h:75
packet_player_change_government
Definition packets_gen.h:578
packet_player_multiplier
Definition packets_gen.h:608
packet_player_phase_done
Definition packets_gen.h:568
packet_player_place_infra
Definition packets_gen.h:582
packet_player_rates
Definition packets_gen.h:572
packet_player_ready
Definition packets_gen.h:83
packet_player_research
Definition packets_gen.h:629
packet_player_tech_goal
Definition packets_gen.h:633
packet_report_req
Definition packets_gen.h:872
packet_save_scenario
Definition packets_gen.h:1625
packet_spaceship_place
Definition packets_gen.h:946
packet_unit_action_query
Definition packets_gen.h:739
packet_unit_change_activity
Definition packets_gen.h:792
packet_unit_server_side_agent_set
Definition packets_gen.h:733
packet_unit_sscs_set
Definition packets_gen.h:715
packet_unit_type_upgrade
Definition packets_gen.h:747
packet_vote_submit
Definition packets_gen.h:1654
player
Definition player.h:249
terrain
Definition terrain.h:176
tile
Definition tile.h:49
worklist
Definition worklist.h:28
TRUE
#define TRUE
Definition support.h:46
FALSE
#define FALSE
Definition support.h:47