mirror of
https://codeberg.org/noisytoot/notnotdnethack.git
synced 2025-04-28 11:25:11 +01:00
E as in the alias for extern, not the completely different E that's an alias for EXPLOSION used in objects.c.
33 lines
862 B
C
33 lines
862 B
C
/* SCCS Id: @(#)func_tab.h 3.4 1992/04/03 */
|
|
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
|
/* NetHack may be freely redistributed. See license for details. */
|
|
|
|
#ifndef FUNC_TAB_H
|
|
#define FUNC_TAB_H
|
|
|
|
struct ext_func_tab {
|
|
const char *ef_txt, *ef_desc;
|
|
int (*ef_funct)(void);
|
|
boolean can_if_buried;
|
|
boolean autocomplete;
|
|
|
|
/* for interrupted repeats; e.g.,
|
|
* "searching" => "You stop searching." */
|
|
const char *f_text;
|
|
};
|
|
|
|
/* Tells what extended command to do on a command key press */
|
|
struct key_tab {
|
|
struct ext_func_tab * bind_cmd;
|
|
};
|
|
|
|
/* Linked list of bindings; see "crappy hack" in cmd.c */
|
|
struct binding_list_tab {
|
|
char key; /* ascii code for key */
|
|
char* extcmd; /* extended command key is going to be rebound to */
|
|
struct binding_list_tab * next;
|
|
};
|
|
|
|
extern struct ext_func_tab extcmdlist[];
|
|
|
|
#endif /* FUNC_TAB_H */
|