Freeciv-3.1
|
Go to the source code of this file.
Data Structures | |
struct | functions |
Functions | |
struct functions * | fc_interface_funcs (void) |
void | libfreeciv_init (bool check_fc_interface) |
void | libfreeciv_free (void) |
static bool | is_server (void) |
void | i_am_server (void) |
void | i_am_client (void) |
static void | i_am_tool (void) |
Variables | |
const struct functions * | fc_funcs |
bool | am_i_server |
struct functions * fc_interface_funcs | ( | void | ) |
Return the function pointer. Only possible before interface_init() was called (fc_funcs_defined FALSE).
Definition at line 47 of file fc_interface.c.
Referenced by fc_interface_init_client(), fc_interface_init_server(), and fc_interface_init_tool().
void i_am_client | ( | void | ) |
Set program type to client.
Definition at line 65 of file fc_interface.c.
Referenced by client_main().
void i_am_server | ( | void | ) |
Set program type to server.
Definition at line 57 of file fc_interface.c.
Referenced by i_am_tool(), and srv_init().
|
inlinestatic |
|
inlinestatic |
Is the program type server?
Definition at line 69 of file fc_interface.h.
Referenced by achievement_check(), add_connection_data(), api_methods_city_inspire_partisans(), api_methods_is_city_happy(), api_methods_is_city_unhappy(), can_unit_alight_or_be_unloaded(), citizens_count(), city_add_improvement(), city_from_great_wonder(), city_from_wonder(), city_illness_calc(), city_is_occupied(), city_remove_improvement(), conn_pattern_match(), connection_do_unbuffer(), connection_send_data(), create_city_virtual(), destroy_city_virtual(), game_defaults(), game_init(), game_reset(), game_ruleset_free(), game_ruleset_init(), get_packet_from_connection_raw(), is_age_req_active(), is_my_zoc(), is_nation_pickable(), nation_cities(), nation_city_new(), nation_free(), nation_group_new(), nation_group_set_match(), nation_init(), nations_match(), packet_handlers_fill_capability(), packet_handlers_fill_initial(), pft_fill_attack_param(), pft_fill_overlap_param(), pft_fill_parameter(), player_clear(), player_destroy(), send_packet_data(), set_city_production(), tile_set_terrain(), tri_req_active_turns(), unit_can_airlift_to(), unit_list_sort_ord_city(), unit_list_sort_ord_map(), unit_transported(), unit_virtual_create(), unit_virtual_destroy(), and write_socket_data().
void libfreeciv_free | ( | void | ) |
Free misc resources allocated for libfreeciv.
Definition at line 103 of file fc_interface.c.
Referenced by client_exit(), fcmp_deinit(), main(), and server_quit().
void libfreeciv_init | ( | bool | check_fc_interface | ) |
Initialize libfreeciv. With check_fc_interface, also tests and initialize the functions.
Definition at line 74 of file fc_interface.c.
Referenced by fc_interface_init_client(), fc_interface_init_server(), fc_interface_init_tool(), and fcmp_init().
|
extern |
Definition at line 60 of file game.c.
Referenced by i_am_client(), i_am_server(), and is_server().
|
extern |
Definition at line 38 of file fc_interface.c.
Referenced by can_player_see_unit_at(), is_action_possible(), libfreeciv_init(), objbind_get_value_from_object(), player_can_trust_tile_has_no_units(), player_clear(), rgbcolor_destroy(), server_setting_by_name(), server_setting_name_get(), server_setting_type_get(), server_setting_value_bitwise_get(), server_setting_value_bool_get(), server_setting_value_int_get(), tile_create_extra(), tile_destroy_extra(), and tile_get_known().