Freeciv-3.3
Loading...
Searching...
No Matches
hand_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__HAND_GEN_H
9#define FC__HAND_GEN_H
10
11/* utility */
12#include "shared.h"
13
14/* common */
15#include "fc_types.h"
16#include "packets.h"
17
18struct connection;
19
20bool server_handle_packet(enum packet_type type, const void *packet,
21 struct player *pplayer, struct connection *pconn);
22
23void handle_nation_select_req(struct connection *pc, int player_no, Nation_type_id nation_no, bool is_male, const char *name, int style);
24void handle_player_ready(struct player *pplayer, int player_no, bool is_ready);
25void handle_chat_msg_req(struct connection *pc, const char *message);
26void handle_city_sell(struct player *pplayer, int city_id, int build_id);
27void handle_city_buy(struct player *pplayer, int city_id);
28void handle_city_change(struct player *pplayer, int city_id, int production_kind, int production_value);
29void handle_city_worklist(struct player *pplayer, int city_id, const struct worklist *worklist);
30void handle_city_make_specialist(struct player *pplayer, int city_id, int tile_id);
31void handle_city_make_worker(struct player *pplayer, int city_id, int tile_id);
32void handle_city_change_specialist(struct player *pplayer, int city_id, Specialist_type_id from, Specialist_type_id to);
33void handle_city_rename(struct player *pplayer, int city_id, const char *name);
34void handle_city_options_req(struct player *pplayer, int city_id, bv_city_options options, enum city_wl_cancel_behavior wl_cb);
35void handle_city_refresh(struct player *pplayer, int city_id);
36void handle_city_name_suggestion_req(struct player *pplayer, int unit_id);
37void handle_city_rally_point(struct player *pplayer, const struct packet_city_rally_point *packet);
38void handle_worker_task(struct player *pplayer, const struct packet_worker_task *packet);
39void handle_player_phase_done(struct player *pplayer, int turn);
40void handle_player_rates(struct player *pplayer, int tax, int luxury, int science);
42void handle_player_place_infra(struct player *pplayer, int tile, int extra);
43void handle_player_attribute_block(struct player *pplayer);
44void handle_player_attribute_chunk(struct player *pplayer, const struct packet_player_attribute_chunk *packet);
45void handle_player_multiplier(struct player *pplayer, int count, const int *multipliers);
46void handle_player_research(struct player *pplayer, int tech);
47void handle_player_tech_goal(struct player *pplayer, int tech);
48void handle_unit_sscs_set(struct player *pplayer, int unit_id, enum unit_ss_data_type type, int value);
49void handle_unit_orders(struct player *pplayer, const struct packet_unit_orders *packet);
50void handle_unit_server_side_agent_set(struct player *pplayer, int unit_id, enum server_side_agent agent);
51void handle_unit_action_query(struct connection *pc, int actor_id, int target_id, action_id action_type, int request_kind);
53void handle_unit_do_action(struct player *pplayer, int actor_id, int target_id, int sub_tgt_id, const char *name, action_id action_type);
54void handle_unit_get_actions(struct connection *pc, int actor_unit_id, int target_unit_id, int target_tile_id, int target_extra_id, int request_kind);
55void handle_unit_change_activity(struct player *pplayer, int unit_id, enum unit_activity activity, int target);
56void handle_diplomacy_init_meeting_req(struct player *pplayer, int counterpart);
57void handle_diplomacy_cancel_meeting_req(struct player *pplayer, int counterpart);
58void handle_diplomacy_create_clause_req(struct player *pplayer, int counterpart, int giver, enum clause_type type, int value);
59void handle_diplomacy_remove_clause_req(struct player *pplayer, int counterpart, int giver, enum clause_type type, int value);
60void handle_diplomacy_accept_treaty_req(struct player *pplayer, int counterpart);
61void handle_diplomacy_cancel_pact(struct player *pplayer, int other_player_id, enum clause_type clause);
63void handle_conn_pong(struct connection *pc);
65void handle_client_info(struct connection *pc, enum gui_type gui, int emerg_version, const char *distribution);
66void handle_spaceship_launch(struct player *pplayer);
67void handle_spaceship_place(struct player *pplayer, enum spaceship_place_type type, int num);
69void handle_ruleset_select(struct connection *pc, const struct packet_ruleset_select *packet);
70void handle_save_scenario(struct connection *pc, const char *name);
71void handle_vote_submit(struct connection *pc, int vote_no, int value);
72void handle_edit_mode(struct connection *pc, bool state);
77void handle_edit_tile_extra(struct connection *pc, int tile, int extra_type_id, bool removal, int eowner, int size);
78void handle_edit_startpos(struct connection *pc, const struct packet_edit_startpos *packet);
79void handle_edit_startpos_full(struct connection *pc, const struct packet_edit_startpos_full *packet);
80void handle_edit_tile(struct connection *pc, const struct packet_edit_tile *packet);
81void handle_edit_unit_create(struct connection *pc, int owner, int tile, Unit_type_id type, int count, int tag);
82void handle_edit_unit_remove(struct connection *pc, int owner, int tile, Unit_type_id type, int count);
83void handle_edit_unit_remove_by_id(struct connection *pc, int id);
84void handle_edit_unit(struct connection *pc, const struct packet_edit_unit *packet);
85void handle_edit_city_create(struct connection *pc, int owner, int tile, int size, int tag);
86void handle_edit_city_remove(struct connection *pc, int id);
87void handle_edit_city(struct connection *pc, const struct packet_edit_city *packet);
88void handle_edit_player_create(struct connection *pc, int tag);
89void handle_edit_player_remove(struct connection *pc, int id);
90void handle_edit_player(struct connection *pc, const struct packet_edit_player *packet);
91void handle_edit_player_vision(struct connection *pc, int player, int tile, bool known, int size);
92void handle_edit_game(struct connection *pc, const struct packet_edit_game *packet);
93void handle_edit_scenario_desc(struct connection *pc, const char *scenario_desc);
94void handle_sync_serial(struct connection *pc, int serial);
95void handle_web_cma_set(struct player *pplayer, int id, const struct cm_parameter *cm_parameter);
96void handle_web_cma_clear(struct player *pplayer, int id);
97
98#endif /* FC__HAND_GEN_H */
char * incite_cost
Definition comments.c:76
report_type
Definition conn_types.h:49
int Nation_type_id
Definition fc_types.h:239
int Terrain_type_id
Definition fc_types.h:232
int action_id
Definition fc_types.h:248
int Specialist_type_id
Definition fc_types.h:234
int Government_type_id
Definition fc_types.h:240
spaceship_place_type
Definition fc_types.h:1005
int Unit_type_id
Definition fc_types.h:241
static int actor_unit_id
static int target_extra_id
struct city * owner
Definition citydlg.c:226
GType type
Definition repodlgs.c:1313
void handle_player_phase_done(struct player *pplayer, int turn)
Definition plrhand.c:3181
void handle_city_change(struct player *pplayer, int city_id, int production_kind, int production_value)
Definition cityhand.c:435
void handle_player_multiplier(struct player *pplayer, int count, const int *multipliers)
Definition plrhand.c:3397
void handle_client_heartbeat(struct connection *pc)
Definition sernet.c:1461
void handle_city_rally_point(struct player *pplayer, const struct packet_city_rally_point *packet)
Definition cityhand.c:529
void handle_nation_select_req(struct connection *pc, int player_no, Nation_type_id nation_no, bool is_male, const char *name, int style)
Definition srv_main.c:2370
void handle_edit_tile(struct connection *pc, const struct packet_edit_tile *packet)
Definition edithand.c:380
void handle_web_cma_set(struct player *pplayer, int id, const struct cm_parameter *cm_parameter)
Definition cityhand.c:543
void handle_edit_unit_remove_by_id(struct connection *pc, int id)
Definition edithand.c:599
void handle_edit_scenario_desc(struct connection *pc, const char *scenario_desc)
Definition edithand.c:1507
void handle_unit_get_actions(struct connection *pc, int actor_unit_id, int target_unit_id, int target_tile_id, int target_extra_id, int request_kind)
Definition unithand.c:2251
void handle_edit_check_tiles(struct connection *pc)
Definition edithand.c:1325
void handle_unit_type_upgrade(struct player *pplayer, Unit_type_id type)
Definition unithand.c:187
void handle_unit_orders(struct player *pplayer, const struct packet_unit_orders *packet)
Definition unithand.c:6813
void handle_city_name_suggestion_req(struct player *pplayer, int unit_id)
Definition cityhand.c:59
void handle_edit_toggle_fogofwar(struct connection *pc, int player)
Definition edithand.c:1335
void handle_edit_tile_terrain(struct connection *pc, int tile, Terrain_type_id terrain, int size)
Definition edithand.c:303
void handle_edit_startpos(struct connection *pc, const struct packet_edit_startpos *packet)
Definition edithand.c:1368
void handle_edit_player(struct connection *pc, const struct packet_edit_player *packet)
Definition edithand.c:1012
void handle_report_req(struct connection *pc, enum report_type type)
Definition srv_main.c:1988
void handle_city_worklist(struct player *pplayer, int city_id, const struct worklist *worklist)
Definition cityhand.c:384
void handle_city_buy(struct player *pplayer, int city_id)
Definition cityhand.c:402
void handle_client_info(struct connection *pc, enum gui_type gui, int emerg_version, const char *distribution)
Definition srv_main.c:315
void handle_worker_task(struct player *pplayer, const struct packet_worker_task *packet)
Definition unithand.c:6922
void handle_city_change_specialist(struct player *pplayer, int city_id, Specialist_type_id from, Specialist_type_id to)
Definition cityhand.c:92
void handle_player_tech_goal(struct player *pplayer, int tech)
Definition techtools.c:1362
void handle_unit_change_activity(struct player *pplayer, int unit_id, enum unit_activity activity, int target)
Definition unithand.c:4374
void handle_player_place_infra(struct player *pplayer, int tile, int extra)
Definition infrapts.c:29
void handle_diplomacy_remove_clause_req(struct player *pplayer, int counterpart, int giver, enum clause_type type, int value)
Definition diplhand.c:720
void handle_diplomacy_create_clause_req(struct player *pplayer, int counterpart, int giver, enum clause_type type, int value)
Definition diplhand.c:753
void handle_player_attribute_block(struct player *pplayer)
Definition plrhand.c:3173
void handle_edit_player_remove(struct connection *pc, int id)
Definition edithand.c:988
void handle_unit_action_query(struct connection *pc, int actor_id, int target_id, action_id action_type, int request_kind)
Definition unithand.c:3189
void handle_player_ready(struct player *pplayer, int player_no, bool is_ready)
Definition srv_main.c:2452
void handle_edit_city_remove(struct connection *pc, int id)
Definition edithand.c:1308
void handle_city_sell(struct player *pplayer, int city_id, int build_id)
Definition cityhand.c:279
void handle_chat_msg_req(struct connection *pc, const char *message)
Definition handchat.c:320
void handle_edit_player_vision(struct connection *pc, int player, int tile, bool known, int size)
Definition edithand.c:1228
void handle_player_research(struct player *pplayer, int tech)
Definition techtools.c:1339
void handle_unit_server_side_agent_set(struct player *pplayer, int unit_id, enum server_side_agent agent)
Definition unithand.c:6513
void handle_player_change_government(struct player *pplayer, Government_type_id government)
Definition plrhand.c:565
void handle_city_options_req(struct player *pplayer, int city_id, bv_city_options options, enum city_wl_cancel_behavior wl_cb)
Definition cityhand.c:510
void handle_single_want_hack_req(struct connection *pc, const struct packet_single_want_hack_req *packet)
Definition gamehand.c:1237
void handle_edit_city(struct connection *pc, const struct packet_edit_city *packet)
Definition edithand.c:749
bool server_handle_packet(enum packet_type type, const void *packet, struct player *pplayer, struct connection *pconn)
Definition hand_gen.c:17
void handle_edit_city_create(struct connection *pc, int owner, int tile, int size, int tag)
Definition edithand.c:693
void handle_spaceship_place(struct player *pplayer, enum spaceship_place_type type, int num)
Definition spacerace.c:206
void handle_conn_pong(struct connection *pc)
Definition sernet.c:1441
void handle_diplomacy_init_meeting_req(struct player *pplayer, int counterpart)
Definition diplhand.c:845
void handle_edit_game(struct connection *pc, const struct packet_edit_game *packet)
Definition edithand.c:1444
void handle_edit_tile_extra(struct connection *pc, int tile, int extra_type_id, bool removal, int eowner, int size)
Definition edithand.c:340
void handle_diplomacy_cancel_meeting_req(struct player *pplayer, int counterpart)
Definition diplhand.c:830
void handle_unit_do_action(struct player *pplayer, int actor_id, int target_id, int sub_tgt_id, const char *name, action_id action_type)
Definition unithand.c:3322
void handle_edit_startpos_full(struct connection *pc, const struct packet_edit_startpos_full *packet)
Definition edithand.c:1406
void handle_diplomacy_cancel_pact(struct player *pplayer, int other_player_id, enum clause_type clause)
Definition plrhand.c:882
void handle_city_make_worker(struct player *pplayer, int city_id, int tile_id)
Definition cityhand.c:170
void handle_edit_mode(struct connection *pc, bool state)
Definition edithand.c:193
void handle_player_attribute_chunk(struct player *pplayer, const struct packet_player_attribute_chunk *packet)
Definition plrhand.c:3163
void handle_spaceship_launch(struct player *pplayer)
Definition spacerace.c:167
void handle_player_rates(struct player *pplayer, int tax, int luxury, int science)
Definition plrhand.c:285
void handle_unit_sscs_set(struct player *pplayer, int unit_id, enum unit_ss_data_type type, int value)
Definition unithand.c:6406
void handle_ruleset_select(struct connection *pc, const struct packet_ruleset_select *packet)
Definition gamehand.c:1186
void handle_edit_player_create(struct connection *pc, int tag)
Definition edithand.c:909
void handle_city_refresh(struct player *pplayer, int city_id)
Definition cityhand.c:416
void handle_edit_recalculate_borders(struct connection *pc)
Definition edithand.c:1300
void handle_sync_serial(struct connection *pc, int serial)
void handle_save_scenario(struct connection *pc, const char *name)
Definition edithand.c:1519
void handle_city_make_specialist(struct player *pplayer, int city_id, int tile_id)
Definition cityhand.c:123
void handle_city_rename(struct player *pplayer, int city_id, const char *name)
Definition cityhand.c:485
void handle_edit_unit_create(struct connection *pc, int owner, int tile, Unit_type_id type, int count, int tag)
Definition edithand.c:438
void handle_edit_unit_remove(struct connection *pc, int owner, int tile, Unit_type_id type, int count)
Definition edithand.c:544
void handle_vote_submit(struct connection *pc, int vote_no, int value)
Definition voting.c:775
void handle_web_cma_clear(struct player *pplayer, int id)
Definition cityhand.c:571
void handle_edit_unit(struct connection *pc, const struct packet_edit_unit *packet)
Definition edithand.c:616
void handle_diplomacy_accept_treaty_req(struct player *pplayer, int counterpart)
Definition diplhand.c:147
const char * name
Definition inputfile.c:127
static mpgui * gui
Definition mpgui_qt.cpp:52
static struct multiplier multipliers[MAX_NUM_MULTIPLIERS]
Definition multipliers.c:23
packet_type
size_t size
Definition specvec.h:72
Definition agents.h:40
Definition tile.h:50