Freeciv-3.1
Loading...
Searching...
No Matches
packhand_gen.h
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#ifndef FC__PACKHAND_GEN_H
11#define FC__PACKHAND_GEN_H
12
13#ifdef __cplusplus
14extern "C" {
15#endif /* __cplusplus */
16
17/* utility */
18#include "shared.h"
19
20/* common */
21#include "packets.h"
22
23bool client_handle_packet(enum packet_type type, const void *packet);
24
27void handle_investigate_started(int unit_id16, int unit_id32, int city_id16, int city_id32);
28void handle_investigate_finished(int unit_id16, int unit_id32, int city_id16, int city_id32);
29void handle_server_join_reply(bool you_can_join, const char *message, const char *capability, const char *challenge_file, int conn_id);
31void handle_server_shutdown(void);
33void handle_endgame_report(const struct packet_endgame_report *packet);
35void handle_endgame_player(const struct packet_endgame_player *packet);
36struct packet_tile_info;
37void handle_tile_info(const struct packet_tile_info *packet);
38struct packet_game_info;
39void handle_game_info(const struct packet_game_info *packet);
41void handle_calendar_info(const struct packet_calendar_info *packet);
42void handle_timeout_info(float seconds_to_phasedone, float last_turn_change_time);
43void handle_map_info(int xsize, int ysize, int topology_id);
45void handle_team_name_info(int team_id, const char *team_name);
46void handle_achievement_info(int id, bool gained, bool first);
47struct packet_chat_msg;
48void handle_chat_msg(const struct packet_chat_msg *packet);
50void handle_early_chat_msg(const struct packet_early_chat_msg *packet);
51void handle_connect_msg(const char *message);
52void handle_server_info(const char *version_label, int major_version, int minor_version, int patch_version, int emerg_version);
53void handle_city_remove(int city_id16, int city_id32);
54struct packet_city_info;
55void handle_city_info(const struct packet_city_info *packet);
59void handle_city_short_info(const struct packet_city_short_info *packet);
61void handle_trade_route_info(const struct packet_trade_route_info *packet);
62void handle_city_name_suggestion_info(int unit_id16, int unit_id32, const char *name);
66void handle_city_rally_point(const struct packet_city_rally_point *packet);
68void handle_worker_task(const struct packet_worker_task *packet);
69void handle_player_remove(int playerno);
71void handle_player_info(const struct packet_player_info *packet);
75void handle_player_diplstate(const struct packet_player_diplstate *packet);
77void handle_research_info(const struct packet_research_info *packet);
78void handle_unknown_research(int id);
79void handle_unit_remove(int unit_id16, int unit_id32);
80struct packet_unit_info;
81void handle_unit_info(const struct packet_unit_info *packet);
83void handle_unit_short_info(const struct packet_unit_short_info *packet);
85void handle_unit_combat_info(const struct packet_unit_combat_info *packet);
89void handle_unit_actions(const struct packet_unit_actions *packet);
90void handle_diplomacy_init_meeting(int counterpart, int initiated_from);
91void handle_diplomacy_cancel_meeting(int counterpart, int initiated_from);
92void handle_diplomacy_create_clause(int counterpart, int giver, enum clause_type type, int value);
93void handle_diplomacy_remove_clause(int counterpart, int giver, enum clause_type type, int value);
94void handle_diplomacy_accept_treaty(int counterpart, bool I_accepted, bool other_accepted);
95void handle_page_msg(const char *caption, const char *headline, enum event_type event, int len, int parts);
96void handle_page_msg_part(const char *lines);
97struct packet_conn_info;
98void handle_conn_info(const struct packet_conn_info *packet);
99void handle_conn_ping_info(int connections, const int *conn_id, const float *ping_time);
100void handle_conn_ping(void);
101void handle_end_phase(void);
102void handle_start_phase(int phase);
103void handle_new_year(int year, int fragments, int turn);
104void handle_begin_turn(void);
105void handle_end_turn(void);
106void handle_freeze_client(void);
107void handle_thaw_client(void);
109void handle_spaceship_info(const struct packet_spaceship_info *packet);
111void handle_ruleset_unit(const struct packet_ruleset_unit *packet);
115void handle_ruleset_unit_flag(const struct packet_ruleset_unit_flag *packet);
119void handle_ruleset_game(const struct packet_ruleset_game *packet);
125void handle_ruleset_tech(const struct packet_ruleset_tech *packet);
129void handle_ruleset_tech_flag(const struct packet_ruleset_tech_flag *packet);
134void handle_rulesets_ready(void);
140void handle_ruleset_nation(const struct packet_ruleset_nation *packet);
141void handle_nation_availability(int ncount, const bool *is_pickable, bool nationset_change);
143void handle_ruleset_style(const struct packet_ruleset_style *packet);
145void handle_ruleset_city(const struct packet_ruleset_city *packet);
147void handle_ruleset_building(const struct packet_ruleset_building *packet);
149void handle_ruleset_terrain(const struct packet_ruleset_terrain *packet);
155void handle_ruleset_extra(const struct packet_ruleset_extra *packet);
159void handle_ruleset_base(const struct packet_ruleset_base *packet);
161void handle_ruleset_road(const struct packet_ruleset_road *packet);
163void handle_ruleset_goods(const struct packet_ruleset_goods *packet);
165void handle_ruleset_disaster(const struct packet_ruleset_disaster *packet);
169void handle_ruleset_trade(const struct packet_ruleset_trade *packet);
171void handle_ruleset_action(const struct packet_ruleset_action *packet);
177void handle_ruleset_music(const struct packet_ruleset_music *packet);
181void handle_ruleset_clause(const struct packet_ruleset_clause *packet);
183void handle_ruleset_control(const struct packet_ruleset_control *packet);
185void handle_ruleset_summary(const struct packet_ruleset_summary *packet);
188void handle_single_want_hack_reply(bool you_have_hack);
190void handle_ruleset_choices(const struct packet_ruleset_choices *packet);
191void handle_game_load(bool load_successful, const char *load_filename);
206void handle_set_topology(int topology_id);
208void handle_ruleset_effect(const struct packet_ruleset_effect *packet);
210void handle_ruleset_resource(const struct packet_ruleset_resource *packet);
212void handle_scenario_info(const struct packet_scenario_info *packet);
213void handle_scenario_description(const char *description);
214struct packet_vote_new;
215void handle_vote_new(const struct packet_vote_new *packet);
216void handle_vote_update(int vote_no, int yes, int no, int abstain, int num_voters);
218void handle_vote_resolve(int vote_no, bool passed);
220void handle_edit_startpos(const struct packet_edit_startpos *packet);
223void handle_edit_object_created(int tag, int id);
224void handle_play_music(const char *tag);
225void handle_web_city_info_addition(int id16, int id32, int granary_size, int granary_turns);
226void handle_web_player_info_addition(int playerno, int expected_income);
227void handle_web_ruleset_unit_addition(Unit_type_id id, bv_actions utype_actions);
228
229#ifdef __cplusplus
230}
231#endif /* __cplusplus */
232
233#endif /* FC__PACKHAND_GEN_H */
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
enum event_type event
Definition events.c:81
int Unit_type_id
Definition fc_types.h:352
static void load_filename(const char *filename)
Definition pages.c:2854
GType type
Definition repodlgs.c:1312
const char * name
Definition inputfile.c:127
authentication_type
Definition packets.h:88
packet_type
int parts
Definition packhand.c:130
char * lines
Definition packhand.c:129
int len
Definition packhand.c:125
void handle_spaceship_info(const struct packet_spaceship_info *packet)
Definition packhand.c:3218
void handle_ruleset_game(const struct packet_ruleset_game *packet)
Definition packhand.c:4909
void handle_player_diplstate(const struct packet_player_diplstate *packet)
Definition packhand.c:2929
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_ruleset_nation_sets(const struct packet_ruleset_nation_sets *packet)
Definition packhand.c:4675
void handle_ruleset_nation(const struct packet_ruleset_nation *packet)
Definition packhand.c:4717
void handle_nuke_tile_info(int tile)
Definition packhand.c:573
void handle_unknown_research(int id)
Definition packhand.c:2899
void handle_city_sabotage_list(const struct packet_city_sabotage_list *packet)
Definition packhand.c:5326
void handle_ruleset_choices(const struct packet_ruleset_choices *packet)
void handle_ruleset_government_ruler_title(const struct packet_ruleset_government_ruler_title *packet)
Definition packhand.c:4153
void handle_city_info(const struct packet_city_info *packet)
Definition packhand.c:689
bool client_handle_packet(enum packet_type type, const void *packet)
void handle_end_turn(void)
Definition packhand.c:1586
void handle_ruleset_resource(const struct packet_ruleset_resource *packet)
Definition packhand.c:4265
void handle_vote_remove(int vote_no)
Definition packhand.c:5628
void handle_ruleset_road(const struct packet_ruleset_road *packet)
Definition packhand.c:4463
void handle_single_want_hack_reply(bool you_have_hack)
void handle_page_msg_part(const char *lines)
Definition packhand.c:1716
void handle_unit_combat_info(const struct packet_unit_combat_info *packet)
Definition packhand.c:596
void handle_vote_update(int vote_no, int yes, int no, int abstain, int num_voters)
Definition packhand.c:5637
void handle_ruleset_achievement(const struct packet_ruleset_achievement *packet)
Definition packhand.c:4631
void handle_unit_remove(int unit_id16, int unit_id32)
Definition packhand.c:513
void handle_web_player_info_addition(int playerno, int expected_income)
Definition packhand.c:2808
void handle_start_phase(int phase)
Definition packhand.c:1513
void handle_timeout_info(float seconds_to_phasedone, float last_turn_change_time)
Definition packhand.c:2487
void handle_ruleset_tech(const struct packet_ruleset_tech *packet)
Definition packhand.c:3946
void handle_play_music(const char *tag)
Definition packhand.c:5695
void handle_ruleset_unit_flag(const struct packet_ruleset_unit_flag *packet)
Definition packhand.c:3859
void handle_edit_object_created(int tag, int id)
Definition packhand.c:5551
void handle_ruleset_terrain(const struct packet_ruleset_terrain *packet)
Definition packhand.c:4167
void handle_conn_ping(void)
Definition packhand.c:5524
void handle_ruleset_action_auto(const struct packet_ruleset_action_auto *packet)
Definition packhand.c:4587
void handle_diplomacy_init_meeting(int counterpart, int initiated_from)
Definition diplodlg.c:135
void handle_ruleset_control(const struct packet_ruleset_control *packet)
Definition packhand.c:3558
void handle_end_phase(void)
Definition packhand.c:1502
void handle_server_info(const char *version_label, int major_version, int minor_version, int patch_version, int emerg_version)
Definition packhand.c:1669
void handle_ruleset_nation_groups(const struct packet_ruleset_nation_groups *packet)
Definition packhand.c:4696
void handle_web_ruleset_unit_addition(Unit_type_id id, bv_actions utype_actions)
Definition packhand.c:3832
void handle_ruleset_goods(const struct packet_ruleset_goods *packet)
Definition packhand.c:4494
void handle_ruleset_effect(const struct packet_ruleset_effect *packet)
Definition packhand.c:5540
void handle_new_year(int year, int fragments, int turn)
Definition packhand.c:1453
void handle_research_info(const struct packet_research_info *packet)
Definition packhand.c:2815
void handle_unit_info(const struct packet_unit_info *packet)
Definition packhand.c:1742
void handle_ruleset_city(const struct packet_ruleset_city *packet)
Definition packhand.c:4860
void handle_server_setting_bitwise(const struct packet_server_setting_bitwise *packet)
Definition options.c:4551
void handle_connect_msg(const char *message)
Definition packhand.c:1660
void handle_rulesets_ready(void)
Definition packhand.c:3685
void handle_tile_info(const struct packet_tile_info *packet)
Definition packhand.c:3263
void handle_achievement_info(int id, bool gained, bool first)
Definition packhand.c:3162
void handle_scenario_description(const char *description)
Definition packhand.c:3546
void handle_edit_startpos(const struct packet_edit_startpos *packet)
Definition packhand.c:5559
void handle_processing_finished(void)
Definition packhand.c:5459
void handle_city_remove(int city_id16, int city_id32)
Definition packhand.c:484
void handle_ruleset_extra(const struct packet_ruleset_extra *packet)
Definition packhand.c:4284
void handle_server_setting_bool(const struct packet_server_setting_bool *packet)
Definition options.c:4345
void handle_ruleset_specialist(const struct packet_ruleset_specialist *packet)
Definition packhand.c:4954
void handle_city_name_suggestion_info(int unit_id16, int unit_id32, const char *name)
Definition packhand.c:4980
void handle_city_short_info(const struct packet_city_short_info *packet)
Definition packhand.c:1240
void handle_diplomacy_create_clause(int counterpart, int giver, enum clause_type type, int value)
Definition diplodlg.c:157
void handle_ruleset_unit_bonus(const struct packet_ruleset_unit_bonus *packet)
Definition packhand.c:3839
void handle_ruleset_building(const struct packet_ruleset_building *packet)
Definition packhand.c:4049
void handle_endgame_player(const struct packet_endgame_player *packet)
Definition packhand.c:5406
void handle_player_info(const struct packet_player_info *packet)
Definition packhand.c:2573
void handle_server_setting_str(const struct packet_server_setting_str *packet)
Definition options.c:4417
void handle_ruleset_government(const struct packet_ruleset_government *packet)
Definition packhand.c:4126
void handle_team_name_info(int team_id, const char *team_name)
Definition packhand.c:581
void handle_thaw_client(void)
Definition packhand.c:5513
void handle_unit_action_answer(const struct packet_unit_action_answer *packet)
Definition packhand.c:5023
void handle_city_rally_point(const struct packet_city_rally_point *packet)
Definition packhand.c:1074
void handle_ruleset_unit_class(const struct packet_ruleset_unit_class *packet)
Definition packhand.c:3739
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_extra_flag(const struct packet_ruleset_extra_flag *packet)
Definition packhand.c:4416
void handle_conn_info(const struct packet_conn_info *packet)
Definition packhand.c:3033
void handle_ruleset_summary(const struct packet_ruleset_summary *packet)
Definition packhand.c:3657
void handle_page_msg(const char *caption, const char *headline, enum event_type event, int len, int parts)
Definition packhand.c:1685
void handle_edit_startpos_full(const struct packet_edit_startpos_full *packet)
Definition packhand.c:5597
void handle_conn_ping_info(int connections, const int *conn_id, const float *ping_time)
Definition packhand.c:3139
void handle_ruleset_clause(const struct packet_ruleset_clause *packet)
Definition packhand.c:4837
void handle_ruleset_base(const struct packet_ruleset_base *packet)
Definition packhand.c:4442
void handle_player_remove(int playerno)
Definition packhand.c:2528
void handle_processing_started(void)
Definition packhand.c:5441
void handle_begin_turn(void)
Definition packhand.c:1572
void handle_endgame_report(const struct packet_endgame_report *packet)
Definition packhand.c:5397
void handle_early_chat_msg(const struct packet_early_chat_msg *packet)
Definition packhand.c:1646
void handle_web_city_info_addition(int id16, int id32, int granary_size, int granary_turns)
Definition packhand.c:1040
void handle_unit_actions(const struct packet_unit_actions *packet)
Definition packhand.c:5244
void handle_ruleset_action_enabler(const struct packet_ruleset_action_enabler *packet)
Definition packhand.c:4553
void handle_ruleset_music(const struct packet_ruleset_music *packet)
Definition packhand.c:4886
void handle_freeze_client(void)
Definition packhand.c:5503
void handle_chat_msg(const struct packet_chat_msg *packet)
Definition packhand.c:1626
void handle_authentication_req(enum authentication_type type, const char *message)
Definition pages.c:1006
void handle_trade_route_info(const struct packet_trade_route_info *packet)
Definition packhand.c:1196
void handle_player_attribute_chunk(const struct packet_player_attribute_chunk *packet)
Definition packhand.c:5423
void handle_vote_new(const struct packet_vote_new *packet)
Definition packhand.c:5659
void handle_ruleset_terrain_flag(const struct packet_ruleset_terrain_flag *packet)
Definition packhand.c:4240
void handle_ruleset_unit(const struct packet_ruleset_unit *packet)
Definition packhand.c:3757
void handle_set_topology(int topology_id)
Definition packhand.c:2345
void handle_scenario_info(const struct packet_scenario_info *packet)
Definition packhand.c:3525
void handle_ruleset_unit_class_flag(const struct packet_ruleset_unit_class_flag *packet)
Definition packhand.c:3884
void handle_game_info(const struct packet_game_info *packet)
Definition packhand.c:2403
void handle_ruleset_trade(const struct packet_ruleset_trade *packet)
Definition packhand.c:4647
void handle_nation_availability(int ncount, const bool *is_pickable, bool nationset_change)
Definition packhand.c:4807
void handle_investigate_finished(int unit_id16, int unit_id32, int city_id16, int city_id32)
Definition packhand.c:2251
void handle_calendar_info(const struct packet_calendar_info *packet)
Definition packhand.c:2479
void handle_ruleset_disaster(const struct packet_ruleset_disaster *packet)
Definition packhand.c:4609
void handle_unit_short_info(const struct packet_unit_short_info *packet)
Definition packhand.c:2259
void handle_diplomacy_accept_treaty(int counterpart, bool I_accepted, bool other_accepted)
Definition diplodlg.c:116
void handle_city_nationalities(const struct packet_city_nationalities *packet)
Definition packhand.c:1048
void handle_server_shutdown(void)
Definition packhand.c:5532
void handle_server_setting_control(const struct packet_server_setting_control *packet)
Definition options.c:4254
void handle_map_info(int xsize, int ysize, int topology_id)
Definition packhand.c:2367
void handle_game_load(bool load_successful, const char *load_filename)
Definition pages.c:2839
void handle_server_setting_enum(const struct packet_server_setting_enum *packet)
Definition options.c:4462
void handle_ruleset_action(const struct packet_ruleset_action *packet)
Definition packhand.c:4519
void handle_ruleset_tech_flag(const struct packet_ruleset_tech_flag *packet)
Definition packhand.c:4024
void handle_ruleset_tech_class(const struct packet_ruleset_tech_class *packet)
Definition packhand.c:4011
void handle_ruleset_multiplier(const struct packet_ruleset_multiplier *packet)
Definition packhand.c:4098
void handle_vote_resolve(int vote_no, bool passed)
Definition packhand.c:5676
void handle_worker_task(const struct packet_worker_task *packet)
Definition packhand.c:1390
void handle_ruleset_description_part(const struct packet_ruleset_description_part *packet)
Definition packhand.c:3675
void handle_ruleset_terrain_control(const struct packet_ruleset_terrain_control *packet)
Definition packhand.c:4662
void handle_investigate_started(int unit_id16, int unit_id32, int city_id16, int city_id32)
Definition packhand.c:2219
void handle_ruleset_style(const struct packet_ruleset_style *packet)
Definition packhand.c:4825
static struct connection connections[MAX_NUM_CONNECTIONS]
Definition sernet.c:94
Definition tile.h:49