Freeciv-3.3: /fast/freeciv/nightly/main/server/hand_gen.h Source File

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);
35void handle_city_refresh(struct player *pplayer, int city_id);
36void handle_city_name_suggestion_req(struct player *pplayer, int unit_id);
37struct packet_city_rally_point;
38void handle_city_rally_point(struct player *pplayer, const struct packet_city_rally_point *packet);
39struct packet_worker_task;
40void handle_worker_task(struct player *pplayer, const struct packet_worker_task *packet);
41void handle_player_phase_done(struct player *pplayer, int turn);
42void handle_player_rates(struct player *pplayer, int tax, int luxury, int science);
43void handle_player_change_government(struct player *pplayer, Government_type_id government);
44void handle_player_place_infra(struct player *pplayer, int tile, int extra);
45void handle_player_attribute_block(struct player *pplayer);
46struct packet_player_attribute_chunk;
47void handle_player_attribute_chunk(struct player *pplayer, const struct packet_player_attribute_chunk *packet);
48void handle_player_multiplier(struct player *pplayer, int count, const int *multipliers);
49void handle_player_research(struct player *pplayer, int tech);
50void handle_player_tech_goal(struct player *pplayer, int tech);
51void handle_unit_sscs_set(struct player *pplayer, int unit_id, enum unit_ss_data_type type, int value);
52struct packet_unit_orders;
53void handle_unit_orders(struct player *pplayer, const struct packet_unit_orders *packet);
54void handle_unit_server_side_agent_set(struct player *pplayer, int unit_id, enum server_side_agent agent);
55void handle_unit_action_query(struct connection *pc, int actor_id, int target_id, action_id action_type, int request_kind);
56void handle_unit_type_upgrade(struct player *pplayer, Unit_type_id type);
57void handle_unit_do_action(struct player *pplayer, int actor_id, int target_id, int sub_tgt_id, const char *name, action_id action_type);
58void 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);
59void handle_unit_change_activity(struct player *pplayer, int unit_id, enum unit_activity activity, int target);
60void handle_diplomacy_init_meeting_req(struct player *pplayer, int counterpart);
61void handle_diplomacy_cancel_meeting_req(struct player *pplayer, int counterpart);
62void handle_diplomacy_create_clause_req(struct player *pplayer, int counterpart, int giver, enum clause_type type, int value);
63void handle_diplomacy_remove_clause_req(struct player *pplayer, int counterpart, int giver, enum clause_type type, int value);
64void handle_diplomacy_accept_treaty_req(struct player *pplayer, int counterpart);
65void handle_diplomacy_cancel_pact(struct player *pplayer, int other_player_id, enum clause_type clause);
66void handle_report_req(struct connection *pc, enum report_type type);
67void handle_conn_pong(struct connection *pc);
68void handle_client_heartbeat(struct connection *pc);
69void handle_client_info(struct connection *pc, enum gui_type gui, int emerg_version, const char *distribution);
70void handle_spaceship_launch(struct player *pplayer);
71void handle_spaceship_place(struct player *pplayer, enum spaceship_place_type type, int num);
72struct packet_single_want_hack_req;
73void handle_single_want_hack_req(struct connection *pc, const struct packet_single_want_hack_req *packet);
74struct packet_ruleset_select;
75void handle_ruleset_select(struct connection *pc, const struct packet_ruleset_select *packet);
76void handle_save_scenario(struct connection *pc, const char *name);
77void handle_vote_submit(struct connection *pc, int vote_no, int value);
78void handle_edit_mode(struct connection *pc, bool state);
79void handle_edit_recalculate_borders(struct connection *pc);
80void handle_edit_check_tiles(struct connection *pc);
81void handle_edit_toggle_fogofwar(struct connection *pc, int player);
82void handle_edit_tile_terrain(struct connection *pc, int tile, Terrain_type_id terrain, int size);
83void handle_edit_tile_extra(struct connection *pc, int tile, int extra_type_id, bool removal, int eowner, int size);
84struct packet_edit_startpos;
85void handle_edit_startpos(struct connection *pc, const struct packet_edit_startpos *packet);
86struct packet_edit_startpos_full;
87void handle_edit_startpos_full(struct connection *pc, const struct packet_edit_startpos_full *packet);
88struct packet_edit_tile;
89void handle_edit_tile(struct connection *pc, const struct packet_edit_tile *packet);
90void handle_edit_unit_create(struct connection *pc, int owner, int tile, Unit_type_id type, int count, int tag);
91void handle_edit_unit_remove(struct connection *pc, int owner, int tile, Unit_type_id type, int count);
92void handle_edit_unit_remove_by_id(struct connection *pc, int id);
93struct packet_edit_unit;
94void handle_edit_unit(struct connection *pc, const struct packet_edit_unit *packet);
95void handle_edit_city_create(struct connection *pc, int owner, int tile, int size, int tag);
96void handle_edit_city_remove(struct connection *pc, int id);
97struct packet_edit_city;
98void handle_edit_city(struct connection *pc, const struct packet_edit_city *packet);
99void handle_edit_player_create(struct connection *pc, int tag);
100void handle_edit_player_remove(struct connection *pc, int id);
101struct packet_edit_player;
102void handle_edit_player(struct connection *pc, const struct packet_edit_player *packet);
103void handle_edit_player_vision(struct connection *pc, int player, int tile, bool known, int size);
104struct packet_edit_game;
105void handle_edit_game(struct connection *pc, const struct packet_edit_game *packet);
106void handle_edit_scenario_desc(struct connection *pc, const char *scenario_desc);
107void handle_web_cma_set(struct player *pplayer, int id, const struct cm_parameter *cm_parameter);
108void handle_web_cma_clear(struct player *pplayer, int id);
109
110#endif /* FC__HAND_GEN_H */
incite_cost
char * incite_cost
Definition comments.c:74
report_type
report_type
Definition conn_types.h:49
fc_types.h
Nation_type_id
int Nation_type_id
Definition fc_types.h:384
Terrain_type_id
int Terrain_type_id
Definition fc_types.h:377
action_id
int action_id
Definition fc_types.h:393
Specialist_type_id
int Specialist_type_id
Definition fc_types.h:379
Government_type_id
int Government_type_id
Definition fc_types.h:385
spaceship_place_type
spaceship_place_type
Definition fc_types.h:1307
Unit_type_id
int Unit_type_id
Definition fc_types.h:386
actor_unit_id
static int actor_unit_id
Definition action_dialog.c:68
target_extra_id
static int target_extra_id
Definition action_dialog.c:70
owner
struct city * owner
Definition citydlg.c:220
type
GType type
Definition repodlgs.c:1313
handle_player_phase_done
void handle_player_phase_done(struct player *pplayer, int turn)
Definition plrhand.c:3180
handle_city_change
void handle_city_change(struct player *pplayer, int city_id, int production_kind, int production_value)
Definition cityhand.c:434
handle_player_multiplier
void handle_player_multiplier(struct player *pplayer, int count, const int *multipliers)
Definition plrhand.c:3396
handle_city_options_req
void handle_city_options_req(struct player *pplayer, int city_id, bv_city_options options)
Definition cityhand.c:508
handle_client_heartbeat
void handle_client_heartbeat(struct connection *pc)
Definition sernet.c:1461
handle_city_rally_point
void handle_city_rally_point(struct player *pplayer, const struct packet_city_rally_point *packet)
Definition cityhand.c:525
handle_nation_select_req
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:2367
handle_edit_tile
void handle_edit_tile(struct connection *pc, const struct packet_edit_tile *packet)
Definition edithand.c:375
handle_web_cma_set
void handle_web_cma_set(struct player *pplayer, int id, const struct cm_parameter *cm_parameter)
Definition cityhand.c:539
handle_edit_unit_remove_by_id
void handle_edit_unit_remove_by_id(struct connection *pc, int id)
Definition edithand.c:594
handle_edit_scenario_desc
void handle_edit_scenario_desc(struct connection *pc, const char *scenario_desc)
Definition edithand.c:1487
handle_unit_get_actions
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:2244
handle_edit_check_tiles
void handle_edit_check_tiles(struct connection *pc)
Definition edithand.c:1305
handle_unit_type_upgrade
void handle_unit_type_upgrade(struct player *pplayer, Unit_type_id type)
Definition unithand.c:187
handle_unit_orders
void handle_unit_orders(struct player *pplayer, const struct packet_unit_orders *packet)
Definition unithand.c:6743
handle_city_name_suggestion_req
void handle_city_name_suggestion_req(struct player *pplayer, int unit_id)
Definition cityhand.c:59
handle_edit_toggle_fogofwar
void handle_edit_toggle_fogofwar(struct connection *pc, int player)
Definition edithand.c:1315
handle_edit_tile_terrain
void handle_edit_tile_terrain(struct connection *pc, int tile, Terrain_type_id terrain, int size)
Definition edithand.c:298
handle_edit_startpos
void handle_edit_startpos(struct connection *pc, const struct packet_edit_startpos *packet)
Definition edithand.c:1348
handle_edit_player
void handle_edit_player(struct connection *pc, const struct packet_edit_player *packet)
Definition edithand.c:1006
handle_report_req
void handle_report_req(struct connection *pc, enum report_type type)
Definition srv_main.c:1986
handle_city_worklist
void handle_city_worklist(struct player *pplayer, int city_id, const struct worklist *worklist)
Definition cityhand.c:383
handle_city_buy
void handle_city_buy(struct player *pplayer, int city_id)
Definition cityhand.c:401
handle_client_info
void handle_client_info(struct connection *pc, enum gui_type gui, int emerg_version, const char *distribution)
Definition srv_main.c:314
handle_worker_task
void handle_worker_task(struct player *pplayer, const struct packet_worker_task *packet)
Definition unithand.c:6852
handle_city_change_specialist
void handle_city_change_specialist(struct player *pplayer, int city_id, Specialist_type_id from, Specialist_type_id to)
Definition cityhand.c:91
handle_player_tech_goal
void handle_player_tech_goal(struct player *pplayer, int tech)
Definition techtools.c:1361
handle_unit_change_activity
void handle_unit_change_activity(struct player *pplayer, int unit_id, enum unit_activity activity, int target)
Definition unithand.c:4328
handle_player_place_infra
void handle_player_place_infra(struct player *pplayer, int tile, int extra)
Definition infrapts.c:29
handle_diplomacy_remove_clause_req
void handle_diplomacy_remove_clause_req(struct player *pplayer, int counterpart, int giver, enum clause_type type, int value)
Definition diplhand.c:720
handle_diplomacy_create_clause_req
void handle_diplomacy_create_clause_req(struct player *pplayer, int counterpart, int giver, enum clause_type type, int value)
Definition diplhand.c:753
handle_player_attribute_block
void handle_player_attribute_block(struct player *pplayer)
Definition plrhand.c:3172
handle_edit_player_remove
void handle_edit_player_remove(struct connection *pc, int id)
Definition edithand.c:982
handle_unit_action_query
void handle_unit_action_query(struct connection *pc, int actor_id, int target_id, action_id action_type, int request_kind)
Definition unithand.c:3177
handle_player_ready
void handle_player_ready(struct player *pplayer, int player_no, bool is_ready)
Definition srv_main.c:2449
handle_edit_city_remove
void handle_edit_city_remove(struct connection *pc, int id)
Definition edithand.c:1288
handle_city_sell
void handle_city_sell(struct player *pplayer, int city_id, int build_id)
Definition cityhand.c:278
handle_chat_msg_req
void handle_chat_msg_req(struct connection *pc, const char *message)
Definition handchat.c:320
handle_edit_player_vision
void handle_edit_player_vision(struct connection *pc, int player, int tile, bool known, int size)
Definition edithand.c:1208
handle_player_research
void handle_player_research(struct player *pplayer, int tech)
Definition techtools.c:1338
handle_unit_server_side_agent_set
void handle_unit_server_side_agent_set(struct player *pplayer, int unit_id, enum server_side_agent agent)
Definition unithand.c:6454
handle_player_change_government
void handle_player_change_government(struct player *pplayer, Government_type_id government)
Definition plrhand.c:565
handle_single_want_hack_req
void handle_single_want_hack_req(struct connection *pc, const struct packet_single_want_hack_req *packet)
Definition gamehand.c:1237
handle_edit_city
void handle_edit_city(struct connection *pc, const struct packet_edit_city *packet)
Definition edithand.c:743
server_handle_packet
bool server_handle_packet(enum packet_type type, const void *packet, struct player *pplayer, struct connection *pconn)
Definition hand_gen.c:17
handle_edit_city_create
void handle_edit_city_create(struct connection *pc, int owner, int tile, int size, int tag)
Definition edithand.c:687
handle_spaceship_place
void handle_spaceship_place(struct player *pplayer, enum spaceship_place_type type, int num)
Definition spacerace.c:206
handle_conn_pong
void handle_conn_pong(struct connection *pc)
Definition sernet.c:1441
handle_diplomacy_init_meeting_req
void handle_diplomacy_init_meeting_req(struct player *pplayer, int counterpart)
Definition diplhand.c:845
handle_edit_game
void handle_edit_game(struct connection *pc, const struct packet_edit_game *packet)
Definition edithand.c:1424
handle_edit_tile_extra
void handle_edit_tile_extra(struct connection *pc, int tile, int extra_type_id, bool removal, int eowner, int size)
Definition edithand.c:335
handle_diplomacy_cancel_meeting_req
void handle_diplomacy_cancel_meeting_req(struct player *pplayer, int counterpart)
Definition diplhand.c:830
handle_unit_do_action
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:3291
handle_edit_startpos_full
void handle_edit_startpos_full(struct connection *pc, const struct packet_edit_startpos_full *packet)
Definition edithand.c:1386
handle_diplomacy_cancel_pact
void handle_diplomacy_cancel_pact(struct player *pplayer, int other_player_id, enum clause_type clause)
Definition plrhand.c:880
handle_city_make_worker
void handle_city_make_worker(struct player *pplayer, int city_id, int tile_id)
Definition cityhand.c:169
handle_edit_mode
void handle_edit_mode(struct connection *pc, bool state)
Definition edithand.c:188
handle_player_attribute_chunk
void handle_player_attribute_chunk(struct player *pplayer, const struct packet_player_attribute_chunk *packet)
Definition plrhand.c:3162
handle_spaceship_launch
void handle_spaceship_launch(struct player *pplayer)
Definition spacerace.c:167
handle_player_rates
void handle_player_rates(struct player *pplayer, int tax, int luxury, int science)
Definition plrhand.c:285
handle_unit_sscs_set
void handle_unit_sscs_set(struct player *pplayer, int unit_id, enum unit_ss_data_type type, int value)
Definition unithand.c:6347
handle_ruleset_select
void handle_ruleset_select(struct connection *pc, const struct packet_ruleset_select *packet)
Definition gamehand.c:1186
handle_edit_player_create
void handle_edit_player_create(struct connection *pc, int tag)
Definition edithand.c:903
handle_city_refresh
void handle_city_refresh(struct player *pplayer, int city_id)
Definition cityhand.c:415
handle_edit_recalculate_borders
void handle_edit_recalculate_borders(struct connection *pc)
Definition edithand.c:1280
handle_save_scenario
void handle_save_scenario(struct connection *pc, const char *name)
Definition edithand.c:1499
handle_city_make_specialist
void handle_city_make_specialist(struct player *pplayer, int city_id, int tile_id)
Definition cityhand.c:122
handle_city_rename
void handle_city_rename(struct player *pplayer, int city_id, const char *name)
Definition cityhand.c:483
handle_edit_unit_create
void handle_edit_unit_create(struct connection *pc, int owner, int tile, Unit_type_id type, int count, int tag)
Definition edithand.c:433
handle_edit_unit_remove
void handle_edit_unit_remove(struct connection *pc, int owner, int tile, Unit_type_id type, int count)
Definition edithand.c:539
handle_vote_submit
void handle_vote_submit(struct connection *pc, int vote_no, int value)
Definition voting.c:775
handle_web_cma_clear
void handle_web_cma_clear(struct player *pplayer, int id)
Definition cityhand.c:567
handle_edit_unit
void handle_edit_unit(struct connection *pc, const struct packet_edit_unit *packet)
Definition edithand.c:611
handle_diplomacy_accept_treaty_req
void handle_diplomacy_accept_treaty_req(struct player *pplayer, int counterpart)
Definition diplhand.c:147
name
const char * name
Definition inputfile.c:127
gui
static mpgui * gui
Definition mpgui_qt.cpp:52
multipliers
static struct multiplier multipliers[MAX_NUM_MULTIPLIERS]
Definition multipliers.c:23
packets.h
packet_type
packet_type
Definition packets_gen.h:1902
shared.h
size
size_t size
Definition specvec.h:72
agent
Definition agents.h:40
cm_parameter
Definition cm.h:40
connection
Definition connection.h:136
government
Definition government.h:52
message
Definition messagewin_common.h:29
packet_city_rally_point
Definition packets_gen.h:495
packet_edit_city
Definition packets_gen.h:1769
packet_edit_game
Definition packets_gen.h:1845
packet_edit_player
Definition packets_gen.h:1809
packet_edit_startpos_full
Definition packets_gen.h:1703
packet_edit_startpos
Definition packets_gen.h:1697
packet_edit_tile
Definition packets_gen.h:1709
packet_edit_unit
Definition packets_gen.h:1738
packet_player_attribute_chunk
Definition packets_gen.h:589
packet_ruleset_select
Definition packets_gen.h:1512
packet_single_want_hack_req
Definition packets_gen.h:1499
packet_unit_orders
Definition packets_gen.h:712
packet_unit_orders::unit_id
int unit_id
Definition packets_gen.h:713
packet_worker_task
Definition packets_gen.h:503
player
Definition player.h:249
terrain
Definition terrain.h:75
tile
Definition tile.h:50
worklist
Definition worklist.h:28