Freeciv-3.1
Loading...
Searching...
No Matches
packhand_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 "packhand_gen.h"
19
20bool client_handle_packet(enum packet_type type, const void *packet)
21{
22 switch (type) {
25 return TRUE;
26
29 return TRUE;
30
33 ((const struct packet_investigate_started *)packet)->unit_id16,
34 ((const struct packet_investigate_started *)packet)->unit_id32,
35 ((const struct packet_investigate_started *)packet)->city_id16,
36 ((const struct packet_investigate_started *)packet)->city_id32);
37 return TRUE;
38
41 ((const struct packet_investigate_finished *)packet)->unit_id16,
42 ((const struct packet_investigate_finished *)packet)->unit_id32,
43 ((const struct packet_investigate_finished *)packet)->city_id16,
44 ((const struct packet_investigate_finished *)packet)->city_id32);
45 return TRUE;
46
49 ((const struct packet_server_join_reply *)packet)->you_can_join,
50 ((const struct packet_server_join_reply *)packet)->message,
51 ((const struct packet_server_join_reply *)packet)->capability,
52 ((const struct packet_server_join_reply *)packet)->challenge_file,
53 ((const struct packet_server_join_reply *)packet)->conn_id);
54 return TRUE;
55
58 ((const struct packet_authentication_req *)packet)->type,
59 ((const struct packet_authentication_req *)packet)->message);
60 return TRUE;
61
64 return TRUE;
65
68 return TRUE;
69
72 return TRUE;
73
75 handle_tile_info(packet);
76 return TRUE;
77
79 handle_game_info(packet);
80 return TRUE;
81
84 return TRUE;
85
88 ((const struct packet_timeout_info *)packet)->seconds_to_phasedone,
89 ((const struct packet_timeout_info *)packet)->last_turn_change_time);
90 return TRUE;
91
92 case PACKET_MAP_INFO:
94 ((const struct packet_map_info *)packet)->xsize,
95 ((const struct packet_map_info *)packet)->ysize,
96 ((const struct packet_map_info *)packet)->topology_id);
97 return TRUE;
98
101 ((const struct packet_nuke_tile_info *)packet)->tile);
102 return TRUE;
103
106 ((const struct packet_team_name_info *)packet)->team_id,
107 ((const struct packet_team_name_info *)packet)->team_name);
108 return TRUE;
109
112 ((const struct packet_achievement_info *)packet)->id,
113 ((const struct packet_achievement_info *)packet)->gained,
114 ((const struct packet_achievement_info *)packet)->first);
115 return TRUE;
116
117 case PACKET_CHAT_MSG:
118 handle_chat_msg(packet);
119 return TRUE;
120
122 handle_early_chat_msg(packet);
123 return TRUE;
124
127 ((const struct packet_connect_msg *)packet)->message);
128 return TRUE;
129
132 ((const struct packet_server_info *)packet)->version_label,
133 ((const struct packet_server_info *)packet)->major_version,
134 ((const struct packet_server_info *)packet)->minor_version,
135 ((const struct packet_server_info *)packet)->patch_version,
136 ((const struct packet_server_info *)packet)->emerg_version);
137 return TRUE;
138
141 ((const struct packet_city_remove *)packet)->city_id16,
142 ((const struct packet_city_remove *)packet)->city_id32);
143 return TRUE;
144
145 case PACKET_CITY_INFO:
146 handle_city_info(packet);
147 return TRUE;
148
151 return TRUE;
152
155 return TRUE;
156
159 return TRUE;
160
163 ((const struct packet_city_name_suggestion_info *)packet)->unit_id16,
164 ((const struct packet_city_name_suggestion_info *)packet)->unit_id32,
165 ((const struct packet_city_name_suggestion_info *)packet)->name);
166 return TRUE;
167
170 return TRUE;
171
174 return TRUE;
175
177 handle_worker_task(packet);
178 return TRUE;
179
182 ((const struct packet_player_remove *)packet)->playerno);
183 return TRUE;
184
186 handle_player_info(packet);
187 return TRUE;
188
191 return TRUE;
192
195 return TRUE;
196
198 handle_research_info(packet);
199 return TRUE;
200
203 ((const struct packet_unknown_research *)packet)->id);
204 return TRUE;
205
208 ((const struct packet_unit_remove *)packet)->unit_id16,
209 ((const struct packet_unit_remove *)packet)->unit_id32);
210 return TRUE;
211
212 case PACKET_UNIT_INFO:
213 handle_unit_info(packet);
214 return TRUE;
215
218 return TRUE;
219
222 return TRUE;
223
226 return TRUE;
227
229 handle_unit_actions(packet);
230 return TRUE;
231
234 ((const struct packet_diplomacy_init_meeting *)packet)->counterpart,
235 ((const struct packet_diplomacy_init_meeting *)packet)->initiated_from);
236 return TRUE;
237
240 ((const struct packet_diplomacy_cancel_meeting *)packet)->counterpart,
241 ((const struct packet_diplomacy_cancel_meeting *)packet)->initiated_from);
242 return TRUE;
243
246 ((const struct packet_diplomacy_create_clause *)packet)->counterpart,
247 ((const struct packet_diplomacy_create_clause *)packet)->giver,
248 ((const struct packet_diplomacy_create_clause *)packet)->type,
249 ((const struct packet_diplomacy_create_clause *)packet)->value);
250 return TRUE;
251
254 ((const struct packet_diplomacy_remove_clause *)packet)->counterpart,
255 ((const struct packet_diplomacy_remove_clause *)packet)->giver,
256 ((const struct packet_diplomacy_remove_clause *)packet)->type,
257 ((const struct packet_diplomacy_remove_clause *)packet)->value);
258 return TRUE;
259
262 ((const struct packet_diplomacy_accept_treaty *)packet)->counterpart,
263 ((const struct packet_diplomacy_accept_treaty *)packet)->I_accepted,
264 ((const struct packet_diplomacy_accept_treaty *)packet)->other_accepted);
265 return TRUE;
266
267 case PACKET_PAGE_MSG:
269 ((const struct packet_page_msg *)packet)->caption,
270 ((const struct packet_page_msg *)packet)->headline,
271 ((const struct packet_page_msg *)packet)->event,
272 ((const struct packet_page_msg *)packet)->len,
273 ((const struct packet_page_msg *)packet)->parts);
274 return TRUE;
275
278 ((const struct packet_page_msg_part *)packet)->lines);
279 return TRUE;
280
281 case PACKET_CONN_INFO:
282 handle_conn_info(packet);
283 return TRUE;
284
287 ((const struct packet_conn_ping_info *)packet)->connections,
288 ((const struct packet_conn_ping_info *)packet)->conn_id,
289 ((const struct packet_conn_ping_info *)packet)->ping_time);
290 return TRUE;
291
292 case PACKET_CONN_PING:
294 return TRUE;
295
296 case PACKET_END_PHASE:
298 return TRUE;
299
302 ((const struct packet_start_phase *)packet)->phase);
303 return TRUE;
304
305 case PACKET_NEW_YEAR:
307 ((const struct packet_new_year *)packet)->year,
308 ((const struct packet_new_year *)packet)->fragments,
309 ((const struct packet_new_year *)packet)->turn);
310 return TRUE;
311
314 return TRUE;
315
316 case PACKET_END_TURN:
318 return TRUE;
319
322 return TRUE;
323
326 return TRUE;
327
329 handle_spaceship_info(packet);
330 return TRUE;
331
333 handle_ruleset_unit(packet);
334 return TRUE;
335
338 return TRUE;
339
342 return TRUE;
343
346 return TRUE;
347
349 handle_ruleset_game(packet);
350 return TRUE;
351
354 return TRUE;
355
358 return TRUE;
359
361 handle_ruleset_tech(packet);
362 return TRUE;
363
366 return TRUE;
367
370 return TRUE;
371
374 return TRUE;
375
378 return TRUE;
379
382 return TRUE;
383
386 return TRUE;
387
390 return TRUE;
391
393 handle_ruleset_nation(packet);
394 return TRUE;
395
398 ((const struct packet_nation_availability *)packet)->ncount,
399 ((const struct packet_nation_availability *)packet)->is_pickable,
400 ((const struct packet_nation_availability *)packet)->nationset_change);
401 return TRUE;
402
404 handle_ruleset_style(packet);
405 return TRUE;
406
408 handle_ruleset_city(packet);
409 return TRUE;
410
413 return TRUE;
414
417 return TRUE;
418
421 return TRUE;
422
425 return TRUE;
426
428 handle_ruleset_extra(packet);
429 return TRUE;
430
433 return TRUE;
434
436 handle_ruleset_base(packet);
437 return TRUE;
438
440 handle_ruleset_road(packet);
441 return TRUE;
442
444 handle_ruleset_goods(packet);
445 return TRUE;
446
449 return TRUE;
450
453 return TRUE;
454
456 handle_ruleset_trade(packet);
457 return TRUE;
458
460 handle_ruleset_action(packet);
461 return TRUE;
462
465 return TRUE;
466
469 return TRUE;
470
472 handle_ruleset_music(packet);
473 return TRUE;
474
477 return TRUE;
478
480 handle_ruleset_clause(packet);
481 return TRUE;
482
485 return TRUE;
486
489 return TRUE;
490
493 return TRUE;
494
497 ((const struct packet_single_want_hack_reply *)packet)->you_have_hack);
498 return TRUE;
499
502 return TRUE;
503
504 case PACKET_GAME_LOAD:
506 ((const struct packet_game_load *)packet)->load_successful,
507 ((const struct packet_game_load *)packet)->load_filename);
508 return TRUE;
509
512 return TRUE;
513
516 return TRUE;
517
520 return TRUE;
521
524 return TRUE;
525
528 return TRUE;
529
532 return TRUE;
533
536 return TRUE;
537
540 ((const struct packet_set_topology *)packet)->topology_id);
541 return TRUE;
542
544 handle_ruleset_effect(packet);
545 return TRUE;
546
549 return TRUE;
550
552 handle_scenario_info(packet);
553 return TRUE;
554
557 ((const struct packet_scenario_description *)packet)->description);
558 return TRUE;
559
560 case PACKET_VOTE_NEW:
561 handle_vote_new(packet);
562 return TRUE;
563
566 ((const struct packet_vote_update *)packet)->vote_no,
567 ((const struct packet_vote_update *)packet)->yes,
568 ((const struct packet_vote_update *)packet)->no,
569 ((const struct packet_vote_update *)packet)->abstain,
570 ((const struct packet_vote_update *)packet)->num_voters);
571 return TRUE;
572
575 ((const struct packet_vote_remove *)packet)->vote_no);
576 return TRUE;
577
580 ((const struct packet_vote_resolve *)packet)->vote_no,
581 ((const struct packet_vote_resolve *)packet)->passed);
582 return TRUE;
583
585 handle_edit_startpos(packet);
586 return TRUE;
587
590 return TRUE;
591
594 ((const struct packet_edit_object_created *)packet)->tag,
595 ((const struct packet_edit_object_created *)packet)->id);
596 return TRUE;
597
600 ((const struct packet_play_music *)packet)->tag);
601 return TRUE;
602
605 ((const struct packet_web_city_info_addition *)packet)->id16,
606 ((const struct packet_web_city_info_addition *)packet)->id32,
607 ((const struct packet_web_city_info_addition *)packet)->granary_size,
608 ((const struct packet_web_city_info_addition *)packet)->granary_turns);
609 return TRUE;
610
613 ((const struct packet_web_player_info_addition *)packet)->playerno,
614 ((const struct packet_web_player_info_addition *)packet)->expected_income);
615 return TRUE;
616
619 ((const struct packet_web_ruleset_unit_addition *)packet)->id,
620 ((const struct packet_web_ruleset_unit_addition *)packet)->utype_actions);
621 return TRUE;
622
623 default:
624 return FALSE;
625 }
626}
void handle_city_rally_point(struct player *pplayer, const struct packet_city_rally_point *packet)
Definition cityhand.c:588
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:36
const char const char * headline
Definition dialogs_g.h:37
int int initiated_from int int giver
Definition diplodlg_g.h:28
int int initiated_from handle_diplomacy_remove_clause
Definition diplodlg_g.h:28
handle_diplomacy_cancel_meeting
Definition diplodlg_g.h:24
int counterpart
Definition diplodlg_g.h:25
void handle_edit_startpos_full(struct connection *pconn, const struct packet_edit_startpos_full *packet)
Definition edithand.c:1399
void handle_edit_startpos(struct connection *pconn, const struct packet_edit_startpos *packet)
Definition edithand.c:1361
enum event_type event
Definition events.c:81
void handle_diplomacy_init_meeting(int counterpart, int initiated_from)
Definition diplodlg.c:135
void handle_diplomacy_create_clause(int counterpart, int giver, enum clause_type type, int value)
Definition diplodlg.c:157
void handle_diplomacy_accept_treaty(int counterpart, bool I_accepted, bool other_accepted)
Definition diplodlg.c:116
void handle_game_load(bool load_successful, const char *filename)
Definition pages.c:2837
static void load_filename(const char *filename)
Definition pages.c:2852
void handle_authentication_req(enum authentication_type type, const char *message)
Definition pages.c:1004
GType type
Definition repodlgs.c:1312
void handle_worker_task(struct player *pplayer, const struct packet_worker_task *packet)
Definition unithand.c:6435
void handle_player_attribute_chunk(struct player *pplayer, const struct packet_player_attribute_chunk *packet)
Definition plrhand.c:2989
const char * name
Definition inputfile.c:127
void handle_server_setting_const(const struct packet_server_setting_const *packet)
Definition options.c:4288
void handle_server_setting_int(const struct packet_server_setting_int *packet)
Definition options.c:4380
void handle_server_setting_bitwise(const struct packet_server_setting_bitwise *packet)
Definition options.c:4551
void handle_server_setting_bool(const struct packet_server_setting_bool *packet)
Definition options.c:4345
void handle_server_setting_str(const struct packet_server_setting_str *packet)
Definition options.c:4417
void handle_server_setting_control(const struct packet_server_setting_control *packet)
Definition options.c:4254
void handle_server_setting_enum(const struct packet_server_setting_enum *packet)
Definition options.c:4462
packet_type
@ PACKET_DIPLOMACY_ACCEPT_TREATY
@ PACKET_WEB_PLAYER_INFO_ADDITION
@ 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_WEB_CITY_INFO_ADDITION
@ PACKET_CONN_PING
@ 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_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_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_TIMEOUT_INFO
@ PACKET_RULESET_GAME
@ PACKET_RULESET_UNIT_FLAG
@ PACKET_DIPLOMACY_REMOVE_CLAUSE
@ PACKET_TILE_INFO
@ PACKET_EDIT_OBJECT_CREATED
@ PACKET_CITY_SHORT_INFO
@ 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_WEB_RULESET_UNIT_ADDITION
@ 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:4908
void handle_player_diplstate(const struct packet_player_diplstate *packet)
Definition packhand.c:2928
void handle_ruleset_nation_sets(const struct packet_ruleset_nation_sets *packet)
Definition packhand.c:4674
void handle_ruleset_nation(const struct packet_ruleset_nation *packet)
Definition packhand.c:4716
void handle_nuke_tile_info(int tile)
Definition packhand.c:573
void handle_unknown_research(int id)
Definition packhand.c:2898
void handle_city_sabotage_list(const struct packet_city_sabotage_list *packet)
Definition packhand.c:5325
void handle_ruleset_government_ruler_title(const struct packet_ruleset_government_ruler_title *packet)
Definition packhand.c:4152
void handle_city_info(const struct packet_city_info *packet)
Definition packhand.c:689
void handle_end_turn(void)
Definition packhand.c:1585
void handle_conn_info(const struct packet_conn_info *pinfo)
Definition packhand.c:3032
void handle_vote_remove(int vote_no)
Definition packhand.c:5627
void handle_page_msg_part(const char *lines)
Definition packhand.c:1715
void handle_unit_combat_info(const struct packet_unit_combat_info *packet)
Definition packhand.c:596
void handle_ruleset_style(const struct packet_ruleset_style *p)
Definition packhand.c:4824
void handle_vote_update(int vote_no, int yes, int no, int abstain, int num_voters)
Definition packhand.c:5636
void handle_unit_remove(int unit_id16, int unit_id32)
Definition packhand.c:513
void handle_ruleset_multiplier(const struct packet_ruleset_multiplier *p)
Definition packhand.c:4097
void handle_player_info(const struct packet_player_info *pinfo)
Definition packhand.c:2572
void handle_ruleset_extra(const struct packet_ruleset_extra *p)
Definition packhand.c:4283
void handle_ruleset_action_auto(const struct packet_ruleset_action_auto *p)
Definition packhand.c:4586
void handle_web_player_info_addition(int playerno, int expected_income)
Definition packhand.c:2807
void handle_ruleset_unit_bonus(const struct packet_ruleset_unit_bonus *p)
Definition packhand.c:3838
void handle_start_phase(int phase)
Definition packhand.c:1512
void handle_timeout_info(float seconds_to_phasedone, float last_turn_change_time)
Definition packhand.c:2486
void handle_ruleset_terrain_control(const struct packet_ruleset_terrain_control *p)
Definition packhand.c:4661
void handle_play_music(const char *tag)
Definition packhand.c:5692
void handle_edit_object_created(int tag, int id)
Definition packhand.c:5550
int parts
Definition packhand.c:130
void handle_conn_ping(void)
Definition packhand.c:5523
void handle_ruleset_tech_class(const struct packet_ruleset_tech_class *p)
Definition packhand.c:4010
void handle_ruleset_control(const struct packet_ruleset_control *packet)
Definition packhand.c:3557
void handle_end_phase(void)
Definition packhand.c:1501
void handle_server_info(const char *version_label, int major_version, int minor_version, int patch_version, int emerg_version)
Definition packhand.c:1668
void handle_ruleset_nation_groups(const struct packet_ruleset_nation_groups *packet)
Definition packhand.c:4695
void handle_ruleset_effect(const struct packet_ruleset_effect *packet)
Definition packhand.c:5539
void handle_new_year(int year, int fragments, int turn)
Definition packhand.c:1452
void handle_research_info(const struct packet_research_info *packet)
Definition packhand.c:2814
void handle_ruleset_goods(const struct packet_ruleset_goods *p)
Definition packhand.c:4493
void handle_unit_info(const struct packet_unit_info *packet)
Definition packhand.c:1741
void handle_ruleset_city(const struct packet_ruleset_city *packet)
Definition packhand.c:4859
void handle_ruleset_unit_class(const struct packet_ruleset_unit_class *p)
Definition packhand.c:3738
void handle_ruleset_government(const struct packet_ruleset_government *p)
Definition packhand.c:4125
void handle_ruleset_terrain_flag(const struct packet_ruleset_terrain_flag *p)
Definition packhand.c:4239
void handle_connect_msg(const char *message)
Definition packhand.c:1659
void handle_rulesets_ready(void)
Definition packhand.c:3684
void handle_tile_info(const struct packet_tile_info *packet)
Definition packhand.c:3262
void handle_ruleset_action(const struct packet_ruleset_action *p)
Definition packhand.c:4518
void handle_achievement_info(int id, bool gained, bool first)
Definition packhand.c:3161
void handle_scenario_description(const char *description)
Definition packhand.c:3545
void handle_processing_finished(void)
Definition packhand.c:5458
void handle_city_remove(int city_id16, int city_id32)
Definition packhand.c:484
void handle_city_name_suggestion_info(int unit_id16, int unit_id32, const char *name)
Definition packhand.c:4979
void handle_city_short_info(const struct packet_city_short_info *packet)
Definition packhand.c:1239
void handle_endgame_player(const struct packet_endgame_player *packet)
Definition packhand.c:5405
void handle_ruleset_resource(const struct packet_ruleset_resource *p)
Definition packhand.c:4264
void handle_web_ruleset_unit_addition(int id, bv_actions utype_actions)
Definition packhand.c:3831
void handle_ruleset_tech(const struct packet_ruleset_tech *p)
Definition packhand.c:3945
void handle_team_name_info(int team_id, const char *team_name)
Definition packhand.c:581
void handle_thaw_client(void)
Definition packhand.c:5512
void handle_calendar_info(const struct packet_calendar_info *pcalendar)
Definition packhand.c:2478
void handle_unit_action_answer(const struct packet_unit_action_answer *packet)
Definition packhand.c:5022
void handle_ruleset_disaster(const struct packet_ruleset_disaster *p)
Definition packhand.c:4608
void handle_ruleset_unit_class_flag(const struct packet_ruleset_unit_class_flag *p)
Definition packhand.c:3883
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:416
void handle_ruleset_summary(const struct packet_ruleset_summary *packet)
Definition packhand.c:3656
void handle_page_msg(const char *caption, const char *headline, enum event_type event, int len, int parts)
Definition packhand.c:1684
void handle_conn_ping_info(int connections, const int *conn_id, const float *ping_time)
Definition packhand.c:3138
void handle_player_remove(int playerno)
Definition packhand.c:2527
void handle_processing_started(void)
Definition packhand.c:5440
void handle_begin_turn(void)
Definition packhand.c:1571
void handle_endgame_report(const struct packet_endgame_report *packet)
Definition packhand.c:5396
void handle_early_chat_msg(const struct packet_early_chat_msg *packet)
Definition packhand.c:1645
void handle_ruleset_clause(const struct packet_ruleset_clause *p)
Definition packhand.c:4836
void handle_ruleset_road(const struct packet_ruleset_road *p)
Definition packhand.c:4462
void handle_web_city_info_addition(int id16, int id32, int granary_size, int granary_turns)
Definition packhand.c:1039
void handle_unit_actions(const struct packet_unit_actions *packet)
Definition packhand.c:5243
void handle_ruleset_music(const struct packet_ruleset_music *packet)
Definition packhand.c:4885
void handle_ruleset_base(const struct packet_ruleset_base *p)
Definition packhand.c:4441
void handle_freeze_client(void)
Definition packhand.c:5502
void handle_chat_msg(const struct packet_chat_msg *packet)
Definition packhand.c:1625
void handle_trade_route_info(const struct packet_trade_route_info *packet)
Definition packhand.c:1195
void handle_vote_new(const struct packet_vote_new *packet)
Definition packhand.c:5657
void handle_set_topology(int topology_id)
Definition packhand.c:2344
void handle_scenario_info(const struct packet_scenario_info *packet)
Definition packhand.c:3524
void handle_ruleset_extra_flag(const struct packet_ruleset_extra_flag *p)
Definition packhand.c:4415
char * lines
Definition packhand.c:129
void handle_ruleset_tech_flag(const struct packet_ruleset_tech_flag *p)
Definition packhand.c:4023
void handle_nation_availability(int ncount, const bool *is_pickable, bool nationset_change)
Definition packhand.c:4806
void handle_spaceship_info(const struct packet_spaceship_info *p)
Definition packhand.c:3217
void handle_investigate_finished(int unit_id16, int unit_id32, int city_id16, int city_id32)
Definition packhand.c:2250
void handle_ruleset_specialist(const struct packet_ruleset_specialist *p)
Definition packhand.c:4953
void handle_unit_short_info(const struct packet_unit_short_info *packet)
Definition packhand.c:2258
void handle_ruleset_unit_flag(const struct packet_ruleset_unit_flag *p)
Definition packhand.c:3858
void handle_city_nationalities(const struct packet_city_nationalities *packet)
Definition packhand.c:1047
void handle_server_shutdown(void)
Definition packhand.c:5531
void handle_ruleset_building(const struct packet_ruleset_building *p)
Definition packhand.c:4048
void handle_map_info(int xsize, int ysize, int topology_id)
Definition packhand.c:2366
void handle_ruleset_unit(const struct packet_ruleset_unit *p)
Definition packhand.c:3756
void handle_ruleset_terrain(const struct packet_ruleset_terrain *p)
Definition packhand.c:4166
void handle_ruleset_action_enabler(const struct packet_ruleset_action_enabler *p)
Definition packhand.c:4552
void handle_ruleset_achievement(const struct packet_ruleset_achievement *p)
Definition packhand.c:4630
void handle_game_info(const struct packet_game_info *pinfo)
Definition packhand.c:2402
void handle_vote_resolve(int vote_no, bool passed)
Definition packhand.c:5674
void handle_ruleset_description_part(const struct packet_ruleset_description_part *packet)
Definition packhand.c:3674
void handle_ruleset_trade(const struct packet_ruleset_trade *p)
Definition packhand.c:4646
void handle_investigate_started(int unit_id16, int unit_id32, int city_id16, int city_id32)
Definition packhand.c:2218
int len
Definition packhand.c:125
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:49
#define TRUE
Definition support.h:46
#define FALSE
Definition support.h:47