#include "hack.h"
#include "tcap.h"
#include <ctype.h>
Data Structures | |
struct | Bool_Opt |
struct | Comp_Opt |
struct | menu_cmd_t |
Defines | |
#define | WINTYPELEN 16 |
#define | PREFER_TILED FALSE |
#define | NUM_MENU_CMDS 11 |
#define | MAX_MENU_MAPPED_CMDS 32 |
#define | OPTIONS_HEADING "NETHACKOPTIONS" |
#define | rolestring(val, array, field) |
#define | CONFIG_SLOT 3 |
Functions | |
STATIC_DCL void | FDECL (doset_add_menu,(winid, const char *, int)) |
STATIC_DCL void | FDECL (nmcpy,(char *, const char *, int)) |
STATIC_DCL void | FDECL (escapes,(const char *, char *)) |
STATIC_DCL void | FDECL (rejectoption,(const char *)) |
STATIC_DCL void | FDECL (badoption,(const char *)) |
STATIC_DCL char * | FDECL (string_for_opt,(char *, BOOLEAN_P)) |
STATIC_DCL char * | FDECL (string_for_env_opt,(const char *, char *, BOOLEAN_P)) |
STATIC_DCL void | FDECL (bad_negation,(const char *, BOOLEAN_P)) |
STATIC_DCL int | FDECL (change_inv_order,(char *)) |
STATIC_DCL void | FDECL (oc_to_str,(char *, char *)) |
STATIC_DCL void | FDECL (graphics_opts,(char *, const char *, int, int)) |
STATIC_DCL int | FDECL (feature_alert_opts,(char *, const char *)) |
STATIC_DCL const char * | FDECL (get_compopt_value,(const char *, char *)) |
STATIC_DCL boolean | FDECL (special_handling,(const char *, BOOLEAN_P, BOOLEAN_P)) |
STATIC_DCL void | FDECL (warning_opts,(char *, const char *)) |
STATIC_DCL void | FDECL (duplicate_opt_detection,(const char *, int)) |
STATIC_OVL void | FDECL (wc_set_font_name,(int, char *)) |
STATIC_OVL int | FDECL (wc_set_window_colors,(char *)) |
STATIC_OVL boolean | FDECL (is_wc_option,(const char *)) |
STATIC_OVL boolean | FDECL (wc_supported,(const char *)) |
STATIC_OVL boolean | FDECL (is_wc2_option,(const char *)) |
STATIC_OVL boolean | FDECL (wc2_supported,(const char *)) |
boolean | match_optname (char *user_string, char *opt_name, int min_length, boolean val_allowed) const |
char * | nh_getenv (char *ev) const |
void | initoptions () |
STATIC_OVL void | nmcpy (char *dest, const char *src, int maxlen) |
STATIC_OVL void | escapes (char *cp, char *tp) const |
STATIC_OVL void | rejectoption (char *optname) const |
STATIC_OVL void | badoption (char *opts) const |
STATIC_OVL char * | string_for_opt (char *opts, boolean val_optional) |
STATIC_OVL char * | string_for_env_opt (char *optname, char *opts, boolean val_optional) const |
STATIC_OVL void | bad_negation (char *optname, boolean with_parameter) const |
STATIC_OVL int | change_inv_order (char *op) |
STATIC_OVL void | graphics_opts (char *opts, const char *optype, int maxlen, int offset) |
STATIC_OVL void | warning_opts (char *opts, const char *optype) |
void | assign_warnings (uchar *graph_chars) |
STATIC_OVL int | feature_alert_opts (char *op, const char *optn) |
void | set_duplicate_opt_detection (int on_or_off) |
STATIC_OVL void | duplicate_opt_detection (char *opts, int bool_or_comp) const |
boolean | parse_monster_color (char *str) |
void | common_prefix_options_parser (char *fullname, char *opts, boolean negated) const |
void | parseoptions (char *opts, boolean tinitial, boolean tfrom_file) |
STATIC_OVL void | oc_to_str (char *src, char *dest) |
void | add_menu_cmd_alias (char from_ch, char to_ch) |
char | map_menu_cmd (char ch) |
STATIC_OVL void | doset_add_menu (winid win, const char *option, int indexoffset) |
int | doset () |
STATIC_OVL boolean | special_handling (char *optname, boolean setinitial, boolean setfromfile) const |
STATIC_OVL const char * | get_compopt_value (char *optname, char *buf) const |
int | dotogglepickup () |
void | option_help () |
void | next_opt (winid datawin, const char *str) |
int | fruitadd (char *str) |
int | choose_classes_menu (char *prompt, int category, boolean way, char *class_list, char *class_select) const |
void | set_option_mod_status (char *optnam, int status) const |
void | set_wc_option_mod_status (unsigned long optmask, int status) |
STATIC_OVL boolean | is_wc_option (char *optnam) const |
STATIC_OVL boolean | wc_supported (char *optnam) const |
void | set_wc2_option_mod_status (unsigned long optmask, int status) |
STATIC_OVL boolean | is_wc2_option (char *optnam) const |
STATIC_OVL boolean | wc2_supported (char *optnam) const |
STATIC_OVL void | wc_set_font_name (int wtype, char *fontname) |
STATIC_OVL int | wc_set_window_colors (char *op) |
Variables | |
static struct Bool_Opt | boolopt [] |
static struct Comp_Opt | compopt [] |
static boolean | need_redraw |
static char | def_inv_order [MAXOCLASSES] |
static const menu_cmd_t | default_menu_cmd_info [NUM_MENU_CMDS] |
char | mapped_menu_cmds [MAX_MENU_MAPPED_CMDS+1] |
static char | mapped_menu_op [MAX_MENU_MAPPED_CMDS+1] |
static short | n_menu_mapped = 0 |
static boolean | initial |
static boolean | from_file |
struct { | |
const char * name | |
const int color | |
} | colornames [] |
static NEARDATA const char * | menutype [] |
static NEARDATA const char * | burdentype [] |
static NEARDATA const char * | runmodes [] |
static char | fmtstr_doset_add_menu [] = "%s%-15s [%s] " |
static char | fmtstr_doset_add_menu_tab [] = "%s\t[%s]" |
static const char * | opt_intro [] |
static const char * | opt_epilog [] |
struct wc_Opt | wc_options [] |
struct wc_Opt | wc2_options [] |
#define CONFIG_SLOT 3 |
Referenced by option_help().
#define MAX_MENU_MAPPED_CMDS 32 |
Referenced by add_menu_cmd_alias().
#define NUM_MENU_CMDS 11 |
Referenced by parseoptions().
#define OPTIONS_HEADING "NETHACKOPTIONS" |
#define PREFER_TILED FALSE |
#define rolestring | ( | val, | |
array, | |||
field | |||
) |
((val >= 0) ? array[val].field : \ (val == ROLE_RANDOM) ? randomrole : none)
Referenced by get_compopt_value().
#define WINTYPELEN 16 |
Referenced by parseoptions().
void add_menu_cmd_alias | ( | char | from_ch, |
char | to_ch | ||
) |
References MAX_MENU_MAPPED_CMDS, n_menu_mapped, and pline().
Referenced by parseoptions().
void assign_warnings | ( | uchar * | graph_chars ) |
References WARNCOUNT, and warnsyms.
Referenced by parse_config_line(), and warning_opts().
STATIC_OVL void bad_negation | ( | char * | optname, |
boolean | with_parameter | ||
) | const |
Referenced by common_prefix_options_parser(), and parseoptions().
STATIC_OVL void badoption | ( | char * | opts ) | const |
References configfile, option_help(), pline(), and wait_synch.
Referenced by common_prefix_options_parser(), feature_alert_opts(), parseoptions(), and string_for_opt().
STATIC_OVL int change_inv_order | ( | char * | op ) |
References BUFSZ, COIN_CLASS, def_char_to_objclass(), flags, GOLD_SYM, ILLOBJ_CLASS, index, flag::inv_order, MAXOCLASSES, RANDOM_CLASS, and Strcpy.
Referenced by parseoptions().
int choose_classes_menu | ( | char * | prompt, |
int | category, | ||
boolean | way, | ||
char * | class_list, | ||
char * | class_select | ||
) | const |
References any::a_int, any::a_void, add_menu, ATR_NONE, BUFSZ, create_nhwindow, def_char_to_monclass(), def_char_to_objclass(), destroy_nhwindow, end_menu, eos(), FALSE, index, mi::item, monexplain, NHW_MENU, NO_GLYPH, objexplain, PICK_ANY, PICK_ONE, select_menu, Sprintf, start_menu, and TRUE.
Referenced by parseoptions().
void common_prefix_options_parser | ( | char * | fullname, |
char * | opts, | ||
boolean | negated | ||
) | const |
References Bool_Opt::addr, bad_negation(), badoption(), boolopt, FALSE, Bool_Opt::name, strcmpi, string_for_opt(), and TRUE.
Referenced by parseoptions().
int doset | ( | ) |
References any::a_int, any::a_void, add_menu, ATR_NONE, boolopt, BUFSZ, compopt, create_nhwindow, instance_flags::dark_room, destroy_nhwindow, DISP_IN_GAME, doredraw(), doset_add_menu(), end_menu, FALSE, flag::female, flags, getlin, iflags, is_wc2_option(), is_wc_option(), mi::item, instance_flags::menu_headings, instance_flags::menu_tab_sep, MENU_UNSELECTED, Comp_Opt::name, Bool_Opt::name, NHW_MENU, NO_GLYPH, parseoptions(), PICK_ANY, preference_update, PREFIX_COUNT, S_darkroom, S_room, S_stone, select_menu, SET_IN_GAME, instance_flags::showdmg, showsyms, special_handling(), Sprintf, start_menu, wc2_supported(), wc_supported(), and wizard.
STATIC_OVL void doset_add_menu | ( | winid | win, |
const char * | option, | ||
int | indexoffset | ||
) |
References any::a_int, any::a_void, add_menu, ATR_NONE, BUFSZ, compopt, get_compopt_value(), iflags, instance_flags::menu_tab_sep, MENU_UNSELECTED, Comp_Opt::name, NO_GLYPH, and Sprintf.
Referenced by doset().
int dotogglepickup | ( | ) |
References AUTOPICKUP_EXCEPTIONS, BUFSZ, flags, iflags, MAXOCLASSES, oc_to_str(), flag::pickup, flag::pickup_types, pline(), Sprintf, and Strcpy.
STATIC_OVL void duplicate_opt_detection | ( | char * | opts, |
int | bool_or_comp | ||
) | const |
References boolopt, compopt, FALSE, iflags, match_optname(), Comp_Opt::name, Bool_Opt::name, instance_flags::opt_booldup, instance_flags::opt_compdup, TRUE, and wait_synch.
Referenced by parseoptions().
STATIC_OVL void escapes | ( | char * | cp, |
char * | tp | ||
) | const |
References index.
Referenced by graphics_opts(), parseoptions(), and warning_opts().
STATIC_DCL void FDECL | ( | nmcpy | , |
(char *, const char *, int) | |||
) |
STATIC_DCL void FDECL | ( | rejectoption | , |
(const char *) | |||
) |
STATIC_DCL void FDECL | ( | duplicate_opt_detection | , |
(const char *, int) | |||
) |
STATIC_DCL void FDECL | ( | bad_negation | , |
(const char *, BOOLEAN_P) | |||
) |
STATIC_OVL void FDECL | ( | wc_set_font_name | , |
(int, char *) | |||
) |
STATIC_DCL int FDECL | ( | change_inv_order | , |
(char *) | |||
) |
STATIC_OVL int FDECL | ( | wc_set_window_colors | , |
(char *) | |||
) |
STATIC_OVL boolean FDECL | ( | is_wc_option | , |
(const char *) | |||
) |
STATIC_DCL void FDECL | ( | badoption | , |
(const char *) | |||
) |
STATIC_DCL void FDECL | ( | oc_to_str | , |
(char *, char *) | |||
) |
STATIC_OVL boolean FDECL | ( | wc_supported | , |
(const char *) | |||
) |
STATIC_OVL boolean FDECL | ( | is_wc2_option | , |
(const char *) | |||
) |
STATIC_DCL void FDECL | ( | graphics_opts | , |
(char *, const char *, int, int) | |||
) |
STATIC_OVL boolean FDECL | ( | wc2_supported | , |
(const char *) | |||
) |
STATIC_DCL void FDECL | ( | escapes | , |
(const char *, char *) | |||
) |
STATIC_DCL int FDECL | ( | feature_alert_opts | , |
(char *, const char *) | |||
) |
STATIC_DCL char* FDECL | ( | string_for_opt | , |
(char *, BOOLEAN_P) | |||
) |
STATIC_DCL const char* FDECL | ( | get_compopt_value | , |
(const char *, char *) | |||
) |
STATIC_DCL void FDECL | ( | doset_add_menu | , |
(winid, const char *, int) | |||
) |
STATIC_DCL char* FDECL | ( | string_for_env_opt | , |
(const char *, char *, BOOLEAN_P) | |||
) |
STATIC_DCL boolean FDECL | ( | special_handling | , |
(const char *, BOOLEAN_P, BOOLEAN_P) | |||
) |
STATIC_DCL void FDECL | ( | warning_opts | , |
(char *, const char *) | |||
) |
STATIC_OVL int feature_alert_opts | ( | char * | op, |
const char * | optn | ||
) |
References badoption(), BUFSZ, FALSE, FEATURE_NOTICE_VER_MAJ, FEATURE_NOTICE_VER_MIN, FEATURE_NOTICE_VER_PATCH, flags, get_current_feature_ver(), get_feature_notice_ver(), pline(), Sprintf, flag::suppress_alert, and TRUE.
Referenced by parseoptions().
int fruitadd | ( | char * | str ) |
References bases, current_fruit, eos(), FALSE, ffruit, fruit::fid, fruit::fname, FOOD_CLASS, LOW_PM, name_to_mon(), newfruit, fruit::nextf, nmcpy(), OBJ_NAME, objects, objclass::oc_class, pl_fruit, PL_FSIZ, rnd(), Strcpy, and TRUE.
Referenced by ghostfruit(), initoptions(), and parseoptions().
STATIC_OVL const char* get_compopt_value | ( | char * | optname, |
char * | buf | ||
) | const |
References ALIGN_BOTTOM, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_TOP, aligns, flag::ascet, flag::atheist, ATR_BOLD, ATR_INVERSE, ATR_ULINE, flag::blindfolded, BOULDER, instance_flags::bouldersym, catname, CLR_BLACK, CLR_BLUE, CLR_BRIGHT_BLUE, CLR_BRIGHT_CYAN, CLR_BRIGHT_GREEN, CLR_BRIGHT_MAGENTA, CLR_BROWN, CLR_CYAN, CLR_GRAY, CLR_GREEN, CLR_MAGENTA, CLR_ORANGE, CLR_RED, CLR_WHITE, CLR_YELLOW, disclosure_options, dogname, flag::end_around, flag::end_disclose, flag::end_own, flag::end_top, FEATURE_NOTICE_VER_MAJ, FEATURE_NOTICE_VER_MIN, FEATURE_NOTICE_VER_PATCH, flags, fqn_prefix, genders, horsename, iflags, flag::illiterate, flag::initalign, flag::initgend, flag::initrace, flag::initrole, flag::inv_order, MAP_MODE_ASCII10x18, MAP_MODE_ASCII12x16, MAP_MODE_ASCII16x12, MAP_MODE_ASCII16x8, MAP_MODE_ASCII4x6, MAP_MODE_ASCII6x8, MAP_MODE_ASCII7x12, MAP_MODE_ASCII8x12, MAP_MODE_ASCII8x8, MAP_MODE_ASCII_FIT_TO_SCREEN, MAP_MODE_TILES, MAXOCLASSES, instance_flags::menu_headings, flag::menu_style, instance_flags::msg_history, window_procs::name, flag::nudist, NUM_DISCLOSURE_OPTIONS, instance_flags::num_pad, instance_flags::num_pad_mode, objects, objclass::oc_class, oc_syms, oc_to_str(), flag::pacifist, instance_flags::paranoid_hit, instance_flags::paranoid_quit, instance_flags::paranoid_remove, instance_flags::paranoid_trap, flag::pickup_burden, flag::pickup_types, instance_flags::pilesize, pl_fruit, plname, preferred_pet, PREFIX_COUNT, races, roles, rolestring, instance_flags::runmode, Sprintf, Strcat, Strcpy, flag::suppress_alert, flag::vegan, flag::vegetarian, instance_flags::wc2_term_cols, instance_flags::wc2_term_rows, instance_flags::wc2_windowborders, instance_flags::wc_align_message, instance_flags::wc_align_status, instance_flags::wc_backgrnd_menu, instance_flags::wc_backgrnd_message, instance_flags::wc_backgrnd_status, instance_flags::wc_backgrnd_text, instance_flags::wc_font_map, instance_flags::wc_font_menu, instance_flags::wc_font_message, instance_flags::wc_font_status, instance_flags::wc_font_text, instance_flags::wc_fontsiz_map, instance_flags::wc_fontsiz_menu, instance_flags::wc_fontsiz_message, instance_flags::wc_fontsiz_status, instance_flags::wc_fontsiz_text, instance_flags::wc_foregrnd_menu, instance_flags::wc_foregrnd_message, instance_flags::wc_foregrnd_status, instance_flags::wc_foregrnd_text, instance_flags::wc_map_mode, instance_flags::wc_player_selection, instance_flags::wc_scroll_amount, instance_flags::wc_scroll_margin, instance_flags::wc_tile_file, instance_flags::wc_tile_height, instance_flags::wc_tile_width, instance_flags::wc_vary_msgcount, and windowprocs.
Referenced by doset_add_menu().
STATIC_OVL void graphics_opts | ( | char * | opts, |
const char * | optype, | ||
int | maxlen, | ||
int | offset | ||
) |
References assign_graphics(), escapes(), FALSE, MAXPCHARS, and string_for_env_opt().
Referenced by parseoptions().
void initoptions | ( | ) |
References Bool_Opt::addr, AE, AS, ASCII_GRAPHICS, ATR_INVERSE, boolopt, instance_flags::bouldersym, BUFSZ, instance_flags::dark_room, DEC_GRAPHICS, def_monsyms, def_oc_syms, def_warnsyms, DISCLOSE_PROMPT_DEFAULT_NO, flag::end_around, flag::end_disclose, flag::end_own, flag::end_top, FALSE, flags, fruitadd(), getenv, IBM_GRAPHICS, iflags, index, flag::initalign, flag::initgend, flag::initrace, flag::initrole, flag::inv_order, MAC_GRAPHICS, MAXMCLASSES, MAXOCLASSES, MENU_FULL, instance_flags::menu_headings, flag::menu_style, monsyms, instance_flags::msg_history, Bool_Opt::name, nh_getenv(), nmcpy(), NUM_DISCLOSURE_OPTIONS, obj_descr, OBJ_NAME, objects, objdescr::oc_name, objclass::oc_name_idx, oc_syms, instance_flags::opt_booldup, instance_flags::opt_compdup, parseoptions(), flag::pickup_burden, flag::pickup_types, instance_flags::pilesize, pl_fruit, PL_FSIZ, read_config_file(), RUN_LEAP, instance_flags::runmode, S_darkroom, S_room, S_stone, setrandom(), showsyms, SLIME_MOLD, SLT_ENCUMBER, strncmpi(), switch_graphics(), instance_flags::travelcc, TRUE, WARNCOUNT, flag::warnlevel, warnsyms, flag::warntype, nhcoord::x, and nhcoord::y.
STATIC_OVL boolean is_wc2_option | ( | char * | optnam ) | const |
References FALSE, TRUE, and wc_Opt::wc_name.
Referenced by doset().
STATIC_OVL boolean is_wc_option | ( | char * | optnam ) | const |
References FALSE, TRUE, and wc_Opt::wc_name.
Referenced by doset().
char map_menu_cmd | ( | char | ch ) |
References index, and mapped_menu_cmds.
boolean match_optname | ( | char * | user_string, |
char * | opt_name, | ||
int | min_length, | ||
boolean | val_allowed | ||
) | const |
References index, and strncmpi().
Referenced by duplicate_opt_detection(), and parseoptions().
void next_opt | ( | winid | datawin, |
const char * | str | ||
) |
char* nh_getenv | ( | char * | ev ) | const |
Referenced by fopen_config_file(), initoptions(), makelevel(), and mkshop().
STATIC_OVL void nmcpy | ( | char * | dest, |
const char * | src, | ||
int | maxlen | ||
) |
Referenced by fruitadd(), initoptions(), and parseoptions().
STATIC_OVL void oc_to_str | ( | char * | src, |
char * | dest | ||
) |
References def_oc_syms, and MAXOCLASSES.
Referenced by dotogglepickup(), get_compopt_value(), and parseoptions().
void option_help | ( | ) |
References boolopt, BUFSZ, compopt, CONFIG_SLOT, configfile, create_nhwindow, destroy_nhwindow, display_nhwindow, FALSE, iflags, instance_flags::menu_tab_sep, Comp_Opt::name, Bool_Opt::name, next_opt(), NHW_TEXT, putstr, Sprintf, and wizard.
Referenced by badoption(), and dohelp().
boolean parse_monster_color | ( | char * | str ) |
References BUFSZ, colornames, FALSE, mons, name_to_mon(), NO_COLOR, SIZE, strstri(), and TRUE.
Referenced by parse_config_line().
References add_menu_cmd_alias(), Bool_Opt::addr, ALIGN_BOTTOM, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_TOP, ASCII_GRAPHICS, ASCIIGRAPH, ATR_BOLD, ATR_INVERSE, ATR_ULINE, bad_negation(), badoption(), boolopt, flag::botl, instance_flags::bouldersym, BUFSZ, catname, change_inv_order(), choose_classes_menu(), choose_windows(), CLR_MAX, common_prefix_options_parser(), CURS_GRAPHICS, curses_read_attrs(), instance_flags::dark_room, DEC_GRAPHICS, instance_flags::DECgraphics, def_char_to_monclass(), def_char_to_objclass(), def_oc_syms, digit(), DISCLOSE_NO_WITHOUT_PROMPT, DISCLOSE_PROMPT_DEFAULT_NO, DISCLOSE_PROMPT_DEFAULT_YES, DISCLOSE_YES_WITHOUT_PROMPT, disclosure_options, dogname, duplicate_opt_detection(), flag::end_around, flag::end_disclose, flag::end_own, flag::end_top, eos(), escapes(), EXP_ON_BOTL, EXT_ENCUMBER, FALSE, feature_alert_opts(), flag::female, ffruit, flags, fruit::fname, fruitadd(), getlin, goodfruit(), graphics_opts(), horsename, HVY_ENCUMBER, IBM_GRAPHICS, instance_flags::IBMgraphics, iflags, index, flag::initalign, flag::initgend, flag::initrace, flag::initrole, flag::inv_order, flag::invlet_constant, Is_rogue_level, letter(), flag::lit_corridor, lowc(), MAC, MAC_GRAPHICS, MAP_MODE_ASCII10x18, MAP_MODE_ASCII12x16, MAP_MODE_ASCII16x12, MAP_MODE_ASCII16x8, MAP_MODE_ASCII4x6, MAP_MODE_ASCII6x8, MAP_MODE_ASCII7x12, MAP_MODE_ASCII8x12, MAP_MODE_ASCII8x8, MAP_MODE_ASCII_FIT_TO_SCREEN, MAP_MODE_TILES, match_optname(), MAXDCHARS, MAXECHARS, MAXMCLASSES, MAXOCLASSES, MAXPCHARS, MAXTCHARS, MENU_COMBINATION, MENU_FULL, instance_flags::menu_headings, MENU_PARTIAL, flag::menu_style, MENU_TRADITIONAL, MOD_ENCUMBER, monsyms, instance_flags::msg_history, mungspaces(), Bool_Opt::name, menu_cmd_t::name, fruit::nextf, NHW_MAP, NHW_MENU, NHW_MESSAGE, NHW_STATUS, NHW_TEXT, nmcpy(), NUM_DISCLOSURE_OPTIONS, NUM_MENU_CMDS, instance_flags::num_pad, instance_flags::num_pad_mode, number_pad, oc_syms, oc_to_str(), OVERLOADED, flag::pickup, flag::pickup_burden, flag::pickup_types, instance_flags::pilesize, pl_character, pl_fruit, PL_FSIZ, PL_NSIZ, PL_PSIZ, pl_race, pline(), plname, preferred_pet, QBUFSZ, reassign(), rejectoption(), ROLE_NONE, RUN_CRAWL, RUN_LEAP, RUN_STEP, RUN_TPORT, instance_flags::runmode, sdir, SET_IN_FILE, instance_flags::showrace, SLT_ENCUMBER, Sprintf, str2align(), str2gend(), str2race(), str2role(), strcmpi, Strcpy, string_for_env_opt(), string_for_opt(), strncmpi(), switch_graphics(), TERMLIB, flag::time, TRUE, u, UNENCUMBERED, you::uz, VIA_DIALOG, VIA_PROMPTS, vision_full_recalc, vision_recalc(), warning_opts(), instance_flags::wc2_guicolor, instance_flags::wc2_petattr, instance_flags::wc2_term_cols, instance_flags::wc2_term_rows, instance_flags::wc2_windowborders, instance_flags::wc_align_message, instance_flags::wc_align_status, instance_flags::wc_fontsiz_map, instance_flags::wc_fontsiz_menu, instance_flags::wc_fontsiz_message, instance_flags::wc_fontsiz_status, instance_flags::wc_fontsiz_text, instance_flags::wc_map_mode, instance_flags::wc_player_selection, instance_flags::wc_scroll_amount, instance_flags::wc_scroll_margin, wc_set_font_name(), wc_set_window_colors(), instance_flags::wc_tile_file, instance_flags::wc_tile_height, instance_flags::wc_tile_width, instance_flags::wc_vary_msgcount, and WINTYPELEN.
Referenced by doset(), initoptions(), parse_config_line(), and special_handling().
STATIC_OVL void rejectoption | ( | char * | optname ) | const |
References configfile, and pline().
Referenced by parseoptions(), and string_for_env_opt().
void set_duplicate_opt_detection | ( | int | on_or_off ) |
References boolopt, compopt, iflags, instance_flags::opt_booldup, instance_flags::opt_compdup, and SIZE.
Referenced by read_config_file().
void set_option_mod_status | ( | char * | optnam, |
int | status | ||
) | const |
References boolopt, compopt, Comp_Opt::name, Bool_Opt::name, Comp_Opt::optflags, Bool_Opt::optflags, SET_IN_GAME, and strncmpi().
Referenced by set_wc2_option_mod_status(), and set_wc_option_mod_status().
void set_wc2_option_mod_status | ( | unsigned long | optmask, |
int | status | ||
) |
References SET_IN_GAME, set_option_mod_status(), wc_Opt::wc_bit, and wc_Opt::wc_name.
void set_wc_option_mod_status | ( | unsigned long | optmask, |
int | status | ||
) |
References SET_IN_GAME, set_option_mod_status(), wc_Opt::wc_bit, and wc_Opt::wc_name.
STATIC_OVL boolean special_handling | ( | char * | optname, |
boolean | setinitial, | ||
boolean | setfromfile | ||
) | const |
References any::a_char, any::a_int, any::a_void, add_menu, ALIGN_BOTTOM, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_TOP, ATR_BOLD, ATR_INVERSE, ATR_NONE, ATR_ULINE, BUFSZ, create_nhwindow, destroy_nhwindow, DISCLOSE_NO_WITHOUT_PROMPT, DISCLOSE_PROMPT_DEFAULT_NO, DISCLOSE_PROMPT_DEFAULT_YES, DISCLOSE_YES_WITHOUT_PROMPT, disclosure_options, flag::end_disclose, end_menu, FALSE, flags, getlin, iflags, mi::item, instance_flags::menu_headings, MENU_SELECTED, flag::menu_style, MENU_UNSELECTED, NHW_MENU, NO_GLYPH, NUM_DISCLOSURE_OPTIONS, instance_flags::num_pad, instance_flags::num_pad_mode, instance_flags::paranoid_hit, instance_flags::paranoid_quit, instance_flags::paranoid_remove, instance_flags::paranoid_trap, parseoptions(), PICK_ANY, PICK_NONE, PICK_ONE, flag::pickup_burden, instance_flags::runmode, select_menu, SIZE, Sprintf, start_menu, Strcat, TRUE, instance_flags::wc_align_message, and instance_flags::wc_align_status.
Referenced by doset().
STATIC_OVL char* string_for_env_opt | ( | char * | optname, |
char * | opts, | ||
boolean | val_optional | ||
) | const |
References rejectoption(), and string_for_opt().
Referenced by graphics_opts(), parseoptions(), and warning_opts().
STATIC_OVL char* string_for_opt | ( | char * | opts, |
boolean | val_optional | ||
) |
References badoption(), and index.
Referenced by common_prefix_options_parser(), parseoptions(), and string_for_env_opt().
STATIC_OVL void warning_opts | ( | char * | opts, |
const char * | optype | ||
) |
References assign_warnings(), def_warnsyms, escapes(), FALSE, MAXPCHARS, string_for_env_opt(), and WARNCOUNT.
Referenced by parseoptions().
STATIC_OVL boolean wc2_supported | ( | char * | optnam ) | const |
References FALSE, TRUE, wc_Opt::wc_bit, wc_Opt::wc_name, window_procs::wincap2, and windowprocs.
Referenced by doset().
STATIC_OVL void wc_set_font_name | ( | int | wtype, |
char * | fontname | ||
) |
References iflags, NHW_MAP, NHW_MENU, NHW_MESSAGE, NHW_STATUS, NHW_TEXT, Strcpy, instance_flags::wc_font_map, instance_flags::wc_font_menu, instance_flags::wc_font_message, instance_flags::wc_font_status, and instance_flags::wc_font_text.
Referenced by parseoptions().
STATIC_OVL int wc_set_window_colors | ( | char * | op ) |
References BUFSZ, iflags, mungspaces(), strcmpi, Strcpy, strstri(), instance_flags::wc_backgrnd_menu, instance_flags::wc_backgrnd_message, instance_flags::wc_backgrnd_status, instance_flags::wc_backgrnd_text, instance_flags::wc_foregrnd_menu, instance_flags::wc_foregrnd_message, instance_flags::wc_foregrnd_status, and instance_flags::wc_foregrnd_text.
Referenced by parseoptions().
STATIC_OVL boolean wc_supported | ( | char * | optnam ) | const |
References FALSE, TRUE, wc_Opt::wc_bit, wc_Opt::wc_name, window_procs::wincap, and windowprocs.
Referenced by doset().
NEARDATA const char* burdentype[] [static] |
{ "unencumbered", "burdened", "stressed", "strained", "overtaxed", "overloaded" }
const int color |
Referenced by chwepon(), dump_object(), mapglyph(), and shuffle().
struct { ... } colornames[] [static] |
Referenced by parse_monster_color().
Referenced by doset(), doset_add_menu(), duplicate_opt_detection(), option_help(), set_duplicate_opt_detection(), and set_option_mod_status().
char def_inv_order[MAXOCLASSES] [static] |
const menu_cmd_t default_menu_cmd_info[NUM_MENU_CMDS] [static] |
{ { "menu_first_page", MENU_FIRST_PAGE }, { "menu_last_page", MENU_LAST_PAGE }, { "menu_next_page", MENU_NEXT_PAGE }, { "menu_previous_page", MENU_PREVIOUS_PAGE }, { "menu_select_all", MENU_SELECT_ALL }, { "menu_deselect_all", MENU_UNSELECT_ALL }, { "menu_invert_all", MENU_INVERT_ALL }, { "menu_select_page", MENU_SELECT_PAGE }, { "menu_deselect_page", MENU_UNSELECT_PAGE }, { "menu_invert_page", MENU_INVERT_PAGE }, { "menu_search", MENU_SEARCH }, }
char fmtstr_doset_add_menu[] = "%s%-15s [%s] " [static] |
char fmtstr_doset_add_menu_tab[] = "%s\t[%s]" [static] |
char mapped_menu_cmds[MAX_MENU_MAPPED_CMDS+1] |
Referenced by map_menu_cmd().
char mapped_menu_op[MAX_MENU_MAPPED_CMDS+1] [static] |
NEARDATA const char* menutype[] [static] |
{ "traditional", "combination", "partial", "full" }
short n_menu_mapped = 0 [static] |
Referenced by add_menu_cmd_alias().
const char* name |
boolean need_redraw [static] |
const char* opt_epilog[] [static] |
{ "", "Some of the options can be set only before the game is started; those", "items will not be selectable in the 'O' command's menu.", (char *)0 }
const char* opt_intro[] [static] |
{ "", " UnNetHack Options Help:", "", #define CONFIG_SLOT (char *)0, "or use `NETHACKOPTIONS=\"<options>\"' in your environment", "(<options> is a list of options separated by commas)", "or press \"O\" while playing and use the menu.", "", "Boolean options (which can be negated by prefixing them with '!' or \"no\"):", (char *)0 }
NEARDATA const char* runmodes[] [static] |
{ "teleport", "run", "walk", "crawl" }
struct wc_Opt wc2_options[] |
{ {"fullscreen", WC2_FULLSCREEN}, {"newcolors", WC2_NEWCOLORS}, {"softkeyboard", WC2_SOFTKEYBOARD}, {"wraptext", WC2_WRAPTEXT}, {"term_cols", WC2_TERM_COLS}, {"term_rows", WC2_TERM_ROWS}, {"windowborders", WC2_WINDOWBORDERS}, {"petattr", WC2_PETATTR}, {"guicolor", WC2_GUICOLOR}, {(char *)0, 0L} }
struct wc_Opt wc_options[] |