Crossfire Client, Branch
R11627
|
This file includes the various dependencies header files needed by most everything. More...
#include <config.h>
#include <version.h>
#include <client-types.h>
#include <newclient.h>
#include <item.h>
#include <proto.h>
Go to the source code of this file.
This file includes the various dependencies header files needed by most everything.
It also declares structures and other variables that the GUI portion needs
Definition in file client.h.
#define CAN_SMOOTH | ( | __SQUARE, | |
__LEVEL | |||
) |
( ( \ (__SQUARE.heads[__LEVEL].face==0) \ && (__LEVEL >0) \ ) \ || (__SQUARE.smooth[layer]) \ )
Definition at line 85 of file client.h.
Referenced by drawsmooth().
#define CFG_DM_OPENGL 2 |
Definition at line 196 of file client.h.
Referenced by create_and_rescale_image_from_data(), create_map_image(), do_network(), draw_map(), free_pixmap(), init_cache_data(), map_init(), parse_args(), and read_config_window().
#define CFG_DM_PIXMAP 0 |
Definition at line 194 of file client.h.
Referenced by configure_event(), create_and_rescale_image_from_data(), create_map_image(), draw_map(), draw_splash(), free_pixmap(), init_cache_data(), init_client_vars(), init_windows(), load_defaults(), map_init(), parse_args(), and read_config_window().
#define CFG_DM_SDL 1 |
Definition at line 195 of file client.h.
Referenced by applyconfig(), client_tick(), configure_event(), create_and_rescale_image_from_data(), create_map_image(), create_windows(), display_map_doneupdate(), display_mapscroll(), do_network(), draw_map(), expose_event(), free_pixmap(), init_cache_data(), init_windows(), load_defaults(), map_init(), parse_args(), read_config_window(), resize_map_window(), and set_darkness().
#define CFG_LT_NONE 0 |
Definition at line 186 of file client.h.
Referenced by read_config_window(), and setup_config_window().
#define CFG_LT_PIXEL 2 |
Definition at line 188 of file client.h.
Referenced by load_defaults(), read_config_window(), set_darkness(), and setup_config_window().
#define CFG_LT_PIXEL_BEST 3 |
Definition at line 189 of file client.h.
Referenced by read_config_window(), set_darkness(), and setup_config_window().
#define CFG_LT_TILE 1 |
Definition at line 187 of file client.h.
Referenced by init_client_vars(), load_defaults(), read_config_window(), and setup_config_window().
#define CHILD_PIPEERR | ( | __child | ) | (__child->tube[2]) |
Definition at line 415 of file client.h.
Referenced by raiseChild().
#define CHILD_PIPEIN | ( | __child | ) | (__child->tube[0]) |
Definition at line 413 of file client.h.
Referenced by raiseChild().
#define CHILD_PIPEOUT | ( | __child | ) | (__child->tube[1]) |
Definition at line 414 of file client.h.
Referenced by raiseChild().
#define CHILD_SILENTFAIL 8 |
Definition at line 402 of file client.h.
Referenced by raiseChild().
#define CHILD_STDERR 4 |
Definition at line 401 of file client.h.
Referenced by init_sounds(), logChildPipe(), and raiseChild().
#define CHILD_STDIN 1 |
Definition at line 399 of file client.h.
Referenced by init_sounds(), and raiseChild().
#define CHILD_STDOUT 2 |
Definition at line 400 of file client.h.
Referenced by init_sounds(), logChildPipe(), and raiseChild().
#define CHILD_TUBE (CHILD_STDIN|CHILD_STDOUT|CHILD_STDERR) |
Definition at line 403 of file client.h.
Referenced by raiseChild().
#define COMMAND_WINDOW 10 |
Definition at line 54 of file client.h.
Referenced by init_client_vars(), load_defaults(), and set_command_window().
#define CONFIG_APPLY_CONTAINER 28 /* Reapply container */ |
Definition at line 179 of file client.h.
Referenced by close_container(), and init_client_vars().
#define CONFIG_CACHE 5 |
Definition at line 156 of file client.h.
Referenced by check_x_events(), display_newpng(), Face2Cmd(), init_client_vars(), init_common_cache_data(), init_windows(), load_defaults(), negotiate_connection(), parse_args(), read_config_window(), reset_image_cache_data(), reset_image_data(), save_defaults(), setup_config_window(), and SetupCmd().
#define CONFIG_CWINDOW 4 |
Definition at line 155 of file client.h.
Referenced by init_client_vars(), load_defaults(), read_config_window(), save_defaults(), send_command(), set_command_window(), and setup_config_window().
#define CONFIG_DARKNESS 22 |
Definition at line 173 of file client.h.
Referenced by display_mapcell(), init_client_vars(), init_windows(), load_defaults(), parse_args(), and read_config_window().
#define CONFIG_DISPLAYMODE 10 |
Definition at line 161 of file client.h.
Referenced by applyconfig(), client_tick(), configure_event(), create_and_rescale_image_from_data(), create_map_image(), create_windows(), display_map_doneupdate(), display_mapscroll(), do_network(), draw_map(), draw_splash(), expose_event(), free_pixmap(), init_cache_data(), init_client_vars(), init_windows(), load_defaults(), map_init(), parse_args(), read_config_window(), resize_map_window(), set_darkness(), and setup_config_window().
#define CONFIG_DOWNLOAD 1 |
Definition at line 152 of file client.h.
Referenced by init_client_vars(), init_windows(), negotiate_connection(), parse_args(), read_config_window(), and setup_config_window().
#define CONFIG_ECHO 2 |
Definition at line 153 of file client.h.
Referenced by get_root_display(), init_client_vars(), init_windows(), parse_args(), parse_key(), parse_key_release(), read_config_window(), and setup_config_window().
#define CONFIG_FASTTCP 3 |
Definition at line 154 of file client.h.
Referenced by applyconfig(), init_client_vars(), init_connection(), init_windows(), parse_args(), read_config_window(), and setup_config_window().
#define CONFIG_FOGWAR 6 |
Definition at line 157 of file client.h.
Referenced by display_mapcell(), init_client_vars(), init_windows(), parse_args(), read_config_window(), and setup_config_window().
#define CONFIG_FOODBEEP 21 |
Definition at line 172 of file client.h.
Referenced by command_foodbep(), draw_message_window(), draw_stats(), init_client_vars(), load_defaults(), read_config_window(), save_defaults(), and setup_config_window().
#define CONFIG_GRAD_COLOR 24 |
Definition at line 175 of file client.h.
Referenced by applyconfig(), draw_stat_bar(), init_client_vars(), read_config_window(), setup_config_window(), and update_stat().
#define CONFIG_ICONSCALE 7 |
Definition at line 158 of file client.h.
Referenced by create_and_rescale_image_from_data(), init_client_vars(), init_windows(), load_defaults(), parse_args(), read_config_window(), and setup_config_window().
#define CONFIG_LIGHTING 17 |
Definition at line 168 of file client.h.
Referenced by applyconfig(), configdialog(), init_client_vars(), load_defaults(), negotiate_connection(), read_config_window(), set_darkness(), and setup_config_window().
#define CONFIG_MAPHEIGHT 20 |
Definition at line 171 of file client.h.
Referenced by button_map_event(), configure_event(), create_windows(), display_map_doneupdate(), display_mapscroll(), get_game_display(), gtk_draw_map(), init_client_vars(), init_windows(), load_defaults(), main(), map_init(), negotiate_connection(), on_drawingarea_map_button_press_event(), on_drawingarea_map_configure_event(), parse_args(), parse_game_button_press(), read_config_window(), resize_map_window(), script_process_cmd(), setup_config_window(), and SetupCmd().
#define CONFIG_MAPSCALE 8 |
Definition at line 159 of file client.h.
Referenced by create_and_rescale_image_from_data(), init_client_vars(), init_windows(), load_defaults(), parse_args(), read_config_window(), and setup_config_window().
#define CONFIG_MAPSCROLL 29 /* Use bitmap operations for map scrolling */ |
Definition at line 180 of file client.h.
Referenced by init_client_vars(), init_windows(), and mapdata_scroll().
#define CONFIG_MAPWIDTH 19 |
Definition at line 170 of file client.h.
Referenced by button_map_event(), configure_event(), create_windows(), display_map_doneupdate(), display_mapscroll(), get_game_display(), gtk_draw_map(), init_client_vars(), init_windows(), load_defaults(), main(), map_init(), negotiate_connection(), on_drawingarea_map_button_press_event(), on_drawingarea_map_configure_event(), parse_args(), parse_game_button_press(), read_config_window(), resize_map_window(), script_process_cmd(), setup_config_window(), and SetupCmd().
#define CONFIG_NUMS 32 /* This should always be the last value in the list */ |
Definition at line 183 of file client.h.
Referenced by init_client_vars(), init_windows(), load_defaults(), parse_args(), and save_defaults().
#define CONFIG_POPUPS 9 |
Definition at line 160 of file client.h.
Referenced by book_callback(), draw_prompt(), init_client_vars(), init_windows(), keyfunc(), list_button_event(), load_defaults(), main(), motd_callback(), on_entry_commands_activate(), and sign_callback().
#define CONFIG_PORT 23 /* Not sure if useful at all anymore */ |
Definition at line 174 of file client.h.
Referenced by init_client_vars(), init_windows(), load_defaults(), main(), metaserver_connect_to(), metaserver_select(), on_metaserver_select_clicked(), parse_args(), and save_defaults().
#define CONFIG_RESISTS 25 |
Definition at line 176 of file client.h.
Referenced by applyconfig(), get_message_display(), init_client_vars(), init_windows(), load_defaults(), and parse_args().
#define CONFIG_SHOWGRID 16 |
Definition at line 167 of file client.h.
Referenced by init_client_vars().
#define CONFIG_SHOWICON 11 |
Definition at line 162 of file client.h.
Referenced by applyconfig(), init_client_vars(), init_windows(), load_defaults(), and parse_args().
#define CONFIG_SIGNPOPUP 30 |
Definition at line 181 of file client.h.
Referenced by init_client_vars(), and sign_callback().
#define CONFIG_SMOOTH 26 |
Definition at line 177 of file client.h.
Referenced by display_mapcell(), init_client_vars(), init_windows(), negotiate_connection(), parse_args(), read_config_window(), setup_config_window(), and SetupCmd().
#define CONFIG_SOUND 13 |
Definition at line 164 of file client.h.
Referenced by applyconfig(), init_client_vars(), init_sounds(), init_windows(), load_defaults(), main(), parse_args(), play_sound(), read_config_window(), save_defaults(), setup_config_window(), and SetupCmd().
#define CONFIG_SPLASH 27 |
Definition at line 178 of file client.h.
Referenced by get_root_display(), init_client_vars(), init_windows(), load_defaults(), and parse_args().
#define CONFIG_SPLITINFO 14 |
Definition at line 165 of file client.h.
Referenced by admin_callback(), book_callback(), draw_info(), get_info_display(), init_client_vars(), init_windows(), parse_args(), save_winpos(), set_window_pos(), and sign_callback().
#define CONFIG_SPLITWIN 15 |
Definition at line 166 of file client.h.
Referenced by applyconfig(), check_x_events(), create_windows(), get_game_display(), get_root_display(), init_client_vars(), init_windows(), load_defaults(), parse_args(), parse_key(), resize_map_window(), resize_win_root(), save_defaults(), save_winpos(), and set_window_pos().
#define CONFIG_TIMESTAMP 31 |
Definition at line 182 of file client.h.
Referenced by draw_info(), and init_client_vars().
#define CONFIG_TOOLTIPS 12 |
Definition at line 163 of file client.h.
Referenced by applyconfig(), create_windows(), and init_client_vars().
#define CONFIG_TRIMINFO 18 |
Definition at line 169 of file client.h.
Referenced by draw_info(), init_client_vars(), init_windows(), and parse_args().
#define LOG_APPEND | ( | _Entry | ) |
if (LogLast) {\ LogLast->next=_Entry;\ } else {\ LogFirst=_Entry;\ };\ LogLast=_Entry;_Entry->next=NULL;\ if (++logcount > MAX_LOGS)\ {\ LogEntry* old = LogFirst;\ LogFirst = LogFirst -> next;\ if (old->message) free (old->message);\ if (old->origin) free (old->origin);\ }
Definition at line 376 of file client.h.
Referenced by LOG().
#define LOG_NEW_ENTRY (LogEntry*)calloc(1,sizeof(LogEntry)) |
#define LOG_SETMESSAGE | ( | _Entry, | |
_msg | |||
) | free(_Entry->message);_Entry->message=strdup(_msg) |
#define LOG_SETORIGIN | ( | _Entry, | |
_orig | |||
) | free(_Entry->origin);_Entry->origin=strdup(_orig) |
#define MAP_MAX_SIZE 31 |
Definition at line 441 of file client.h.
Referenced by configdialog(), init_windows(), load_defaults(), on_drawingarea_map_configure_event(), and parse_args().
#define MAX_FACE_SETS 20 |
Definition at line 315 of file client.h.
Referenced by configdialog(), display_newpng(), get_image_info(), init_client_vars(), init_common_cache_data(), load_image(), reset_client_vars(), and setup_config_window().
#define MAX_IMAGE_SIZE 320 |
Maximum size of image in each direction.
This is needed for the x11 client, which wants to initalize some data once. Increasing this would likely only need a bigger footprint
Definition at line 316 of file client.h.
Referenced by init_pngx_loader().
#define MAX_MAP_OFFSET 8 |
#define MAX_SKILL CS_NUM_SKILLS |
Definition at line 61 of file client.h.
Referenced by draw_stats(), get_stats_display(), init_client_vars(), reset_client_vars(), reset_player_data(), script_process_cmd(), and update_stat_mapping().
#define MAXANIM 2000 |
Definition at line 63 of file client.h.
Referenced by AnimCmd(), and mapdata_animation().
#define MAXPIXMAPNUM 10000 |
Definition at line 464 of file client.h.
Referenced by create_and_rescale_image_from_data(), gen_draw_face(), get_map_image_size(), init_cache_data(), init_common_cache_data(), reset_image_cache_data(), and reset_image_data().
#define MIN | ( | X__, | |
Y__ | |||
) | ( (X__)<(Y__)?(X__):(Y__) ) |
Definition at line 514 of file client.h.
Referenced by draw_info(), and metaserver_select().
#define MIN_ALLOCATED_MAP_SIZE MAP_MAX_SIZE * 2 |
#define NUM_RESISTS 18 |
Definition at line 426 of file client.h.
Referenced by draw_message_window(), draw_stats(), resize_resistance_table(), and update_stat_mapping().
#define RI_IMAGE_INFO 0x1 |
Definition at line 493 of file client.h.
Referenced by get_image_info(), and negotiate_connection().
#define RI_IMAGE_SUMS 0x2 |
Definition at line 494 of file client.h.
Referenced by negotiate_connection().
#define SC_FIRERUN 1 |
Definition at line 68 of file client.h.
Referenced by clear_fire(), clear_fire_run(), clear_run(), and stop_run().
#define SC_NORMAL 0 |
Definition at line 67 of file client.h.
Referenced by fire_dir(), move_player(), and run_dir().
#define STRINGCOMMAND 0 |
#define VERSION_CS 1023 |
Definition at line 46 of file client.h.
Referenced by check_server_version(), SendVersion(), and VersionCmd().
#define VERSION_SC 1029 |
Definition at line 47 of file client.h.
Referenced by check_server_version(), SendVersion(), and VersionCmd().
typedef struct Animations Animations |
typedef struct Cache_Entry Cache_Entry |
typedef struct ChildProcess ChildProcess |
typedef struct Player_Struct Client_Player |
typedef struct ClientSocket ClientSocket |
typedef struct Face_Information_struct Face_Information |
typedef struct FaceSets_struct FaceSets |
typedef enum Input_State Input_State |
typedef void(* LogListener)(LogEntry *) |
typedef struct Msg_Type_Names Msg_Type_Names |
typedef struct PlayerPosition PlayerPosition |
typedef struct Spell_struct Spell |
typedef struct Stat_struct Stats |
enum Input_State |
enum LogLevel |
enum rangetype |
Definition at line 419 of file commands.c.
Referenced by animate_inventory(), animate_look(), animate_objects(), animate_one_item(), draw_inv_table(), mapdata_animation(), and mapdata_set_anim_layer().
char * client_libdir |
Definition at line 61 of file client.c.
Referenced by init_client_vars(), init_keys(), and keys_init().
int command_inscribe |
Definition at line 75 of file client.c.
Referenced by inscribe_magical_scroll(), menu_spells(), and SetupCmd().
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().
Definition at line 77 of file client.c.
Referenced by AddspellCmd(), animate_objects(), bind_key(), buttonpress_in_list(), cancelConnection(), check_x_events(), close_container(), close_container_callback(), command_take(), configure_keys(), confirmUserPass(), count_callback(), delete_ch(), DeleteSpell(), dialog_callback(), display_map_doneupdate(), do_inv(), do_key_press(), do_magicmap(), do_timeout(), draw_info(), draw_inv(), draw_inv_list(), draw_inv_table(), draw_lists(), draw_look_list(), draw_magic_map(), draw_map(), draw_message_window(), draw_prompt(), draw_stats(), enter_callback(), extended_command(), fire_dir(), get_inv_display(), get_inv_widget(), get_item_env(), get_look_display(), get_look_widget(), get_metaserver(), gtk_command_history(), handle_query(), init_client_vars(), init_keys(), item_actions(), keyfunc(), keys_init(), list_button_event(), list_item_action(), load_theme(), locate_item(), magic_map_flash_pos(), MagicMapCmd(), main(), metaserver_connect_to(), new_player(), on_entry_commands_activate(), on_metaserver_select_clicked(), on_notebook_switch_page(), parse_key(), parse_key_release(), remove_item(), reset_client_vars(), reset_image_data(), reset_player_data(), save_keys(), script_process_cmd(), send_command(), send_reply(), sendPassword(), sendstr(), setUserPass(), spellinventory_redraw(), StatsCmd(), stop_fire(), update_spell_information(), update_spell_list(), UpdspellCmd(), write_ch(), and x_set_echo().
Definition at line 78 of file client.c.
Referenced by applyconfig(), client_send_apply(), client_send_examine(), client_send_move(), command_take(), CompleteCmd(), disconnect(), do_disconnect(), do_network(), draw_stats(), event_loop(), get_image_info(), init_client_vars(), inscribe_magical_scroll(), keyfunc(), look_at(), main(), metaserver_connect_to(), metaserver_select(), on_disconnect_activate(), on_drawingarea_map_configure_event(), on_metaserver_select_clicked(), read_config_window(), requestface(), reset_client_vars(), script_process_cmd(), send_command(), send_mark_obj(), send_reply(), set_item_values(), SetupCmd(), setUserPass(), toggle_locked(), and VersionCmd().
uint64* exp_table |
Definition at line 73 of file client.c.
Referenced by draw_message_window(), get_exp_info(), and init_client_vars().
Definition at line 72 of file client.c.
Referenced by draw_message_window(), get_exp_info(), and init_client_vars().
Definition at line 167 of file image.c.
Referenced by applyconfig(), configdialog(), init_client_vars(), init_windows(), load_defaults(), load_image(), negotiate_connection(), parse_args(), read_config_window(), reset_client_vars(), save_defaults(), setup_config_window(), and SetupCmd().
Definition at line 495 of file commands.c.
Referenced by getTextManager(), setTextManager(), and SetupCmd().
char * image_file |
int last_used_skills[MAX_SKILL+1] |
Definition at line 65 of file client.c.
Referenced by draw_stats(), init_client_vars(), and use_skill().
Definition at line 133 of file misc.c.
Referenced by createBugTracker().
int meta_port |
Definition at line 67 of file client.c.
Referenced by do_metaserver(), main(), and metaserver1_thread().
char* meta_server |
Definition at line 61 of file client.c.
Referenced by do_metaserver(), main(), metaserver1_thread(), and metaserver_select().
int metaserver2_on |
Definition at line 69 of file client.c.
Referenced by metaserver2_get_info().
int metaserver_on |
Definition at line 69 of file client.c.
Referenced by metaserver1_get_info(), and metaserver_get_info().
Definition at line 69 of file map.c.
Referenced by display_map_doneupdate(), display_mapcell(), expand_clear_bigface(), expand_set_bigface(), ExtSmooth(), mapdata_animation(), mapdata_bigface(), mapdata_clear_old(), mapdata_clear_space(), mapdata_face(), mapdata_init(), mapdata_scroll(), mapdata_set_anim_layer(), mapdata_set_check_space(), mapdata_set_darkness(), mapdata_set_face_layer(), mapdata_set_size(), mapdata_set_smooth(), recenter_virtual_map_view(), and script_process_cmd().
Definition at line 68 of file client.c.
Referenced by get_image_sums(), and negotiate_connection().
int replyinfo_status |
Definition at line 68 of file client.c.
Referenced by get_image_info(), and negotiate_connection().
int requestinfo_sent |
Definition at line 68 of file client.c.
Referenced by negotiate_connection().
const char* const resists_name[NUM_RESISTS] |
Definition at line 80 of file client.c.
Referenced by draw_message_window(), and update_stat_mapping().
char* server |
Definition at line 56 of file client.c.
Referenced by get_metaserver(), init_windows(), load_defaults(), main(), metaserver_save_cache(), metaserver_select(), metaserver_show(), parse_args(), and save_defaults().
char* skill_names[MAX_SKILL] |
Definition at line 63 of file client.c.
Referenced by AddspellCmd(), draw_stats(), get_skill_info(), init_client_vars(), reset_client_vars(), script_process_cmd(), and update_stat_mapping().
char * sound_server |
Definition at line 62 of file client.c.
Referenced by init_sounds(), init_windows(), load_defaults(), parse_args(), and save_defaults().
Definition at line 70 of file client.c.
Referenced by animate_inventory(), animate_look(), do_timeout(), and TickCmd().
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().
char VERSION_INFO[256] |
Definition at line 59 of file client.c.
Referenced by aboutdialog(), bugdialog(), error_dialog(), init_windows(), menu_about(), parse_args(), and SendVersion().
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().
int want_skill_exp |
Definition at line 67 of file client.c.
Referenced by init_windows(), negotiate_connection(), and parse_args().