Freeciv-3.2
Loading...
Searching...
No Matches
packhand_gen.h
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#ifndef FC__PACKHAND_GEN_H
9#define FC__PACKHAND_GEN_H
10
11#ifdef __cplusplus
12extern "C" {
13#endif /* __cplusplus */
14
15/* utility */
16#include "shared.h"
17
18/* common */
19#include "packets.h"
20
21bool client_handle_packet(enum packet_type type, const void *packet);
22
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);
43struct packet_map_info;
44void handle_map_info(const struct packet_map_info *packet);
46void handle_team_name_info(int team_id, const char *team_name);
47void handle_achievement_info(int id, bool gained, bool first);
48struct packet_chat_msg;
49void handle_chat_msg(const struct packet_chat_msg *packet);
51void handle_early_chat_msg(const struct packet_early_chat_msg *packet);
52void handle_connect_msg(const char *message);
53void handle_server_info(const char *version_label, int major_version, int minor_version, int patch_version, int emerg_version);
54void handle_city_remove(int city_id);
55struct packet_city_info;
56void handle_city_info(const struct packet_city_info *packet);
62void handle_city_short_info(const struct packet_city_short_info *packet);
64void handle_trade_route_info(const struct packet_trade_route_info *packet);
65void handle_city_name_suggestion_info(int unit_id, const char *name);
66void handle_city_sabotage_list(int actor_id, int city_id, bv_imprs improvements, action_id act_id, int request_kind);
68void handle_city_rally_point(const struct packet_city_rally_point *packet);
70void handle_worker_task(const struct packet_worker_task *packet);
71void handle_player_remove(int playerno);
73void handle_player_info(const struct packet_player_info *packet);
77void handle_player_diplstate(const struct packet_player_diplstate *packet);
79void handle_research_info(const struct packet_research_info *packet);
80void handle_unknown_research(int id);
81void handle_unit_remove(int unit_id);
82struct packet_unit_info;
83void handle_unit_info(const struct packet_unit_info *packet);
85void handle_unit_short_info(const struct packet_unit_short_info *packet);
87void handle_unit_combat_info(const struct packet_unit_combat_info *packet);
88void handle_unit_action_answer(int actor_id, int target_id, int cost, action_id action_type, int request_kind);
90void handle_unit_actions(const struct packet_unit_actions *packet);
91void handle_diplomacy_init_meeting(int counterpart, int initiated_from);
92void handle_diplomacy_cancel_meeting(int counterpart, int initiated_from);
93void handle_diplomacy_create_clause(int counterpart, int giver, enum clause_type type, int value);
94void handle_diplomacy_remove_clause(int counterpart, int giver, enum clause_type type, int value);
95void handle_diplomacy_accept_treaty(int counterpart, bool I_accepted, bool other_accepted);
96void handle_page_msg(const char *caption, const char *headline, enum event_type event, int len, int parts);
97void handle_page_msg_part(const char *lines);
98struct packet_conn_info;
99void handle_conn_info(const struct packet_conn_info *packet);
100void handle_conn_ping_info(int connections, const int *conn_id, const float *ping_time);
101void handle_conn_ping(void);
102void handle_end_phase(void);
103void handle_start_phase(int phase);
104void handle_new_year(int year, int fragments, int turn);
105void handle_begin_turn(void);
106void handle_end_turn(void);
107void handle_freeze_client(void);
108void handle_thaw_client(void);
110void handle_spaceship_info(const struct packet_spaceship_info *packet);
112void handle_ruleset_unit(const struct packet_ruleset_unit *packet);
116void handle_ruleset_unit_flag(const struct packet_ruleset_unit_flag *packet);
120void handle_ruleset_game(const struct packet_ruleset_game *packet);
126void handle_ruleset_tech(const struct packet_ruleset_tech *packet);
130void handle_ruleset_tech_flag(const struct packet_ruleset_tech_flag *packet);
135void handle_rulesets_ready(void);
141void handle_ruleset_nation(const struct packet_ruleset_nation *packet);
142void handle_nation_availability(int ncount, const bool *is_pickable, bool nationset_change);
144void handle_ruleset_style(const struct packet_ruleset_style *packet);
146void handle_ruleset_city(const struct packet_ruleset_city *packet);
148void handle_ruleset_building(const struct packet_ruleset_building *packet);
150void handle_ruleset_impr_flag(const struct packet_ruleset_impr_flag *packet);
152void handle_ruleset_terrain(const struct packet_ruleset_terrain *packet);
158void handle_ruleset_extra(const struct packet_ruleset_extra *packet);
162void handle_ruleset_base(const struct packet_ruleset_base *packet);
164void handle_ruleset_road(const struct packet_ruleset_road *packet);
166void handle_ruleset_goods(const struct packet_ruleset_goods *packet);
168void handle_ruleset_disaster(const struct packet_ruleset_disaster *packet);
172void handle_ruleset_trade(const struct packet_ruleset_trade *packet);
174void handle_ruleset_action(const struct packet_ruleset_action *packet);
180void handle_ruleset_counter(const struct packet_ruleset_counter *packet);
182void handle_ruleset_music(const struct packet_ruleset_music *packet);
186void handle_ruleset_clause(const struct packet_ruleset_clause *packet);
188void handle_ruleset_control(const struct packet_ruleset_control *packet);
190void handle_ruleset_summary(const struct packet_ruleset_summary *packet);
193void handle_single_want_hack_reply(bool you_have_hack);
195void handle_ruleset_choices(const struct packet_ruleset_choices *packet);
196void handle_game_load(bool load_successful, const char *load_filename);
211void handle_set_topology(int topology_id, int wrap_id);
213void handle_ruleset_effect(const struct packet_ruleset_effect *packet);
215void handle_ruleset_resource(const struct packet_ruleset_resource *packet);
217void handle_scenario_info(const struct packet_scenario_info *packet);
218void handle_scenario_description(const char *description);
219struct packet_vote_new;
220void handle_vote_new(const struct packet_vote_new *packet);
221void handle_vote_update(int vote_no, int yes, int no, int abstain, int num_voters);
223void handle_vote_resolve(int vote_no, bool passed);
224void handle_edit_fogofwar_state(bool enabled);
226void handle_edit_startpos(const struct packet_edit_startpos *packet);
229void handle_edit_object_created(int tag, int id);
230void handle_play_music(const char *tag);
231void handle_popup_image(const char *tag);
232void handle_sync_serial_reply(int serial);
233void handle_web_city_info_addition(int id, bool cma_enabled, const struct cm_parameter *cm_parameter, int granary_size, int granary_turns, bv_utypes can_build_unit, bv_imprs can_build_improvement, const int *output_food, const int *output_shield, const int *output_trade);
234void handle_web_player_info_addition(int playerno, int expected_income);
236
237#ifdef __cplusplus
238}
239#endif /* __cplusplus */
240
241#endif /* FC__PACKHAND_GEN_H */
char * incite_cost
Definition comments.c:75
authentication_type
Definition conn_types.h:41
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
enum event_type event
Definition events.c:81
int action_id
Definition fc_types.h:389
int Unit_type_id
Definition fc_types.h:382
static void load_filename(const char *filename)
Definition pages.c:2856
GType type
Definition repodlgs.c:1313
const char * name
Definition inputfile.c:127
packet_type
int parts
Definition packhand.c:132
char * lines
Definition packhand.c:131
int len
Definition packhand.c:127
void handle_spaceship_info(const struct packet_spaceship_info *packet)
Definition packhand.c:3065
void handle_ruleset_game(const struct packet_ruleset_game *packet)
Definition packhand.c:4784
void handle_player_diplstate(const struct packet_player_diplstate *packet)
Definition packhand.c:2779
void handle_server_setting_const(const struct packet_server_setting_const *packet)
Definition options.c:4295
void handle_server_setting_int(const struct packet_server_setting_int *packet)
Definition options.c:4389
void handle_ruleset_nation_sets(const struct packet_ruleset_nation_sets *packet)
Definition packhand.c:4550
void handle_ruleset_nation(const struct packet_ruleset_nation *packet)
Definition packhand.c:4592
void handle_city_name_suggestion_info(int unit_id, const char *name)
Definition packhand.c:4855
void handle_sync_serial_reply(int serial)
Definition packhand.c:5657
void handle_nuke_tile_info(int tile)
Definition packhand.c:545
void handle_unknown_research(int id)
Definition packhand.c:2749
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:4012
void handle_city_info(const struct packet_city_info *packet)
Definition packhand.c:650
bool client_handle_packet(enum packet_type type, const void *packet)
void handle_end_turn(void)
Definition packhand.c:1490
void handle_ruleset_resource(const struct packet_ruleset_resource *packet)
Definition packhand.c:4134
void handle_vote_remove(int vote_no)
Definition packhand.c:5477
void handle_ruleset_road(const struct packet_ruleset_road *packet)
Definition packhand.c:4338
void handle_investigate_finished(const struct packet_investigate_finished *packet)
Definition packhand.c:2144
void handle_single_want_hack_reply(bool you_have_hack)
void handle_page_msg_part(const char *lines)
Definition packhand.c:1620
void handle_unit_combat_info(const struct packet_unit_combat_info *packet)
Definition packhand.c:568
void handle_unit_remove(int unit_id)
Definition packhand.c:491
void handle_vote_update(int vote_no, int yes, int no, int abstain, int num_voters)
Definition packhand.c:5486
void handle_ruleset_achievement(const struct packet_ruleset_achievement *packet)
Definition packhand.c:4506
void handle_ruleset_impr_flag(const struct packet_ruleset_impr_flag *packet)
Definition packhand.c:3928
void handle_web_player_info_addition(int playerno, int expected_income)
void handle_map_info(const struct packet_map_info *packet)
Definition packhand.c:2222
void handle_start_phase(int phase)
Definition packhand.c:1417
void handle_timeout_info(float seconds_to_phasedone, float last_turn_change_time)
Definition packhand.c:2346
void handle_ruleset_tech(const struct packet_ruleset_tech *packet)
Definition packhand.c:3774
void handle_play_music(const char *tag)
Definition packhand.c:5544
void handle_ruleset_unit_flag(const struct packet_ruleset_unit_flag *packet)
Definition packhand.c:3687
void handle_investigate_started(const struct packet_investigate_started *packet)
Definition packhand.c:2120
void handle_edit_object_created(int tag, int id)
Definition packhand.c:5390
void handle_ruleset_terrain(const struct packet_ruleset_terrain *packet)
Definition packhand.c:4026
void handle_conn_ping(void)
Definition packhand.c:5363
void handle_ruleset_action_auto(const struct packet_ruleset_action_auto *packet)
Definition packhand.c:4462
void handle_diplomacy_init_meeting(int counterpart, int initiated_from)
Definition packhand.c:5560
void handle_ruleset_control(const struct packet_ruleset_control *packet)
Definition packhand.c:3398
void handle_end_phase(void)
Definition packhand.c:1406
void handle_ruleset_counter(const struct packet_ruleset_counter *packet)
Definition packhand.c:5604
void handle_server_info(const char *version_label, int major_version, int minor_version, int patch_version, int emerg_version)
Definition packhand.c:1573
void handle_ruleset_nation_groups(const struct packet_ruleset_nation_groups *packet)
Definition packhand.c:4571
void handle_web_ruleset_unit_addition(Unit_type_id id, bv_actions utype_actions)
void handle_ruleset_goods(const struct packet_ruleset_goods *packet)
Definition packhand.c:4369
void handle_ruleset_effect(const struct packet_ruleset_effect *packet)
Definition packhand.c:5379
void handle_new_year(int year, int fragments, int turn)
Definition packhand.c:1357
void handle_research_info(const struct packet_research_info *packet)
Definition packhand.c:2665
void handle_unit_info(const struct packet_unit_info *packet)
Definition packhand.c:1646
void handle_ruleset_city(const struct packet_ruleset_city *packet)
Definition packhand.c:4735
void handle_server_setting_bitwise(const struct packet_server_setting_bitwise *packet)
Definition options.c:4560
void handle_connect_msg(const char *message)
Definition packhand.c:1564
void handle_rulesets_ready(void)
Definition packhand.c:3522
void handle_tile_info(const struct packet_tile_info *packet)
Definition packhand.c:3110
void handle_achievement_info(int id, bool gained, bool first)
Definition packhand.c:3009
void handle_scenario_description(const char *description)
Definition packhand.c:3386
void handle_edit_startpos(const struct packet_edit_startpos *packet)
Definition packhand.c:5398
void handle_processing_finished(void)
Definition packhand.c:5298
void handle_ruleset_extra(const struct packet_ruleset_extra *packet)
Definition packhand.c:4153
void handle_server_setting_bool(const struct packet_server_setting_bool *packet)
Definition options.c:4354
void handle_diplomacy_cancel_meeting(int counterpart, int initiated_from)
Definition packhand.c:5577
void handle_ruleset_specialist(const struct packet_ruleset_specialist *packet)
Definition packhand.c:4829
void handle_city_short_info(const struct packet_city_short_info *packet)
Definition packhand.c:1158
void handle_edit_fogofwar_state(bool enabled)
Definition packhand.c:5467
void handle_popup_image(const char *tag)
Definition packhand.c:5552
void handle_diplomacy_create_clause(int counterpart, int giver, enum clause_type type, int value)
Definition packhand.c:5585
void handle_ruleset_unit_bonus(const struct packet_ruleset_unit_bonus *packet)
Definition packhand.c:3667
void handle_ruleset_building(const struct packet_ruleset_building *packet)
Definition packhand.c:3877
void handle_endgame_player(const struct packet_endgame_player *packet)
Definition packhand.c:5245
void handle_unit_action_answer(int actor_id, int target_id, int cost, action_id action_type, int request_kind)
Definition packhand.c:4891
void handle_player_info(const struct packet_player_info *packet)
Definition packhand.c:2432
void handle_server_setting_str(const struct packet_server_setting_str *packet)
Definition options.c:4426
void handle_ruleset_government(const struct packet_ruleset_government *packet)
Definition packhand.c:3982
void handle_team_name_info(int team_id, const char *team_name)
Definition packhand.c:553
void handle_thaw_client(void)
Definition packhand.c:5352
void handle_city_rally_point(const struct packet_city_rally_point *packet)
Definition packhand.c:1007
void handle_ruleset_unit_class(const struct packet_ruleset_unit_class *packet)
Definition packhand.c:3576
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:400
void handle_ruleset_extra_flag(const struct packet_ruleset_extra_flag *packet)
Definition packhand.c:4291
void handle_conn_info(const struct packet_conn_info *packet)
Definition packhand.c:2880
void handle_ruleset_summary(const struct packet_ruleset_summary *packet)
Definition packhand.c:3494
void handle_set_topology(int topology_id, int wrap_id)
Definition packhand.c:2199
void handle_page_msg(const char *caption, const char *headline, enum event_type event, int len, int parts)
Definition packhand.c:1589
void handle_city_update_counters(const struct packet_city_update_counters *packet)
Definition packhand.c:5627
void handle_edit_startpos_full(const struct packet_edit_startpos_full *packet)
Definition packhand.c:5436
void handle_conn_ping_info(int connections, const int *conn_id, const float *ping_time)
Definition packhand.c:2986
void handle_diplomacy_remove_clause(int counterpart, int giver, enum clause_type type, int value)
Definition packhand.c:5594
void handle_ruleset_clause(const struct packet_ruleset_clause *packet)
Definition packhand.c:4712
void handle_ruleset_base(const struct packet_ruleset_base *packet)
Definition packhand.c:4317
void handle_player_remove(int playerno)
Definition packhand.c:2387
void handle_processing_started(void)
Definition packhand.c:5280
void handle_begin_turn(void)
Definition packhand.c:1476
void handle_endgame_report(const struct packet_endgame_report *packet)
Definition packhand.c:5236
void handle_early_chat_msg(const struct packet_early_chat_msg *packet)
Definition packhand.c:1550
void handle_unit_actions(const struct packet_unit_actions *packet)
Definition packhand.c:5105
void handle_ruleset_action_enabler(const struct packet_ruleset_action_enabler *packet)
Definition packhand.c:4428
void handle_ruleset_music(const struct packet_ruleset_music *packet)
Definition packhand.c:4761
void handle_freeze_client(void)
Definition packhand.c:5342
void handle_city_remove(int city_id)
Definition packhand.c:468
void handle_chat_msg(const struct packet_chat_msg *packet)
Definition packhand.c:1530
void handle_authentication_req(enum authentication_type type, const char *message)
Definition pages.c:1007
void handle_trade_route_info(const struct packet_trade_route_info *packet)
Definition packhand.c:1123
void handle_player_attribute_chunk(const struct packet_player_attribute_chunk *packet)
Definition packhand.c:5262
void handle_vote_new(const struct packet_vote_new *packet)
Definition packhand.c:5508
void handle_ruleset_terrain_flag(const struct packet_ruleset_terrain_flag *packet)
Definition packhand.c:4109
void handle_ruleset_unit(const struct packet_ruleset_unit *packet)
Definition packhand.c:3594
void handle_scenario_info(const struct packet_scenario_info *packet)
Definition packhand.c:3365
void handle_ruleset_unit_class_flag(const struct packet_ruleset_unit_class_flag *packet)
Definition packhand.c:3712
void handle_game_info(const struct packet_game_info *packet)
Definition packhand.c:2262
void handle_ruleset_trade(const struct packet_ruleset_trade *packet)
Definition packhand.c:4522
void handle_nation_availability(int ncount, const bool *is_pickable, bool nationset_change)
Definition packhand.c:4682
void handle_calendar_info(const struct packet_calendar_info *packet)
Definition packhand.c:2338
void handle_ruleset_disaster(const struct packet_ruleset_disaster *packet)
Definition packhand.c:4484
void handle_unit_short_info(const struct packet_unit_short_info *packet)
Definition packhand.c:2151
void handle_diplomacy_accept_treaty(int counterpart, bool I_accepted, bool other_accepted)
Definition packhand.c:5568
void handle_city_nationalities(const struct packet_city_nationalities *packet)
Definition packhand.c:987
void handle_server_shutdown(void)
Definition packhand.c:5371
void handle_server_setting_control(const struct packet_server_setting_control *packet)
Definition options.c:4261
void handle_web_city_info_addition(int id, bool cma_enabled, const struct cm_parameter *cm_parameter, int granary_size, int granary_turns, bv_utypes can_build_unit, bv_imprs can_build_improvement, const int *output_food, const int *output_shield, const int *output_trade)
void handle_game_load(bool load_successful, const char *load_filename)
Definition pages.c:2841
void handle_server_setting_enum(const struct packet_server_setting_enum *packet)
Definition options.c:4471
void handle_ruleset_action(const struct packet_ruleset_action *packet)
Definition packhand.c:4394
void handle_ruleset_tech_flag(const struct packet_ruleset_tech_flag *packet)
Definition packhand.c:3852
void handle_city_sabotage_list(int actor_id, int city_id, bv_imprs improvements, action_id act_id, int request_kind)
Definition packhand.c:5175
void handle_ruleset_tech_class(const struct packet_ruleset_tech_class *packet)
Definition packhand.c:3839
void handle_ruleset_multiplier(const struct packet_ruleset_multiplier *packet)
Definition packhand.c:3954
void handle_vote_resolve(int vote_no, bool passed)
Definition packhand.c:5525
void handle_worker_task(const struct packet_worker_task *packet)
Definition packhand.c:1300
void handle_ruleset_description_part(const struct packet_ruleset_description_part *packet)
Definition packhand.c:3512
void handle_ruleset_terrain_control(const struct packet_ruleset_terrain_control *packet)
Definition packhand.c:4537
void handle_ruleset_style(const struct packet_ruleset_style *packet)
Definition packhand.c:4700
static struct connection connections[MAX_NUM_CONNECTIONS]
Definition sernet.c:94
Definition tile.h:50