Freeciv-3.1: /fast/freeciv/nightly/S3_1/server/hand_gen.h Source File

Freeciv-3.1

Loading...
Searching...
No Matches
hand_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__HAND_GEN_H
11#define FC__HAND_GEN_H
12
13/* utility */
14#include "shared.h"
15
16/* common */
17#include "fc_types.h"
18#include "packets.h"
19
20struct connection;
21
22bool server_handle_packet(enum packet_type type, const void *packet,
23 struct player *pplayer, struct connection *pconn);
24
25void handle_nation_select_req(struct connection *pc, int player_no, Nation_type_id nation_no, bool is_male, const char *name, int style);
26void handle_player_ready(struct player *pplayer, int player_no, bool is_ready);
27void handle_chat_msg_req(struct connection *pc, const char *message);
28void handle_city_sell(struct player *pplayer, int city_id16, int city_id32, int build_id);
29void handle_city_buy(struct player *pplayer, int city_id16, int city_id32);
30void handle_city_change(struct player *pplayer, int city_id16, int city_id32, int production_kind, int production_value);
31void handle_city_worklist(struct player *pplayer, int city_id16, int city_id32, const struct worklist *worklist);
32void handle_city_make_specialist(struct player *pplayer, int city_id16, int city_id32, int tile_id);
33void handle_city_make_worker(struct player *pplayer, int city_id16, int city_id32, int tile_id);
34void handle_city_change_specialist(struct player *pplayer, int city_id16, int city_id32, Specialist_type_id from, Specialist_type_id to);
35void handle_city_rename(struct player *pplayer, int city_id16, int city_id32, const char *name);
36void handle_city_options_req(struct player *pplayer, int city_id16, int city_id32, bv_city_options options);
37void handle_city_refresh(struct player *pplayer, int city_id16, int city_id32);
38void handle_city_name_suggestion_req(struct player *pplayer, int unit_id16, int unit_id32);
39struct packet_city_rally_point;
40void handle_city_rally_point(struct player *pplayer, const struct packet_city_rally_point *packet);
41struct packet_worker_task;
42void handle_worker_task(struct player *pplayer, const struct packet_worker_task *packet);
43void handle_player_phase_done(struct player *pplayer, int turn);
44void handle_player_rates(struct player *pplayer, int tax, int luxury, int science);
45void handle_player_change_government(struct player *pplayer, Government_type_id government);
46void handle_player_place_infra(struct player *pplayer, int tile, int extra);
47void handle_player_attribute_block(struct player *pplayer);
48struct packet_player_attribute_chunk;
49void handle_player_attribute_chunk(struct player *pplayer, const struct packet_player_attribute_chunk *packet);
50void handle_player_multiplier(struct player *pplayer, int count, const int *multipliers);
51void handle_player_research(struct player *pplayer, int tech);
52void handle_player_tech_goal(struct player *pplayer, int tech);
53void handle_unit_sscs_set(struct player *pplayer, int unit_id16, int unit_id32, enum unit_ss_data_type type, int value);
54struct packet_unit_orders;
55void handle_unit_orders(struct player *pplayer, const struct packet_unit_orders *packet);
56void handle_unit_server_side_agent_set(struct player *pplayer, int unit_id16, int unit_id32, enum server_side_agent agent);
57void handle_unit_action_query(struct connection *pc, int actor_id16, int actor_id32, int target_id, action_id action_type, int request_kind);
58void handle_unit_type_upgrade(struct player *pplayer, Unit_type_id type);
59struct packet_unit_do_action;
60void handle_unit_do_action(struct player *pplayer, const struct packet_unit_do_action *packet);
61struct packet_unit_get_actions;
62void handle_unit_get_actions(struct connection *pc, const struct packet_unit_get_actions *packet);
63void handle_unit_change_activity(struct player *pplayer, int unit_id16, int unit_id32, enum unit_activity activity, int target);
64void handle_diplomacy_init_meeting_req(struct player *pplayer, int counterpart);
65void handle_diplomacy_cancel_meeting_req(struct player *pplayer, int counterpart);
66void handle_diplomacy_create_clause_req(struct player *pplayer, int counterpart, int giver, enum clause_type type, int value);
67void handle_diplomacy_remove_clause_req(struct player *pplayer, int counterpart, int giver, enum clause_type type, int value);
68void handle_diplomacy_accept_treaty_req(struct player *pplayer, int counterpart);
69void handle_diplomacy_cancel_pact(struct player *pplayer, int other_player_id, enum clause_type clause);
70void handle_report_req(struct connection *pc, enum report_type type);
71void handle_conn_pong(struct connection *pc);
72void handle_client_heartbeat(struct connection *pc);
73void handle_client_info(struct connection *pc, enum gui_type gui, int emerg_version, const char *distribution);
74void handle_spaceship_launch(struct player *pplayer);
75void handle_spaceship_place(struct player *pplayer, enum spaceship_place_type type, int num);
76struct packet_single_want_hack_req;
77void handle_single_want_hack_req(struct connection *pc, const struct packet_single_want_hack_req *packet);
78void handle_save_scenario(struct connection *pc, const char *name);
79void handle_vote_submit(struct connection *pc, int vote_no, int value);
80void handle_edit_mode(struct connection *pc, bool state);
81void handle_edit_recalculate_borders(struct connection *pc);
82void handle_edit_check_tiles(struct connection *pc);
83void handle_edit_toggle_fogofwar(struct connection *pc, int player);
84void handle_edit_tile_terrain(struct connection *pc, int tile, Terrain_type_id terrain, int size);
85void handle_edit_tile_extra(struct connection *pc, int tile, int extra_type_id, bool removal, int eowner, int size);
86struct packet_edit_startpos;
87void handle_edit_startpos(struct connection *pc, const struct packet_edit_startpos *packet);
88struct packet_edit_startpos_full;
89void handle_edit_startpos_full(struct connection *pc, const struct packet_edit_startpos_full *packet);
90struct packet_edit_tile;
91void handle_edit_tile(struct connection *pc, const struct packet_edit_tile *packet);
92void handle_edit_unit_create(struct connection *pc, int owner, int tile, Unit_type_id type, int count, int tag);
93void handle_edit_unit_remove(struct connection *pc, int owner, int tile, Unit_type_id type, int count);
94void handle_edit_unit_remove_by_id(struct connection *pc, int id16, int id32);
95struct packet_edit_unit;
96void handle_edit_unit(struct connection *pc, const struct packet_edit_unit *packet);
97void handle_edit_city_create(struct connection *pc, int owner, int tile, int size, int tag);
98void handle_edit_city_remove(struct connection *pc, int id16, int id32);
99struct packet_edit_city;
100void handle_edit_city(struct connection *pc, const struct packet_edit_city *packet);
101void handle_edit_player_create(struct connection *pc, int tag);
102void handle_edit_player_remove(struct connection *pc, int id);
103struct packet_edit_player;
104void handle_edit_player(struct connection *pc, const struct packet_edit_player *packet);
105void handle_edit_player_vision(struct connection *pc, int player, int tile, bool known, int size);
106struct packet_edit_game;
107void handle_edit_game(struct connection *pc, const struct packet_edit_game *packet);
108void handle_edit_scenario_desc(struct connection *pc, const char *scenario_desc);
109
110#endif /* FC__HAND_GEN_H */
giver
int int initiated_from int int giver
Definition diplodlg_g.h:28
counterpart
int counterpart
Definition diplodlg_g.h:25
fc_types.h
Nation_type_id
int Nation_type_id
Definition fc_types.h:350
Terrain_type_id
int Terrain_type_id
Definition fc_types.h:343
action_id
int action_id
Definition fc_types.h:359
Specialist_type_id
int Specialist_type_id
Definition fc_types.h:345
Government_type_id
int Government_type_id
Definition fc_types.h:351
spaceship_place_type
spaceship_place_type
Definition fc_types.h:1148
Unit_type_id
int Unit_type_id
Definition fc_types.h:352
owner
struct city * owner
Definition citydlg.c:219
type
GType type
Definition repodlgs.c:1312
handle_player_phase_done
void handle_player_phase_done(struct player *pplayer, int turn)
Definition plrhand.c:3007
handle_player_multiplier
void handle_player_multiplier(struct player *pplayer, int count, const int *multipliers)
Definition plrhand.c:3220
handle_unit_server_side_agent_set
void handle_unit_server_side_agent_set(struct player *pplayer, int unit_id16, int unit_id32, enum server_side_agent agent)
Definition unithand.c:6021
handle_client_heartbeat
void handle_client_heartbeat(struct connection *pc)
Definition sernet.c:1451
handle_city_rally_point
void handle_city_rally_point(struct player *pplayer, const struct packet_city_rally_point *packet)
Definition cityhand.c:588
handle_unit_change_activity
void handle_unit_change_activity(struct player *pplayer, int unit_id16, int unit_id32, enum unit_activity activity, int target)
Definition unithand.c:4148
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:2259
handle_edit_tile
void handle_edit_tile(struct connection *pc, const struct packet_edit_tile *packet)
Definition edithand.c:376
handle_unit_get_actions
void handle_unit_get_actions(struct connection *pc, const struct packet_unit_get_actions *packet)
Definition unithand.c:2079
handle_edit_scenario_desc
void handle_edit_scenario_desc(struct connection *pc, const char *scenario_desc)
Definition edithand.c:1500
handle_edit_check_tiles
void handle_edit_check_tiles(struct connection *pc)
Definition edithand.c:1318
handle_unit_type_upgrade
void handle_unit_type_upgrade(struct player *pplayer, Unit_type_id type)
Definition unithand.c:186
handle_unit_orders
void handle_unit_orders(struct player *pplayer, const struct packet_unit_orders *packet)
Definition unithand.c:6317
handle_city_refresh
void handle_city_refresh(struct player *pplayer, int city_id16, int city_id32)
Definition cityhand.c:455
handle_unit_sscs_set
void handle_unit_sscs_set(struct player *pplayer, int unit_id16, int unit_id32, enum unit_ss_data_type type, int value)
Definition unithand.c:5908
handle_city_options_req
void handle_city_options_req(struct player *pplayer, int city_id16, int city_id32, bv_city_options options)
Definition cityhand.c:564
handle_city_make_specialist
void handle_city_make_specialist(struct player *pplayer, int city_id16, int city_id32, int tile_id)
Definition cityhand.c:138
handle_edit_toggle_fogofwar
void handle_edit_toggle_fogofwar(struct connection *pc, int player)
Definition edithand.c:1328
handle_edit_tile_terrain
void handle_edit_tile_terrain(struct connection *pc, int tile, Terrain_type_id terrain, int size)
Definition edithand.c:299
handle_edit_startpos
void handle_edit_startpos(struct connection *pc, const struct packet_edit_startpos *packet)
Definition edithand.c:1361
handle_edit_player
void handle_edit_player(struct connection *pc, const struct packet_edit_player *packet)
Definition edithand.c:1021
handle_report_req
void handle_report_req(struct connection *pc, enum report_type type)
Definition srv_main.c:1882
handle_city_make_worker
void handle_city_make_worker(struct player *pplayer, int city_id16, int city_id32, int tile_id)
Definition cityhand.c:189
handle_client_info
void handle_client_info(struct connection *pc, enum gui_type gui, int emerg_version, const char *distribution)
Definition srv_main.c:307
handle_worker_task
void handle_worker_task(struct player *pplayer, const struct packet_worker_task *packet)
Definition unithand.c:6435
handle_player_tech_goal
void handle_player_tech_goal(struct player *pplayer, int tech)
Definition techtools.c:1334
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:746
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:779
handle_player_attribute_block
void handle_player_attribute_block(struct player *pplayer)
Definition plrhand.c:2999
handle_edit_player_remove
void handle_edit_player_remove(struct connection *pc, int id)
Definition edithand.c:997
handle_player_ready
void handle_player_ready(struct player *pplayer, int player_no, bool is_ready)
Definition srv_main.c:2341
handle_city_worklist
void handle_city_worklist(struct player *pplayer, int city_id16, int city_id32, const struct worklist *worklist)
Definition cityhand.c:411
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:1217
handle_city_sell
void handle_city_sell(struct player *pplayer, int city_id16, int city_id32, int build_id)
Definition cityhand.c:298
handle_player_research
void handle_player_research(struct player *pplayer, int tech)
Definition techtools.c:1311
handle_player_change_government
void handle_player_change_government(struct player *pplayer, Government_type_id government)
Definition plrhand.c:454
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:1137
handle_edit_city
void handle_edit_city(struct connection *pc, const struct packet_edit_city *packet)
Definition edithand.c:751
server_handle_packet
bool server_handle_packet(enum packet_type type, const void *packet, struct player *pplayer, struct connection *pconn)
Definition hand_gen.c:20
handle_edit_city_create
void handle_edit_city_create(struct connection *pc, int owner, int tile, int size, int tag)
Definition edithand.c:695
handle_spaceship_place
void handle_spaceship_place(struct player *pplayer, enum spaceship_place_type type, int num)
Definition spacerace.c:205
handle_conn_pong
void handle_conn_pong(struct connection *pc)
Definition sernet.c:1431
handle_diplomacy_init_meeting_req
void handle_diplomacy_init_meeting_req(struct player *pplayer, int counterpart)
Definition diplhand.c:872
handle_unit_do_action
void handle_unit_do_action(struct player *pplayer, const struct packet_unit_do_action *packet)
Definition unithand.c:3134
handle_edit_game
void handle_edit_game(struct connection *pc, const struct packet_edit_game *packet)
Definition edithand.c:1437
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:336
handle_diplomacy_cancel_meeting_req
void handle_diplomacy_cancel_meeting_req(struct player *pplayer, int counterpart)
Definition diplhand.c:857
handle_edit_startpos_full
void handle_edit_startpos_full(struct connection *pc, const struct packet_edit_startpos_full *packet)
Definition edithand.c:1399
handle_diplomacy_cancel_pact
void handle_diplomacy_cancel_pact(struct player *pplayer, int other_player_id, enum clause_type clause)
Definition plrhand.c:761
handle_edit_city_remove
void handle_edit_city_remove(struct connection *pc, int id16, int id32)
Definition edithand.c:1297
handle_edit_mode
void handle_edit_mode(struct connection *pc, bool state)
Definition edithand.c:189
handle_player_attribute_chunk
void handle_player_attribute_chunk(struct player *pplayer, const struct packet_player_attribute_chunk *packet)
Definition plrhand.c:2989
handle_city_change
void handle_city_change(struct player *pplayer, int city_id16, int city_id32, int production_kind, int production_value)
Definition cityhand.c:478
handle_spaceship_launch
void handle_spaceship_launch(struct player *pplayer)
Definition spacerace.c:166
handle_player_rates
void handle_player_rates(struct player *pplayer, int tax, int luxury, int science)
Definition plrhand.c:285
handle_city_buy
void handle_city_buy(struct player *pplayer, int city_id16, int city_id32)
Definition cityhand.c:435
handle_edit_player_create
void handle_edit_player_create(struct connection *pc, int tag)
Definition edithand.c:918
handle_edit_recalculate_borders
void handle_edit_recalculate_borders(struct connection *pc)
Definition edithand.c:1289
handle_city_change_specialist
void handle_city_change_specialist(struct player *pplayer, int city_id16, int city_id32, Specialist_type_id from, Specialist_type_id to)
Definition cityhand.c:100
handle_save_scenario
void handle_save_scenario(struct connection *pc, const char *name)
Definition edithand.c:1512
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:434
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:537
handle_edit_unit_remove_by_id
void handle_edit_unit_remove_by_id(struct connection *pc, int id16, int id32)
Definition edithand.c:592
handle_city_name_suggestion_req
void handle_city_name_suggestion_req(struct player *pplayer, int unit_id16, int unit_id32)
Definition cityhand.c:60
handle_city_rename
void handle_city_rename(struct player *pplayer, int city_id16, int city_id32, const char *name)
Definition cityhand.c:533
handle_vote_submit
void handle_vote_submit(struct connection *pc, int vote_no, int value)
Definition voting.c:775
handle_edit_unit
void handle_edit_unit(struct connection *pc, const struct packet_edit_unit *packet)
Definition edithand.c:614
handle_diplomacy_accept_treaty_req
void handle_diplomacy_accept_treaty_req(struct player *pplayer, int counterpart)
Definition diplhand.c:184
handle_unit_action_query
void handle_unit_action_query(struct connection *pc, int actor_id16, int actor_id32, int target_id, action_id action_type, int request_kind)
Definition unithand.c:3013
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
report_type
report_type
Definition packets.h:73
packet_type
packet_type
Definition packets_gen.h:1883
shared.h
size
size_t size
Definition specvec.h:72
agent
Definition agents.h:40
connection
Definition connection.h:141
government
Definition government.h:52
message
Definition messagewin_common.h:29
packet_city_rally_point
Definition packets_gen.h:497
packet_edit_city
Definition packets_gen.h:1766
packet_edit_game
Definition packets_gen.h:1841
packet_edit_player
Definition packets_gen.h:1806
packet_edit_startpos_full
Definition packets_gen.h:1695
packet_edit_startpos
Definition packets_gen.h:1689
packet_edit_tile
Definition packets_gen.h:1701
packet_edit_unit
Definition packets_gen.h:1731
packet_edit_unit::id16
int id16
Definition packets_gen.h:1732
packet_edit_unit::id32
int id32
Definition packets_gen.h:1733
packet_player_attribute_chunk
Definition packets_gen.h:591
packet_single_want_hack_req
Definition packets_gen.h:1496
packet_unit_do_action
Definition packets_gen.h:751
packet_unit_get_actions
Definition packets_gen.h:769
packet_unit_orders
Definition packets_gen.h:722
packet_unit_orders::unit_id16
int unit_id16
Definition packets_gen.h:723
packet_unit_orders::unit_id32
int unit_id32
Definition packets_gen.h:724
packet_worker_task
Definition packets_gen.h:506
player
Definition player.h:249
terrain
Definition terrain.h:176
tile
Definition tile.h:49
worklist
Definition worklist.h:28