Crossfire Client, Branches
R11627
|
Go to the source code of this file.
Macros | |
#define | FREE_AND_CLEAR(xyz) { free(xyz); xyz=NULL; } |
Functions | |
void | init_client_vars (void) |
void | reset_client_vars (void) |
void | reset_player_data (void) |
void | SendAddMe (ClientSocket csock) |
void | SendSetFaceMode (ClientSocket csock, int mode) |
void | SendVersion (ClientSocket csock) |
void | VersionCmd (char *data, int len) |
Variables | |
const char *const | config_names [CONFIG_NUMS] |
const char *const | rcsid_common_init_c |
sint16 | use_config [CONFIG_NUMS] |
sint16 | want_config [CONFIG_NUMS] |
#define FREE_AND_CLEAR | ( | xyz | ) | { free(xyz); xyz=NULL; } |
Definition at line 52 of file init.c.
Referenced by reset_client_vars().
void init_client_vars | ( | void | ) |
Definition at line 97 of file init.c.
References Player_Struct::below, Face_Information_struct::bmaps_checksum, Face_Information_struct::cache_hits, Face_Information_struct::cache_misses, CFG_DM_PIXMAP, CFG_LT_TILE, client_libdir, ClientSocket::command_received, ClientSocket::command_sent, ClientSocket::command_time, COMMAND_WINDOW, FaceSets_struct::comment, CONFIG_APPLY_CONTAINER, CONFIG_CACHE, CONFIG_CWINDOW, CONFIG_DARKNESS, CONFIG_DISPLAYMODE, CONFIG_DOWNLOAD, CONFIG_ECHO, CONFIG_FASTTCP, CONFIG_FOGWAR, CONFIG_FOODBEEP, CONFIG_GRAD_COLOR, CONFIG_ICONSCALE, CONFIG_LIGHTING, CONFIG_MAPHEIGHT, CONFIG_MAPSCALE, CONFIG_MAPSCROLL, CONFIG_MAPWIDTH, CONFIG_NUMS, CONFIG_POPUPS, CONFIG_PORT, CONFIG_RESISTS, CONFIG_SHOWGRID, CONFIG_SHOWICON, CONFIG_SIGNPOPUP, CONFIG_SMOOTH, CONFIG_SOUND, CONFIG_SPLASH, CONFIG_SPLITINFO, CONFIG_SPLITWIN, CONFIG_TIMESTAMP, CONFIG_TOOLTIPS, CONFIG_TRIMINFO, Player_Struct::container, Player_Struct::count_left, cpl, csocket, EPORT, exp_table, exp_table_max, FaceSets_struct::extension, face_info, Face_Information_struct::faceset, Face_Information_struct::facesets, FaceSets_struct::fallback, FALSE, FaceSets_struct::fullname, Face_Information_struct::have_faceset_info, init_commands(), init_metaserver(), Player_Struct::input_text, Player_Struct::last_command, last_used_skills, LOG(), LOG_INFO, Player_Struct::magicmap, map_item(), MAX_BUF, MAX_FACE_SETS, MAX_SKILL, Stat_struct::maxgrace, Stat_struct::maxhp, Stat_struct::maxsp, Face_Information_struct::num_images, Player_Struct::ob, Face_Information_struct::old_bmaps_checksum, player_item(), FaceSets_struct::prefix, Player_Struct::range, range_size, Player_Struct::ranges, Player_Struct::showmagic, FaceSets_struct::size, Stat_struct::skill_exp, Stat_struct::skill_level, skill_names, Stat_struct::speed, Player_Struct::stats, Player_Struct::title, TRUE, use_config, want_config, and Face_Information_struct::want_faceset.
Referenced by main().
void reset_client_vars | ( | void | ) |
Definition at line 249 of file init.c.
References Face_Information_struct::bmaps_checksum, Face_Information_struct::cache_hits, Face_Information_struct::cache_misses, ClientSocket::command_received, ClientSocket::command_sent, ClientSocket::command_time, FaceSets_struct::comment, Player_Struct::container, Player_Struct::count_left, cpl, csocket, FaceSets_struct::extension, face_info, Face_Information_struct::faceset, Face_Information_struct::facesets, FaceSets_struct::fallback, FREE_AND_CLEAR, FaceSets_struct::fullname, Face_Information_struct::have_faceset_info, Player_Struct::input_text, Player_Struct::last_command, Player_Struct::magicmap, MAX_FACE_SETS, MAX_SKILL, Stat_struct::maxgrace, Stat_struct::maxhp, Stat_struct::maxsp, Face_Information_struct::num_images, Face_Information_struct::old_bmaps_checksum, FaceSets_struct::prefix, Player_Struct::range, range_size, Player_Struct::ranges, reset_player_data(), Player_Struct::showmagic, FaceSets_struct::size, skill_names, Stat_struct::speed, Player_Struct::stats, and Player_Struct::title.
Referenced by main().
void reset_player_data | ( | void | ) |
Definition at line 234 of file init.c.
References cpl, MAX_SKILL, Stat_struct::skill_exp, Stat_struct::skill_level, and Player_Struct::stats.
Referenced by PlayerCmd(), and reset_client_vars().
void SendAddMe | ( | ClientSocket | csock | ) |
Definition at line 85 of file init.c.
References cs_print_string(), and ClientSocket::fd.
Referenced by negotiate_connection().
void SendSetFaceMode | ( | ClientSocket | csock, |
int | mode | ||
) |
Definition at line 91 of file init.c.
References cs_print_string(), and ClientSocket::fd.
Referenced by SetupCmd().
void SendVersion | ( | ClientSocket | csock | ) |
Definition at line 78 of file init.c.
References cs_print_string(), ClientSocket::fd, VERSION_CS, VERSION_INFO, and VERSION_SC.
Referenced by negotiate_connection().
void VersionCmd | ( | char * | data, |
int | len | ||
) |
Definition at line 54 of file init.c.
References ClientSocket::cs_version, csocket, LOG(), LOG_INFO, LOG_WARNING, ClientSocket::sc_version, VERSION_CS, and VERSION_SC.
const char* const config_names[CONFIG_NUMS] |
See common/init.c - basically, this is a string to number mapping that is used when loading/saving the values.
Definition at line 40 of file init.c.
Referenced by load_defaults(), and save_defaults().
const char* const rcsid_common_init_c |
sint16 use_config[CONFIG_NUMS] |
Definition at line 50 of file init.c.
Referenced by admin_callback(), applyconfig(), book_callback(), button_map_event(), client_tick(), close_container(), command_foodbep(), configure_event(), create_and_rescale_image_from_data(), create_map_image(), create_windows(), display_map_doneupdate(), display_mapcell(), display_mapscroll(), display_newpng(), do_network(), draw_info(), draw_map(), draw_message_window(), draw_prompt(), draw_splash(), draw_stat_bar(), draw_stats(), expose_event(), Face2Cmd(), free_pixmap(), get_game_display(), get_info_display(), get_message_display(), get_root_display(), gtk_draw_map(), init_cache_data(), init_client_vars(), init_connection(), init_windows(), keyfunc(), list_button_event(), load_defaults(), main(), map_init(), metaserver_connect_to(), metaserver_select(), negotiate_connection(), on_drawingarea_map_button_press_event(), on_drawingarea_map_configure_event(), on_entry_commands_activate(), on_metaserver_select_clicked(), parse_args(), parse_game_button_press(), parse_key(), parse_key_release(), play_sound(), read_config_window(), resize_map_window(), save_defaults(), save_winpos(), script_process_cmd(), send_command(), set_command_window(), set_config_value(), set_darkness(), set_window_pos(), SetupCmd(), sign_callback(), and update_stat().
sint16 want_config[CONFIG_NUMS] |
Definition at line 50 of file init.c.
Referenced by applyconfig(), book_callback(), check_x_events(), command_foodbep(), configdialog(), create_windows(), get_game_display(), get_root_display(), init_client_vars(), init_common_cache_data(), init_sounds(), init_windows(), load_defaults(), main(), mapdata_scroll(), motd_callback(), negotiate_connection(), parse_args(), read_config_window(), reset_image_cache_data(), reset_image_data(), resize_map_window(), resize_win_root(), save_defaults(), save_winpos(), set_command_window(), set_config_value(), set_window_pos(), setup_config_window(), SetupCmd(), and sign_callback().