Freeciv-3.3
Loading...
Searching...
No Matches
packhand_gen.c
Go to the documentation of this file.
1 /**************************************************************************
2 * THIS FILE WAS GENERATED *
3 * Script: common/generate_packets.py *
4 * Input: common/networking/packets.def *
5 * DO NOT CHANGE THIS FILE *
6 **************************************************************************/
7
8#ifdef HAVE_CONFIG_H
9#include <fc_config.h>
10#endif
11
12/* common */
13#include "packets.h"
14
15#include "packhand_gen.h"
16
17bool client_handle_packet(enum packet_type type, const void *packet)
18{
19 switch (type) {
22 return TRUE;
23
26 return TRUE;
27
30 return TRUE;
31
34 return TRUE;
35
38 ((const struct packet_server_join_reply *)packet)->you_can_join,
39 ((const struct packet_server_join_reply *)packet)->message,
40 ((const struct packet_server_join_reply *)packet)->capability,
41 ((const struct packet_server_join_reply *)packet)->challenge_file,
42 ((const struct packet_server_join_reply *)packet)->conn_id);
43 return TRUE;
44
47 ((const struct packet_authentication_req *)packet)->type,
48 ((const struct packet_authentication_req *)packet)->message);
49 return TRUE;
50
53 return TRUE;
54
57 return TRUE;
58
61 return TRUE;
62
64 handle_tile_info(packet);
65 return TRUE;
66
68 handle_game_info(packet);
69 return TRUE;
70
73 return TRUE;
74
77 ((const struct packet_timeout_info *)packet)->seconds_to_phasedone,
78 ((const struct packet_timeout_info *)packet)->last_turn_change_time);
79 return TRUE;
80
81 case PACKET_MAP_INFO:
82 handle_map_info(packet);
83 return TRUE;
84
87 ((const struct packet_nuke_tile_info *)packet)->tile);
88 return TRUE;
89
92 ((const struct packet_team_name_info *)packet)->team_id,
93 ((const struct packet_team_name_info *)packet)->team_name);
94 return TRUE;
95
98 ((const struct packet_achievement_info *)packet)->id,
99 ((const struct packet_achievement_info *)packet)->gained,
100 ((const struct packet_achievement_info *)packet)->first);
101 return TRUE;
102
103 case PACKET_CHAT_MSG:
104 handle_chat_msg(packet);
105 return TRUE;
106
108 handle_early_chat_msg(packet);
109 return TRUE;
110
113 ((const struct packet_connect_msg *)packet)->message);
114 return TRUE;
115
118 ((const struct packet_server_info *)packet)->version_label,
119 ((const struct packet_server_info *)packet)->major_version,
120 ((const struct packet_server_info *)packet)->minor_version,
121 ((const struct packet_server_info *)packet)->patch_version,
122 ((const struct packet_server_info *)packet)->emerg_version);
123 return TRUE;
124
127 ((const struct packet_city_remove *)packet)->city_id);
128 return TRUE;
129
130 case PACKET_CITY_INFO:
131 handle_city_info(packet);
132 return TRUE;
133
136 return TRUE;
137
140 return TRUE;
141
144 return TRUE;
145
148 return TRUE;
149
152 ((const struct packet_city_name_suggestion_info *)packet)->unit_id,
153 ((const struct packet_city_name_suggestion_info *)packet)->name);
154 return TRUE;
155
158 ((const struct packet_city_sabotage_list *)packet)->actor_id,
159 ((const struct packet_city_sabotage_list *)packet)->city_id,
160 ((const struct packet_city_sabotage_list *)packet)->improvements,
161 ((const struct packet_city_sabotage_list *)packet)->act_id,
162 ((const struct packet_city_sabotage_list *)packet)->request_kind);
163 return TRUE;
164
167 return TRUE;
168
170 handle_worker_task(packet);
171 return TRUE;
172
175 ((const struct packet_player_remove *)packet)->playerno);
176 return TRUE;
177
179 handle_player_info(packet);
180 return TRUE;
181
184 return TRUE;
185
188 return TRUE;
189
191 handle_research_info(packet);
192 return TRUE;
193
196 ((const struct packet_unknown_research *)packet)->id);
197 return TRUE;
198
201 ((const struct packet_unit_remove *)packet)->unit_id);
202 return TRUE;
203
204 case PACKET_UNIT_INFO:
205 handle_unit_info(packet);
206 return TRUE;
207
210 return TRUE;
211
214 return TRUE;
215
218 ((const struct packet_unit_action_answer *)packet)->actor_id,
219 ((const struct packet_unit_action_answer *)packet)->target_id,
220 ((const struct packet_unit_action_answer *)packet)->cost,
221 ((const struct packet_unit_action_answer *)packet)->action_type,
222 ((const struct packet_unit_action_answer *)packet)->request_kind);
223 return TRUE;
224
226 handle_unit_actions(packet);
227 return TRUE;
228
231 ((const struct packet_diplomacy_init_meeting *)packet)->counterpart,
232 ((const struct packet_diplomacy_init_meeting *)packet)->initiated_from);
233 return TRUE;
234
237 ((const struct packet_diplomacy_cancel_meeting *)packet)->counterpart,
238 ((const struct packet_diplomacy_cancel_meeting *)packet)->initiated_from);
239 return TRUE;
240
243 ((const struct packet_diplomacy_create_clause *)packet)->counterpart,
244 ((const struct packet_diplomacy_create_clause *)packet)->giver,
245 ((const struct packet_diplomacy_create_clause *)packet)->type,
246 ((const struct packet_diplomacy_create_clause *)packet)->value);
247 return TRUE;
248
251 ((const struct packet_diplomacy_remove_clause *)packet)->counterpart,
252 ((const struct packet_diplomacy_remove_clause *)packet)->giver,
253 ((const struct packet_diplomacy_remove_clause *)packet)->type,
254 ((const struct packet_diplomacy_remove_clause *)packet)->value);
255 return TRUE;
256
259 ((const struct packet_diplomacy_accept_treaty *)packet)->counterpart,
260 ((const struct packet_diplomacy_accept_treaty *)packet)->I_accepted,
261 ((const struct packet_diplomacy_accept_treaty *)packet)->other_accepted);
262 return TRUE;
263
264 case PACKET_PAGE_MSG:
266 ((const struct packet_page_msg *)packet)->caption,
267 ((const struct packet_page_msg *)packet)->headline,
268 ((const struct packet_page_msg *)packet)->event,
269 ((const struct packet_page_msg *)packet)->len,
270 ((const struct packet_page_msg *)packet)->parts);
271 return TRUE;
272
275 ((const struct packet_page_msg_part *)packet)->lines);
276 return TRUE;
277
278 case PACKET_CONN_INFO:
279 handle_conn_info(packet);
280 return TRUE;
281
284 ((const struct packet_conn_ping_info *)packet)->connections,
285 ((const struct packet_conn_ping_info *)packet)->conn_id,
286 ((const struct packet_conn_ping_info *)packet)->ping_time);
287 return TRUE;
288
289 case PACKET_CONN_PING:
291 return TRUE;
292
293 case PACKET_END_PHASE:
295 return TRUE;
296
299 ((const struct packet_start_phase *)packet)->phase);
300 return TRUE;
301
302 case PACKET_NEW_YEAR:
304 ((const struct packet_new_year *)packet)->year,
305 ((const struct packet_new_year *)packet)->fragments,
306 ((const struct packet_new_year *)packet)->turn);
307 return TRUE;
308
311 return TRUE;
312
313 case PACKET_END_TURN:
315 return TRUE;
316
319 return TRUE;
320
323 return TRUE;
324
326 handle_spaceship_info(packet);
327 return TRUE;
328
330 handle_ruleset_unit(packet);
331 return TRUE;
332
335 return TRUE;
336
339 return TRUE;
340
343 return TRUE;
344
346 handle_ruleset_game(packet);
347 return TRUE;
348
351 return TRUE;
352
355 return TRUE;
356
358 handle_ruleset_tech(packet);
359 return TRUE;
360
363 return TRUE;
364
367 return TRUE;
368
371 return TRUE;
372
375 return TRUE;
376
379 return TRUE;
380
383 return TRUE;
384
387 return TRUE;
388
390 handle_ruleset_nation(packet);
391 return TRUE;
392
395 ((const struct packet_nation_availability *)packet)->ncount,
396 ((const struct packet_nation_availability *)packet)->is_pickable,
397 ((const struct packet_nation_availability *)packet)->nationset_change);
398 return TRUE;
399
401 handle_ruleset_style(packet);
402 return TRUE;
403
405 handle_ruleset_city(packet);
406 return TRUE;
407
410 return TRUE;
411
414 return TRUE;
415
418 return TRUE;
419
422 return TRUE;
423
426 return TRUE;
427
429 handle_ruleset_extra(packet);
430 return TRUE;
431
434 return TRUE;
435
437 handle_ruleset_base(packet);
438 return TRUE;
439
441 handle_ruleset_road(packet);
442 return TRUE;
443
445 handle_ruleset_goods(packet);
446 return TRUE;
447
450 return TRUE;
451
454 return TRUE;
455
457 handle_ruleset_trade(packet);
458 return TRUE;
459
461 handle_ruleset_action(packet);
462 return TRUE;
463
466 return TRUE;
467
470 return TRUE;
471
474 return TRUE;
475
477 handle_ruleset_music(packet);
478 return TRUE;
479
482 return TRUE;
483
485 handle_ruleset_clause(packet);
486 return TRUE;
487
490 return TRUE;
491
494 return TRUE;
495
498 return TRUE;
499
502 ((const struct packet_single_want_hack_reply *)packet)->you_have_hack);
503 return TRUE;
504
507 return TRUE;
508
509 case PACKET_GAME_LOAD:
511 ((const struct packet_game_load *)packet)->load_successful,
512 ((const struct packet_game_load *)packet)->load_filename);
513 return TRUE;
514
517 return TRUE;
518
521 return TRUE;
522
525 return TRUE;
526
529 return TRUE;
530
533 return TRUE;
534
537 return TRUE;
538
541 return TRUE;
542
545 ((const struct packet_set_topology *)packet)->topology_id,
546 ((const struct packet_set_topology *)packet)->wrap_id);
547 return TRUE;
548
550 handle_ruleset_effect(packet);
551 return TRUE;
552
555 return TRUE;
556
558 handle_scenario_info(packet);
559 return TRUE;
560
563 ((const struct packet_scenario_description *)packet)->description);
564 return TRUE;
565
566 case PACKET_VOTE_NEW:
567 handle_vote_new(packet);
568 return TRUE;
569
572 ((const struct packet_vote_update *)packet)->vote_no,
573 ((const struct packet_vote_update *)packet)->yes,
574 ((const struct packet_vote_update *)packet)->no,
575 ((const struct packet_vote_update *)packet)->abstain,
576 ((const struct packet_vote_update *)packet)->num_voters);
577 return TRUE;
578
581 ((const struct packet_vote_remove *)packet)->vote_no);
582 return TRUE;
583
586 ((const struct packet_vote_resolve *)packet)->vote_no,
587 ((const struct packet_vote_resolve *)packet)->passed);
588 return TRUE;
589
592 ((const struct packet_edit_fogofwar_state *)packet)->enabled);
593 return TRUE;
594
596 handle_edit_startpos(packet);
597 return TRUE;
598
601 return TRUE;
602
605 ((const struct packet_edit_object_created *)packet)->tag,
606 ((const struct packet_edit_object_created *)packet)->id);
607 return TRUE;
608
611 ((const struct packet_play_music *)packet)->tag);
612 return TRUE;
613
616 ((const struct packet_popup_image *)packet)->tag);
617 return TRUE;
618
621 ((const struct packet_sync_serial_reply *)packet)->serial);
622 return TRUE;
623
624 default:
625 return FALSE;
626 }
627}
void handle_city_rally_point(struct player *pplayer, const struct packet_city_rally_point *packet)
Definition cityhand.c:529
void handle_ruleset_choices(const struct packet_ruleset_choices *packet)
void handle_single_want_hack_reply(bool you_have_hack)
const char * caption
Definition dialogs_g.h:37
const char const char * headline
Definition dialogs_g.h:38
struct unit struct city struct unit struct tile struct extra_type const struct act_prob *act_probs int actor_unit_id struct unit struct unit int cost
Definition dialogs_g.h:74
void handle_edit_startpos_full(struct connection *pconn, const struct packet_edit_startpos_full *packet)
Definition edithand.c:1406
void handle_edit_startpos(struct connection *pconn, const struct packet_edit_startpos *packet)
Definition edithand.c:1368
enum event_type event
Definition events.c:81
void handle_game_load(bool load_successful, const char *filename)
Definition pages.c:2841
static void load_filename(const char *filename)
Definition pages.c:2856
void handle_authentication_req(enum authentication_type type, const char *message)
Definition pages.c:1007
GType type
Definition repodlgs.c:1313
void handle_worker_task(struct player *pplayer, const struct packet_worker_task *packet)
Definition unithand.c:6922
void handle_player_attribute_chunk(struct player *pplayer, const struct packet_player_attribute_chunk *packet)
Definition plrhand.c:3163
const char * name
Definition inputfile.c:127
void handle_server_setting_const(const struct packet_server_setting_const *packet)
Definition options.c:4557
void handle_server_setting_int(const struct packet_server_setting_int *packet)
Definition options.c:4651
void handle_server_setting_bitwise(const struct packet_server_setting_bitwise *packet)
Definition options.c:4822
void handle_server_setting_bool(const struct packet_server_setting_bool *packet)
Definition options.c:4616
void handle_server_setting_str(const struct packet_server_setting_str *packet)
Definition options.c:4688
void handle_server_setting_control(const struct packet_server_setting_control *packet)
Definition options.c:4523
void handle_server_setting_enum(const struct packet_server_setting_enum *packet)
Definition options.c:4733
packet_type
@ PACKET_DIPLOMACY_ACCEPT_TREATY
@ PACKET_RULESET_MULTIPLIER
@ PACKET_THAW_CLIENT
@ PACKET_RULESET_MUSIC
@ PACKET_RULESET_GOODS
@ PACKET_ENDGAME_PLAYER
@ PACKET_UNIT_ACTION_ANSWER
@ PACKET_SERVER_SETTING_ENUM
@ PACKET_SET_TOPOLOGY
@ PACKET_CONN_PING
@ PACKET_RULESET_COUNTER
@ PACKET_VOTE_UPDATE
@ PACKET_CITY_NAME_SUGGESTION_INFO
@ PACKET_PROCESSING_STARTED
@ PACKET_UNIT_REMOVE
@ PACKET_END_PHASE
@ PACKET_SERVER_SETTING_INT
@ PACKET_RULESET_EXTRA
@ PACKET_CONN_PING_INFO
@ PACKET_END_TURN
@ PACKET_NEW_YEAR
@ PACKET_ENDGAME_REPORT
@ PACKET_RULESET_ACTION_AUTO
@ PACKET_UNIT_COMBAT_INFO
@ PACKET_RULESETS_READY
@ PACKET_UNIT_SHORT_INFO
@ PACKET_RULESET_UNIT_CLASS_FLAG
@ PACKET_RULESET_TECH_CLASS
@ PACKET_SINGLE_WANT_HACK_REPLY
@ PACKET_GAME_INFO
@ PACKET_PROCESSING_FINISHED
@ PACKET_RULESET_ACTION
@ PACKET_UNKNOWN_RESEARCH
@ PACKET_NUKE_TILE_INFO
@ PACKET_PLAYER_DIPLSTATE
@ PACKET_RULESET_IMPR_FLAG
@ PACKET_RULESET_TECH
@ PACKET_RULESET_ROAD
@ PACKET_RULESET_NATION_SETS
@ PACKET_CITY_SABOTAGE_LIST
@ PACKET_MAP_INFO
@ PACKET_RULESET_CLAUSE
@ PACKET_CHAT_MSG
@ PACKET_EDIT_STARTPOS
@ PACKET_SERVER_SETTING_CONST
@ PACKET_BEGIN_TURN
@ PACKET_RULESET_TERRAIN_CONTROL
@ PACKET_GAME_LOAD
@ PACKET_CITY_UPDATE_COUNTERS
@ PACKET_PLAYER_REMOVE
@ PACKET_DIPLOMACY_CANCEL_MEETING
@ PACKET_START_PHASE
@ PACKET_SPACESHIP_INFO
@ PACKET_PLAYER_ATTRIBUTE_CHUNK
@ PACKET_RULESET_TERRAIN_FLAG
@ PACKET_RULESET_ACHIEVEMENT
@ PACKET_RULESET_EFFECT
@ PACKET_RULESET_DISASTER
@ PACKET_RULESET_CONTROL
@ PACKET_VOTE_NEW
@ PACKET_AUTHENTICATION_REQ
@ PACKET_RULESET_TRADE
@ PACKET_CONN_INFO
@ PACKET_SERVER_SETTING_BITWISE
@ PACKET_DIPLOMACY_INIT_MEETING
@ PACKET_RULESET_SUMMARY
@ PACKET_PLAY_MUSIC
@ PACKET_TRADE_ROUTE_INFO
@ PACKET_RULESET_STYLE
@ PACKET_RULESET_CITY
@ PACKET_CITY_NATIONALITIES
@ PACKET_FREEZE_CLIENT
@ PACKET_VOTE_RESOLVE
@ PACKET_POPUP_IMAGE
@ PACKET_TIMEOUT_INFO
@ PACKET_RULESET_GAME
@ PACKET_RULESET_UNIT_FLAG
@ PACKET_EDIT_FOGOFWAR_STATE
@ PACKET_DIPLOMACY_REMOVE_CLAUSE
@ PACKET_TILE_INFO
@ PACKET_EDIT_OBJECT_CREATED
@ PACKET_CITY_SHORT_INFO
@ PACKET_SYNC_SERIAL_REPLY
@ PACKET_CALENDAR_INFO
@ PACKET_SERVER_JOIN_REPLY
@ PACKET_SERVER_SETTING_STR
@ PACKET_SCENARIO_INFO
@ PACKET_RULESET_CHOICES
@ PACKET_RULESET_SPECIALIST
@ PACKET_CITY_REMOVE
@ PACKET_UNIT_INFO
@ PACKET_RULESET_NATION_GROUPS
@ PACKET_CONNECT_MSG
@ PACKET_EARLY_CHAT_MSG
@ PACKET_RULESET_UNIT_CLASS
@ PACKET_PLAYER_INFO
@ PACKET_SERVER_SHUTDOWN
@ PACKET_RULESET_TERRAIN
@ PACKET_RULESET_EXTRA_FLAG
@ PACKET_RULESET_DESCRIPTION_PART
@ PACKET_RULESET_BASE
@ PACKET_SERVER_SETTING_BOOL
@ PACKET_RESEARCH_INFO
@ PACKET_PAGE_MSG_PART
@ PACKET_RULESET_UNIT
@ PACKET_UNIT_ACTIONS
@ PACKET_INVESTIGATE_FINISHED
@ PACKET_RULESET_ACTION_ENABLER
@ PACKET_INVESTIGATE_STARTED
@ PACKET_CITY_RALLY_POINT
@ PACKET_RULESET_UNIT_BONUS
@ PACKET_RULESET_BUILDING
@ PACKET_RULESET_NATION
@ PACKET_SERVER_INFO
@ PACKET_RULESET_GOVERNMENT_RULER_TITLE
@ PACKET_DIPLOMACY_CREATE_CLAUSE
@ PACKET_RULESET_GOVERNMENT
@ PACKET_SCENARIO_DESCRIPTION
@ PACKET_SERVER_SETTING_CONTROL
@ PACKET_ACHIEVEMENT_INFO
@ PACKET_PAGE_MSG
@ PACKET_RULESET_TECH_FLAG
@ PACKET_RULESET_RESOURCE
@ PACKET_EDIT_STARTPOS_FULL
@ PACKET_TEAM_NAME_INFO
@ PACKET_CITY_INFO
@ PACKET_NATION_AVAILABILITY
@ PACKET_VOTE_REMOVE
@ PACKET_WORKER_TASK
void handle_ruleset_game(const struct packet_ruleset_game *packet)
Definition packhand.c:4851
void handle_player_diplstate(const struct packet_player_diplstate *packet)
Definition packhand.c:2801
void handle_ruleset_nation_sets(const struct packet_ruleset_nation_sets *packet)
Definition packhand.c:4632
void handle_ruleset_nation(const struct packet_ruleset_nation *packet)
Definition packhand.c:4674
void handle_city_name_suggestion_info(int unit_id, const char *name)
Definition packhand.c:4916
void handle_sync_serial_reply(int serial)
Definition packhand.c:5740
void handle_nuke_tile_info(int tile)
Definition packhand.c:553
void handle_unknown_research(int id)
Definition packhand.c:2771
void handle_ruleset_government_ruler_title(const struct packet_ruleset_government_ruler_title *packet)
Definition packhand.c:4128
void handle_city_info(const struct packet_city_info *packet)
Definition packhand.c:658
void handle_end_turn(void)
Definition packhand.c:1498
void handle_conn_info(const struct packet_conn_info *pinfo)
Definition packhand.c:2902
void handle_vote_remove(int vote_no)
Definition packhand.c:5560
void handle_investigate_finished(const struct packet_investigate_finished *packet)
Definition packhand.c:2162
void handle_page_msg_part(const char *lines)
Definition packhand.c:1628
void handle_unit_combat_info(const struct packet_unit_combat_info *packet)
Definition packhand.c:576
void handle_ruleset_style(const struct packet_ruleset_style *p)
Definition packhand.c:4782
void handle_unit_remove(int unit_id)
Definition packhand.c:499
void handle_vote_update(int vote_no, int yes, int no, int abstain, int num_voters)
Definition packhand.c:5569
void handle_ruleset_multiplier(const struct packet_ruleset_multiplier *p)
Definition packhand.c:4081
void handle_player_info(const struct packet_player_info *pinfo)
Definition packhand.c:2454
void handle_ruleset_extra(const struct packet_ruleset_extra *p)
Definition packhand.c:4269
void handle_ruleset_action_auto(const struct packet_ruleset_action_auto *p)
Definition packhand.c:4551
void handle_map_info(const struct packet_map_info *packet)
Definition packhand.c:2242
void handle_ruleset_unit_bonus(const struct packet_ruleset_unit_bonus *p)
Definition packhand.c:3800
void handle_start_phase(int phase)
Definition packhand.c:1425
void handle_timeout_info(float seconds_to_phasedone, float last_turn_change_time)
Definition packhand.c:2368
void handle_ruleset_terrain_control(const struct packet_ruleset_terrain_control *p)
Definition packhand.c:4619
void handle_play_music(const char *tag)
Definition packhand.c:5627
void handle_investigate_started(const struct packet_investigate_started *packet)
Definition packhand.c:2138
void handle_edit_object_created(int tag, int id)
Definition packhand.c:5473
int parts
Definition packhand.c:132
void handle_conn_ping(void)
Definition packhand.c:5446
void handle_ruleset_tech_class(const struct packet_ruleset_tech_class *p)
Definition packhand.c:3973
void handle_diplomacy_init_meeting(int counterpart, int initiated_from)
Definition packhand.c:5643
void handle_ruleset_control(const struct packet_ruleset_control *packet)
Definition packhand.c:3533
void handle_end_phase(void)
Definition packhand.c:1414
void handle_ruleset_counter(const struct packet_ruleset_counter *packet)
Definition packhand.c:5687
void handle_server_info(const char *version_label, int major_version, int minor_version, int patch_version, int emerg_version)
Definition packhand.c:1581
void handle_ruleset_nation_groups(const struct packet_ruleset_nation_groups *packet)
Definition packhand.c:4653
void handle_ruleset_effect(const struct packet_ruleset_effect *packet)
Definition packhand.c:5462
void handle_new_year(int year, int fragments, int turn)
Definition packhand.c:1365
void handle_research_info(const struct packet_research_info *packet)
Definition packhand.c:2687
void handle_ruleset_goods(const struct packet_ruleset_goods *p)
Definition packhand.c:4468
void handle_unit_info(const struct packet_unit_info *packet)
Definition packhand.c:1654
void handle_ruleset_city(const struct packet_ruleset_city *packet)
Definition packhand.c:4810
void handle_ruleset_unit_class(const struct packet_ruleset_unit_class *p)
Definition packhand.c:3711
void handle_ruleset_government(const struct packet_ruleset_government *p)
Definition packhand.c:4103
void handle_ruleset_terrain_flag(const struct packet_ruleset_terrain_flag *p)
Definition packhand.c:4225
void handle_connect_msg(const char *message)
Definition packhand.c:1572
void handle_rulesets_ready(void)
Definition packhand.c:3657
void handle_tile_info(const struct packet_tile_info *packet)
Definition packhand.c:3241
void handle_ruleset_action(const struct packet_ruleset_action *p)
Definition packhand.c:4491
void handle_achievement_info(int id, bool gained, bool first)
Definition packhand.c:3031
void handle_scenario_description(const char *description)
Definition packhand.c:3521
void handle_processing_finished(void)
Definition packhand.c:5381
void handle_diplomacy_cancel_meeting(int counterpart, int initiated_from)
Definition packhand.c:5660
void handle_city_short_info(const struct packet_city_short_info *packet)
Definition packhand.c:1166
void handle_edit_fogofwar_state(bool enabled)
Definition packhand.c:5550
void handle_popup_image(const char *tag)
Definition packhand.c:5635
void handle_diplomacy_create_clause(int counterpart, int giver, enum clause_type type, int value)
Definition packhand.c:5668
void handle_endgame_player(const struct packet_endgame_player *packet)
Definition packhand.c:5328
void handle_ruleset_resource(const struct packet_ruleset_resource *p)
Definition packhand.c:4250
void handle_unit_action_answer(int actor_id, int target_id, int cost, action_id action_type, int request_kind)
Definition packhand.c:4952
void handle_ruleset_tech(const struct packet_ruleset_tech *p)
Definition packhand.c:3904
void handle_team_name_info(int team_id, const char *team_name)
Definition packhand.c:561
void handle_thaw_client(void)
Definition packhand.c:5435
void handle_calendar_info(const struct packet_calendar_info *pcalendar)
Definition packhand.c:2360
void handle_ruleset_disaster(const struct packet_ruleset_disaster *p)
Definition packhand.c:4570
void handle_ruleset_unit_class_flag(const struct packet_ruleset_unit_class_flag *p)
Definition packhand.c:3845
void handle_server_join_reply(bool you_can_join, const char *message, const char *capability, const char *challenge_file, int conn_id)
Definition packhand.c:408
void handle_ruleset_summary(const struct packet_ruleset_summary *packet)
Definition packhand.c:3629
void handle_set_topology(int topology_id, int wrap_id)
Definition packhand.c:2219
void handle_ruleset_impr_flag(const struct packet_ruleset_impr_flag *p)
Definition packhand.c:4055
void handle_page_msg(const char *caption, const char *headline, enum event_type event, int len, int parts)
Definition packhand.c:1597
void handle_city_update_counters(const struct packet_city_update_counters *packet)
Definition packhand.c:5710
void handle_conn_ping_info(int connections, const int *conn_id, const float *ping_time)
Definition packhand.c:3008
void handle_diplomacy_remove_clause(int counterpart, int giver, enum clause_type type, int value)
Definition packhand.c:5677
void handle_player_remove(int playerno)
Definition packhand.c:2409
void handle_processing_started(void)
Definition packhand.c:5363
void handle_begin_turn(void)
Definition packhand.c:1484
void handle_endgame_report(const struct packet_endgame_report *packet)
Definition packhand.c:5319
void handle_early_chat_msg(const struct packet_early_chat_msg *packet)
Definition packhand.c:1558
void handle_ruleset_clause(const struct packet_ruleset_clause *p)
Definition packhand.c:4794
void handle_ruleset_road(const struct packet_ruleset_road *p)
Definition packhand.c:4441
void handle_unit_actions(const struct packet_unit_actions *packet)
Definition packhand.c:5188
void handle_ruleset_music(const struct packet_ruleset_music *packet)
Definition packhand.c:4832
void handle_ruleset_base(const struct packet_ruleset_base *p)
Definition packhand.c:4420
void handle_freeze_client(void)
Definition packhand.c:5425
void handle_city_remove(int city_id)
Definition packhand.c:476
void handle_chat_msg(const struct packet_chat_msg *packet)
Definition packhand.c:1538
void handle_trade_route_info(const struct packet_trade_route_info *packet)
Definition packhand.c:1131
void handle_vote_new(const struct packet_vote_new *packet)
Definition packhand.c:5591
void handle_scenario_info(const struct packet_scenario_info *packet)
Definition packhand.c:3500
void handle_ruleset_extra_flag(const struct packet_ruleset_extra_flag *p)
Definition packhand.c:4394
char * lines
Definition packhand.c:131
void handle_ruleset_tech_flag(const struct packet_ruleset_tech_flag *p)
Definition packhand.c:3986
void handle_nation_availability(int ncount, const bool *is_pickable, bool nationset_change)
Definition packhand.c:4764
void handle_spaceship_info(const struct packet_spaceship_info *p)
Definition packhand.c:3087
void handle_ruleset_specialist(const struct packet_ruleset_specialist *p)
Definition packhand.c:4896
void handle_unit_short_info(const struct packet_unit_short_info *packet)
Definition packhand.c:2169
void handle_diplomacy_accept_treaty(int counterpart, bool I_accepted, bool other_accepted)
Definition packhand.c:5651
void handle_ruleset_unit_flag(const struct packet_ruleset_unit_flag *p)
Definition packhand.c:3820
void handle_city_nationalities(const struct packet_city_nationalities *packet)
Definition packhand.c:995
void handle_server_shutdown(void)
Definition packhand.c:5454
void handle_ruleset_building(const struct packet_ruleset_building *p)
Definition packhand.c:4011
void handle_ruleset_unit(const struct packet_ruleset_unit *p)
Definition packhand.c:3729
void handle_ruleset_terrain(const struct packet_ruleset_terrain *p)
Definition packhand.c:4142
void handle_city_sabotage_list(int actor_id, int city_id, bv_imprs improvements, action_id act_id, int request_kind)
Definition packhand.c:5258
void handle_ruleset_action_enabler(const struct packet_ruleset_action_enabler *p)
Definition packhand.c:4525
void handle_ruleset_achievement(const struct packet_ruleset_achievement *p)
Definition packhand.c:4588
void handle_game_info(const struct packet_game_info *pinfo)
Definition packhand.c:2284
void handle_vote_resolve(int vote_no, bool passed)
Definition packhand.c:5608
void handle_ruleset_description_part(const struct packet_ruleset_description_part *packet)
Definition packhand.c:3647
void handle_ruleset_trade(const struct packet_ruleset_trade *p)
Definition packhand.c:4604
int len
Definition packhand.c:127
bool client_handle_packet(enum packet_type type, const void *packet)
static struct connection connections[MAX_NUM_CONNECTIONS]
Definition sernet.c:94
Definition tile.h:50
#define TRUE
Definition support.h:46
#define FALSE
Definition support.h:47