Merge branch 'NetHack-3.7' into twitch-interact
This commit is contained in:
105
include/extern.h
105
include/extern.h
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.7 extern.h $NHDT-Date: 1738638877 2025/02/03 19:14:37 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.1476 $ */
|
||||
/* NetHack 3.7 extern.h $NHDT-Date: 1770949988 2026/02/12 18:33:08 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.1523 $ */
|
||||
/* Copyright (c) Steve Creps, 1988. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -71,6 +71,10 @@
|
||||
#include "artifact.h"
|
||||
#endif
|
||||
|
||||
#ifndef MFNDPOS_H
|
||||
#include "mfndpos.h"
|
||||
#endif
|
||||
|
||||
/* ### alloc.c ### */
|
||||
|
||||
#if 0
|
||||
@@ -101,7 +105,6 @@ extern void stop_occupation(void);
|
||||
extern void init_sound_disp_gamewindows(void);
|
||||
extern void newgame(void);
|
||||
extern void welcome(boolean);
|
||||
extern int argcheck(int, char **, enum earlyarg);
|
||||
extern long timet_to_seconds(time_t);
|
||||
extern long timet_delta(time_t, time_t);
|
||||
|
||||
@@ -258,6 +261,7 @@ extern void free_ebones(struct monst *) NONNULLARG1;
|
||||
|
||||
/* ### botl.c ### */
|
||||
|
||||
extern char *get_strength_str(void);
|
||||
extern char *do_statusline1(void);
|
||||
extern void check_gold_symbol(void);
|
||||
extern char *do_statusline2(void);
|
||||
@@ -331,6 +335,15 @@ extern boolean parse_conf_file(FILE *fp, boolean (*proc)(char *arg));
|
||||
extern void set_configfile_name(const char *);
|
||||
extern char *get_configfile(void);
|
||||
extern const char *get_default_configfile(void);
|
||||
extern void rcfile(void);
|
||||
extern void rcfile_interface_options(void);
|
||||
extern void heed_all_config_statements(void);
|
||||
extern void disregard_all_config_statements(void);
|
||||
extern void heed_this_config_statement(int);
|
||||
extern void disregard_this_config_statement(int);
|
||||
extern boolean config_unmatched_ignored(void);
|
||||
extern void clear_ignore_errors_on_unmatched(void);
|
||||
extern void set_ignore_errors_on_unmatched(void);
|
||||
|
||||
/* ### coloratt.c ### */
|
||||
|
||||
@@ -365,6 +378,8 @@ extern void change_palette(void);
|
||||
|
||||
/* ### cmd.c ### */
|
||||
|
||||
extern void cmdbind_freeall(void);
|
||||
extern int dotoggleoption(void);
|
||||
extern void set_move_cmd(int, int);
|
||||
extern int do_move_west(void);
|
||||
extern int do_move_northwest(void);
|
||||
@@ -442,10 +457,10 @@ extern int doextlist(void);
|
||||
extern int extcmd_via_menu(void);
|
||||
extern int enter_explore_mode(void);
|
||||
extern boolean bind_mousebtn(int, const char *);
|
||||
extern boolean bind_key(uchar, const char *);
|
||||
extern boolean bind_key(uchar, const char *, boolean);
|
||||
extern void dokeylist(void);
|
||||
extern int xytod(coordxy, coordxy);
|
||||
extern void dtoxy(coord *, int);
|
||||
extern int xytodir(int, int);
|
||||
extern void dirtocoord(coord *, int);
|
||||
extern int movecmd(char, int);
|
||||
extern int dxdy_moveok(void);
|
||||
extern int getdir(const char *);
|
||||
@@ -746,6 +761,7 @@ extern void Ring_gone(struct obj *) NONNULLARG1;
|
||||
extern void Blindf_on(struct obj *) NONNULLARG1;
|
||||
extern void Blindf_off(struct obj *);
|
||||
extern int dotakeoff(void);
|
||||
extern int ia_dotakeoff(void);
|
||||
extern int doremring(void);
|
||||
extern int cursed(struct obj *);
|
||||
extern int armoroff(struct obj *);
|
||||
@@ -760,7 +776,8 @@ extern struct obj *unchanger(void);
|
||||
extern void reset_remarm(void);
|
||||
extern int doddoremarm(void);
|
||||
extern int remarm_swapwep(void);
|
||||
extern int destroy_arm(struct obj *);
|
||||
extern int disintegrate_arm(struct obj *);
|
||||
extern int destroy_arm(void);
|
||||
extern void adj_abon(struct obj *, schar) NONNULLARG1;
|
||||
extern boolean inaccessible_equipment(struct obj *, const char *, boolean);
|
||||
extern int any_worn_armor_ok(struct obj *);
|
||||
@@ -823,6 +840,7 @@ extern void hurtle(int, int, int, boolean);
|
||||
extern void mhurtle(struct monst *, int, int, int) NONNULLARG1;
|
||||
extern boolean harmless_missile(struct obj *) NONNULLARG1;
|
||||
extern boolean throwing_weapon(struct obj *) NONNULLARG1;
|
||||
extern boolean throwit_mon_hit(struct obj *, struct monst *) NONNULLARG1;
|
||||
extern void throwit(struct obj *, long, boolean, struct obj *) NONNULLARG1;
|
||||
extern int omon_adj(struct monst *, struct obj *, boolean) NONNULLPTRS;
|
||||
extern boolean should_mulch_missile(struct obj *);
|
||||
@@ -910,6 +928,14 @@ extern void overview_stats(winid, const char *, long *, long *) NONNULLPTRS;
|
||||
extern void remdun_mapseen(int);
|
||||
extern const char *endgamelevelname(char *, int);
|
||||
|
||||
/* ### earlyarg.c ### */
|
||||
|
||||
extern int argcheck(int, char **, enum earlyarg);
|
||||
extern void early_options(int *argc_p, char ***argv_p, char **hackdir_p);
|
||||
#ifdef WIN32
|
||||
int windows_early_options(const char *);
|
||||
#endif
|
||||
|
||||
/* ### eat.c ### */
|
||||
|
||||
extern void eatmupdate(void);
|
||||
@@ -1155,6 +1181,7 @@ extern void dump_glyphids(void);
|
||||
extern void clear_all_glyphmap_colors(void);
|
||||
extern void reset_customcolors(void);
|
||||
extern int glyph_to_cmap(int);
|
||||
extern void maybe_shuffle_customizations(void);
|
||||
|
||||
/* ### hack.c ### */
|
||||
|
||||
@@ -1233,6 +1260,10 @@ extern boolean pmatchi(const char *, const char *) NONNULLPTRS;
|
||||
extern boolean pmatchz(const char *, const char *) NONNULLPTRS;
|
||||
*/
|
||||
|
||||
/* ### iactions.c ### */
|
||||
|
||||
extern int itemactions(struct obj *otmp) NONNULLARG1;
|
||||
|
||||
/* ### insight.c ### */
|
||||
|
||||
extern int doattributes(void);
|
||||
@@ -1356,6 +1387,7 @@ extern void sync_perminvent(void);
|
||||
extern void perm_invent_toggled(boolean negated);
|
||||
extern void prepare_perminvent(winid window);
|
||||
extern struct obj *carrying_stoning_corpse(void);
|
||||
extern void repopulate_perminvent(void);
|
||||
|
||||
/* ### ioctl.c ### */
|
||||
|
||||
@@ -1531,7 +1563,7 @@ extern int monster_census(boolean);
|
||||
extern int msummon(struct monst *);
|
||||
extern void summon_minion(aligntyp, boolean);
|
||||
extern int demon_talk(struct monst *) NONNULLARG1;
|
||||
extern long bribe(struct monst *) NONNULLARG1;
|
||||
extern long bribe(struct monst *, const char *) NONNULLARG12;
|
||||
extern int dprince(aligntyp);
|
||||
extern int dlord(aligntyp);
|
||||
extern int llord(void);
|
||||
@@ -1654,6 +1686,7 @@ extern struct obj *mk_named_object(int, struct permonst *,
|
||||
coordxy, coordxy,
|
||||
const char *) ;
|
||||
extern struct obj *rnd_treefruit_at(coordxy, coordxy);
|
||||
extern boolean is_treefruit(struct obj *) NONNULLARG1;
|
||||
extern void set_corpsenm(struct obj *, int) NONNULLARG1;
|
||||
extern long rider_revival_time(struct obj *, boolean) NONNULLARG1;
|
||||
extern void start_corpse_timeout(struct obj *) NONNULLARG1;
|
||||
@@ -1743,7 +1776,7 @@ extern boolean can_touch_safely(struct monst *, struct obj *) NONNULLARG12;
|
||||
extern int can_carry(struct monst *, struct obj *) NONNULLARG12;
|
||||
extern long mon_allowflags(struct monst *) NONNULLARG1;
|
||||
extern boolean m_in_air(struct monst *) NONNULLARG1;
|
||||
extern int mfndpos(struct monst *, coord *, long *, long) NONNULLPTRS;
|
||||
extern int mfndpos(struct monst *, struct mfndposdata *, long) NONNULLPTRS;
|
||||
extern boolean monnear(struct monst *, coordxy, coordxy) NONNULLARG1;
|
||||
extern void dmonsfree(void);
|
||||
extern void elemental_clog(struct monst *) NONNULLARG1;
|
||||
@@ -1913,8 +1946,8 @@ extern boolean accessible(coordxy, coordxy);
|
||||
extern void set_apparxy(struct monst *) NONNULLARG1;
|
||||
extern boolean can_ooze(struct monst *) NONNULLARG1;
|
||||
extern boolean can_fog(struct monst *) NONNULLARG1;
|
||||
extern boolean should_displace(struct monst *, coord *, long *, int, coordxy,
|
||||
coordxy) NONNULLPTRS;
|
||||
extern boolean should_displace(struct monst *, const struct mfndposdata *,
|
||||
coordxy, coordxy) NONNULLPTRS;
|
||||
extern boolean undesirable_disp(struct monst *, coordxy, coordxy) NONNULLARG1;
|
||||
extern boolean can_hide_under_obj(struct obj *);
|
||||
|
||||
@@ -1952,7 +1985,7 @@ extern long filesize(char *);
|
||||
#endif /* MSDOS */
|
||||
extern char *foundfile_buffer(void);
|
||||
#endif /* __GO32__ */
|
||||
extern void chdrive(char *);
|
||||
extern void chdrive(const char *);
|
||||
#ifndef TOS
|
||||
extern void disable_ctrlP(void);
|
||||
extern void enable_ctrlP(void);
|
||||
@@ -2151,7 +2184,8 @@ extern boolean objdescr_is(struct obj *, const char *) NONNULLARG2;
|
||||
extern void oinit(void);
|
||||
extern void savenames(NHFILE *) NONNULLARG1;
|
||||
extern void restnames(NHFILE *) NONNULLARG1;
|
||||
extern void discover_object(int, boolean, boolean);
|
||||
extern void observe_object(struct obj *) NONNULLARG1;
|
||||
extern void discover_object(int, boolean, boolean, boolean);
|
||||
extern void undiscover_object(int);
|
||||
extern boolean interesting_to_discover(int);
|
||||
extern int choose_disco_sort(int);
|
||||
@@ -2268,6 +2302,7 @@ extern char *get_option_value(const char *, boolean) NONNULLARG1;
|
||||
extern int doset_simple(void);
|
||||
extern int doset(void);
|
||||
extern int dotogglepickup(void);
|
||||
extern int toggle_bool_option(const char *);
|
||||
extern void option_help(void);
|
||||
extern void all_options_strbuf(strbuf_t *) NONNULLARG1;
|
||||
extern void next_opt(winid, const char *) NONNULLARG2;
|
||||
@@ -2294,6 +2329,11 @@ extern int msgtype_type(const char *, boolean) NONNULLARG1;
|
||||
extern void hide_unhide_msgtypes(boolean, int);
|
||||
extern void msgtype_free(void);
|
||||
extern void options_free_window_colors(void);
|
||||
extern void heed_all_options(void);
|
||||
extern void disregard_all_options(void);
|
||||
extern void heed_this_option(enum opt);
|
||||
extern void disregard_this_option(enum opt);
|
||||
extern void clear_ignore_errors_on_unmatched(void);
|
||||
#ifdef TTY_PERM_INVENT
|
||||
extern void check_perm_invent_again(void);
|
||||
#endif
|
||||
@@ -2319,12 +2359,13 @@ extern int dowhatdoes(void);
|
||||
extern char *dowhatdoes_core(char, char *) NONNULLARG2; /*might return NULL*/
|
||||
extern int dohelp(void);
|
||||
extern int dohistory(void);
|
||||
void allopt_array_init(void);
|
||||
|
||||
/* ### xxmain.c ### */
|
||||
|
||||
#if defined(MICRO) || defined(WIN32)
|
||||
#if defined(UNIX) || defined(MICRO) || defined(WIN32)
|
||||
#ifdef CHDIR
|
||||
extern void chdirx(char *, boolean);
|
||||
extern void chdirx(const char *, boolean);
|
||||
#endif /* CHDIR */
|
||||
extern boolean authorize_wizard_mode(void);
|
||||
extern boolean authorize_explore_mode(void);
|
||||
@@ -2401,8 +2442,9 @@ extern int query_category(const char *, struct obj *, int, menu_item **, int) NO
|
||||
/* dotypeinv() call query_objlist with NULL arg1 */
|
||||
extern int query_objlist(const char *, struct obj **, int, menu_item **, int,
|
||||
boolean(*)(struct obj *)) NONNULLARG24;
|
||||
extern boolean reroll_menu(void);
|
||||
extern struct obj *pick_obj(struct obj *) NONNULLARG1;
|
||||
extern int encumber_msg(void);
|
||||
extern void encumber_msg(void);
|
||||
extern int container_at(coordxy, coordxy, boolean);
|
||||
extern int doloot(void);
|
||||
extern void observe_quantum_cat(struct obj *, boolean, boolean) NONNULLARG1;
|
||||
@@ -2694,6 +2736,9 @@ void restore_gamelog(NHFILE *);
|
||||
boolean restgamestate(NHFILE *);
|
||||
void restore_msghistory(NHFILE *);
|
||||
#endif
|
||||
extern void rest_adjust_levelflags(void);
|
||||
extern void moves_to_relative_time(long *);
|
||||
extern void relative_time_to_moves(long *);
|
||||
|
||||
/* ### rip.c ### */
|
||||
|
||||
@@ -2846,6 +2891,8 @@ extern void bclose(int);
|
||||
/* setpaid() has a conditional code block near the end of the
|
||||
function, where arg1 is tested for NULL, preventing NONNULLARG1 */
|
||||
extern void setpaid(struct monst *) NO_NNARGS;
|
||||
extern void record_price_quote(int, unsigned long, boolean);
|
||||
extern void append_price_quote(char *, char **, int) NONNULLARG12;
|
||||
extern long money2mon(struct monst *, long) NONNULLARG1;
|
||||
extern void money2u(struct monst *, long) NONNULLARG1;
|
||||
extern void shkgone(struct monst *) NONNULLARG1;
|
||||
@@ -2923,6 +2970,8 @@ extern void globby_bill_fixup(struct obj *, struct obj *) NONNULLARG12;
|
||||
extern void credit_report(struct monst *shkp, int idx,
|
||||
boolean silent) NONNULLARG1;
|
||||
extern void use_unpaid_trapobj(struct obj *, coordxy, coordxy) NONNULLARG1;
|
||||
extern void noisy_shop(struct mkroom *);
|
||||
|
||||
|
||||
/* ### shknam.c ### */
|
||||
|
||||
@@ -3019,6 +3068,8 @@ extern int nhl_abs_coord(lua_State *) NONNULLARG1;
|
||||
extern void update_croom(void);
|
||||
extern const char *get_trapname_bytype(int);
|
||||
extern void l_register_des(lua_State *) NONNULLARG1;
|
||||
extern int get_table_objclass(lua_State *) NONNULLARG1;
|
||||
extern int get_table_objtype(lua_State *) NONNULLARG1;
|
||||
#endif /* !CROSSCOMPILE || CROSSCOMPILE_TARGET */
|
||||
|
||||
/* ### spell.c ### */
|
||||
@@ -3035,6 +3086,7 @@ extern int spelleffects(int, boolean, boolean);
|
||||
extern int tport_spell(int);
|
||||
extern void losespells(void);
|
||||
extern int dovspell(void);
|
||||
extern void show_spells(void);
|
||||
extern void initialspell(struct obj *) NONNULLARG1;
|
||||
extern int known_spell(short);
|
||||
extern int spell_idx(short);
|
||||
@@ -3305,7 +3357,9 @@ extern void check_twitch(void);
|
||||
|
||||
/* ### u_init.c ### */
|
||||
|
||||
extern void u_init(void);
|
||||
extern void u_init_misc(void);
|
||||
extern void u_init_inventory_attrs(void);
|
||||
extern void u_init_skills_discoveries(void);
|
||||
|
||||
/* ### uhitm.c ### */
|
||||
|
||||
@@ -3417,6 +3471,8 @@ extern int passive(struct monst *, struct obj *, boolean, boolean, uchar,
|
||||
extern void passive_obj(struct monst *, struct obj *, struct attack *) NONNULLARG1;
|
||||
extern void that_is_a_mimic(struct monst *, unsigned) NONNULLARG1;
|
||||
extern void stumble_onto_mimic(struct monst *) NONNULLARG1;
|
||||
extern boolean disguised_as_non_mon(struct monst *) NONNULLARG1;
|
||||
extern boolean disguised_as_mon(struct monst *) NONNULLARG1;
|
||||
extern int flash_hits_mon(struct monst *, struct obj *) NONNULLARG12;
|
||||
extern void light_hits_gremlin(struct monst *, int) NONNULLARG1;
|
||||
|
||||
@@ -3433,8 +3489,8 @@ extern void append_slash(char *) NONNULLARG1;
|
||||
extern boolean check_user_string(const char *) NONNULLARG1;
|
||||
extern char *get_login_name(void);
|
||||
extern unsigned long sys_random_seed(void);
|
||||
ATTRNORETURN extern void after_opt_showpaths(const char *) NORETURN;
|
||||
#endif /* UNIX */
|
||||
ATTRNORETURN extern void after_opt_showpaths(const char *) NORETURN;
|
||||
|
||||
/* ### unixtty.c ### */
|
||||
|
||||
@@ -3668,6 +3724,7 @@ extern void dry_a_towel(struct obj *, int, boolean) NONNULLARG1;
|
||||
extern char *skill_level_name(int, char *) NONNULLARG2;
|
||||
extern const char *skill_name(int);
|
||||
extern boolean can_advance(int, boolean);
|
||||
extern void show_skills(void);
|
||||
extern int enhance_weapon_skill(void);
|
||||
extern void unrestrict_weapon_skill(int);
|
||||
extern void use_skill(int, int);
|
||||
@@ -3832,6 +3889,7 @@ extern void wizcustom_callback(winid win, int glyphnum, char *id);
|
||||
#if (NH_DEVEL_STATUS != NH_STATUS_RELEASED) || defined(DEBUG)
|
||||
extern int wiz_display_macros(void);
|
||||
extern int wiz_mon_diff(void);
|
||||
extern int wiz_objprobs(void);
|
||||
#endif
|
||||
extern void sanity_check(void);
|
||||
|
||||
@@ -3869,9 +3927,11 @@ extern void setworn(struct obj *, long) NO_NNARGS; /* has tests for obj */
|
||||
extern void setnotworn(struct obj *) NO_NNARGS; /* has tests for obj */
|
||||
extern void allunworn(void);
|
||||
extern struct obj *wearmask_to_obj(long);
|
||||
extern int wornmask_to_armcat(long);
|
||||
extern long armcat_to_wornmask(int);
|
||||
extern long wearslot(struct obj *) NONNULLARG1;
|
||||
extern void check_wornmask_slots(void);
|
||||
extern void mon_set_minvis(struct monst *) NONNULLARG1;
|
||||
extern void mon_set_minvis(struct monst *, boolean) NONNULLARG1;
|
||||
extern void mon_adjust_speed(struct monst *, int, struct obj *) NONNULLARG1;
|
||||
extern void update_mon_extrinsics(struct monst *, struct obj *, boolean,
|
||||
boolean) NONNULLARG12;
|
||||
@@ -3937,16 +3997,17 @@ extern int spell_damage_bonus(int);
|
||||
extern const char *exclam(int force) NONNULL;
|
||||
extern void hit(const char *, struct monst *, const char *) NONNULLPTRS;
|
||||
extern void miss(const char *, struct monst *) NONNULLPTRS;
|
||||
extern struct monst *bhit(coordxy, coordxy, int, enum bhit_call_types,
|
||||
extern struct monst *bhit(int, int, int, enum bhit_call_types,
|
||||
int(*)(struct monst *, struct obj *),
|
||||
int(*)(struct obj *, struct obj *),
|
||||
struct obj **) NONNULLARG7;
|
||||
extern struct monst *boomhit(struct obj *, coordxy, coordxy) NONNULLARG1;
|
||||
extern struct monst *boomhit(struct obj *, int, int) NONNULLARG1;
|
||||
extern int zhitm(struct monst *, int, int, struct obj **) NONNULLPTRS;
|
||||
extern int burn_floor_objects(coordxy, coordxy, boolean, boolean);
|
||||
extern void ubuzz(int, int);
|
||||
extern void buzz(int, int, coordxy, coordxy, int, int);
|
||||
extern void dobuzz(int, int, coordxy, coordxy, int, int, boolean);
|
||||
extern void dobuzz(int, int, coordxy, coordxy, int, int,
|
||||
boolean, boolean, boolean);
|
||||
extern void melt_ice(coordxy, coordxy, const char *) NO_NNARGS;
|
||||
extern void start_melt_ice_timeout(coordxy, coordxy, long);
|
||||
extern void melt_ice_away(union any *, long) NONNULLARG1;
|
||||
@@ -3960,6 +4021,8 @@ extern boolean inventory_resistance_check(int);
|
||||
extern char *item_what(int);
|
||||
extern int destroy_items(struct monst *, int, int) NONNULLARG1;
|
||||
extern int resist(struct monst *, char, int, int) NONNULLARG1;
|
||||
extern void wish_history_add(char *);
|
||||
extern void wish_history_flush(void);
|
||||
extern void makewish(void);
|
||||
extern const char *flash_str(int, boolean) NONNULL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user