/* If entries are added to this, botl.h will require updating too */
struct istat_s blstats[2][MAXBLSTATS] = {
{
- { 0L, ANY_STR, {(long)0L}, (char *)0, 80, 0 }, /* 0 BL_TITLE */
- { 0L, ANY_INT, {(long)0L}, (char *)0, 10, 0}, /* 1 BL_STR */
- { 0L, ANY_INT, {(long)0L}, (char *)0, 10, 0}, /* 2 BL_DX */
- { 0L, ANY_INT, {(long)0L}, (char *)0, 10, 0}, /* 3 BL_CO */
- { 0L, ANY_INT, {(long)0L}, (char *)0, 10, 0}, /* 4 BL_IN */
- { 0L, ANY_INT, {(long)0L}, (char *)0, 10, 0}, /* 5 BL_WI */
- { 0L, ANY_INT, {(long)0L}, (char *)0, 10, 0}, /* 6 BL_CH */
- { 0L, ANY_STR, {(long)0L}, (char *)0, 40, 0}, /* 7 BL_ALIGN */
- { 0L, ANY_LONG, {(long)0L}, (char *)0, 20, 0}, /* 8 BL_SCORE */
- { 0L, ANY_LONG, {(long)0L}, (char *)0, 20, 0}, /* 9 BL_CAP */
- { 0L, ANY_LONG, {(long)0L}, (char *)0, 10, 0}, /* 10 BL_GOLD */
- { 0L, ANY_INT, {(long)0L}, (char *)0, 10, BL_ENEMAX}, /* 11 BL_ENE */
- { 0L, ANY_INT, {(long)0L}, (char *)0, 10, 0}, /* 12 BL_ENEMAX */
- { 0L, ANY_LONG, {(long)0L}, (char *)0, 10, 0}, /* 13 BL_XP */
- { 0L, ANY_INT, {(long)0L}, (char *)0, 10, 0}, /* 14 BL_AC */
- { 0L, ANY_INT, {(long)0L}, (char *)0, 10, 0}, /* 15 BL_HD */
- { 0L, ANY_INT, {(long)0L}, (char *)0, 20, 0}, /* 16 BL_TIME */
- { 0L, ANY_UINT, {(long)0L}, (char *)0, 40, 0}, /* 17 BL_HUNGER */
- { 0L, ANY_INT, {(long)0L}, (char *)0, 10, BL_HPMAX}, /* 18 BL_HP */
- { 0L, ANY_INT, {(long)0L}, (char *)0, 10, 0}, /* 19 BL_HPMAX */
- { 0L, ANY_STR, {(long)0L}, (char *)0, 80, 0}, /* 20 BL_LEVELDESC */
- { 0L, ANY_LONG, {(long)0L}, (char *)0, 20, 0}, /* 21 BL_EXP */
- { 0L, ANY_MASK32,{(long)0L},(char *)0, 0, 0} /* 22 BL_CONDITION */
+ { 0L, ANY_STR, {(genericptr_t)0L}, (char *)0, 80, 0 }, /* 0 BL_TITLE */
+ { 0L, ANY_INT, {(genericptr_t)0L}, (char *)0, 10, 0}, /* 1 BL_STR */
+ { 0L, ANY_INT, {(genericptr_t)0L}, (char *)0, 10, 0}, /* 2 BL_DX */
+ { 0L, ANY_INT, {(genericptr_t)0L}, (char *)0, 10, 0}, /* 3 BL_CO */
+ { 0L, ANY_INT, {(genericptr_t)0L}, (char *)0, 10, 0}, /* 4 BL_IN */
+ { 0L, ANY_INT, {(genericptr_t)0L}, (char *)0, 10, 0}, /* 5 BL_WI */
+ { 0L, ANY_INT, {(genericptr_t)0L}, (char *)0, 10, 0}, /* 6 BL_CH */
+ { 0L, ANY_STR, {(genericptr_t)0L}, (char *)0, 40, 0}, /* 7 BL_ALIGN */
+ { 0L, ANY_LONG, {(genericptr_t)0L}, (char *)0, 20, 0}, /* 8 BL_SCORE */
+ { 0L, ANY_LONG, {(genericptr_t)0L}, (char *)0, 20, 0}, /* 9 BL_CAP */
+ { 0L, ANY_LONG, {(genericptr_t)0L}, (char *)0, 10, 0}, /* 10 BL_GOLD */
+ { 0L, ANY_INT, {(genericptr_t)0L}, (char *)0, 10, BL_ENEMAX}, /* 11 BL_ENE */
+ { 0L, ANY_INT, {(genericptr_t)0L}, (char *)0, 10, 0}, /* 12 BL_ENEMAX */
+ { 0L, ANY_LONG, {(genericptr_t)0L}, (char *)0, 10, 0}, /* 13 BL_XP */
+ { 0L, ANY_INT, {(genericptr_t)0L}, (char *)0, 10, 0}, /* 14 BL_AC */
+ { 0L, ANY_INT, {(genericptr_t)0L}, (char *)0, 10, 0}, /* 15 BL_HD */
+ { 0L, ANY_INT, {(genericptr_t)0L}, (char *)0, 20, 0}, /* 16 BL_TIME */
+ { 0L, ANY_UINT, {(genericptr_t)0L}, (char *)0, 40, 0}, /* 17 BL_HUNGER */
+ { 0L, ANY_INT, {(genericptr_t)0L}, (char *)0, 10, BL_HPMAX}, /* 18 BL_HP */
+ { 0L, ANY_INT, {(genericptr_t)0L}, (char *)0, 10, 0}, /* 19 BL_HPMAX */
+ { 0L, ANY_STR, {(genericptr_t)0L}, (char *)0, 80, 0}, /* 20 BL_LEVELDESC */
+ { 0L, ANY_LONG, {(genericptr_t)0L}, (char *)0, 20, 0}, /* 21 BL_EXP */
+ { 0L, ANY_MASK32,{(genericptr_t)0L},(char *)0, 0, 0} /* 22 BL_CONDITION */
}
};
-/* SCCS Id: @(#)cmd.c 3.5 2006/04/14 */
+/* SCCS Id: @(#)cmd.c 3.5 2006/06/25 */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/* NetHack may be freely redistributed. See license for details. */
STATIC_DCL boolean FDECL(help_dir, (CHAR_P,const char *));
STATIC_PTR int
-doprev_message()
+doprev_message(VOID_ARGS)
{
return nh_doprev_message();
}
/* Count down by decrementing multi */
STATIC_PTR int
-timed_occupation()
+timed_occupation(VOID_ARGS)
{
(*timed_occ_fn)();
if (multi > 0)
#endif /* REDO */
STATIC_PTR int
-doextcmd() /* here after # - now read a full-word command */
+doextcmd(VOID_ARGS) /* here after # - now read a full-word command */
{
int idx, retval;
}
int
-doextlist() /* here after #? - now list all full-word commands */
+doextlist(VOID_ARGS) /* here after #? - now list all full-word commands */
{
register const struct ext_func_tab *efp;
char buf[BUFSZ];
/* #monster command - use special monster ability while polymorphed */
STATIC_PTR int
-domonability()
+domonability(VOID_ARGS)
{
if (can_breathe(youmonst.data)) return dobreathe();
else if (attacktype(youmonst.data, AT_SPIT)) return dospit();
}
STATIC_PTR int
-enter_explore_mode()
+enter_explore_mode(VOID_ARGS)
{
if(!discover && !wizard) {
pline("Beware! From explore mode there will be no return to normal game.");
#ifdef DUNGEON_OVERVIEW
STATIC_PTR int
-dooverview_or_wiz_where()
+dooverview_or_wiz_where(VOID_ARGS)
{
#ifdef WIZARD
if (wizard) return wiz_where();
/* ^W command - wish for something */
STATIC_PTR int
-wiz_wish() /* Unlimited wishes for debug mode by Paul Polderman */
+wiz_wish(VOID_ARGS) /* Unlimited wishes for debug mode by Paul Polderman */
{
if (wizard) {
boolean save_verbose = flags.verbose;
/* ^I command - reveal and optionally identify hero's inventory */
STATIC_PTR int
-wiz_identify()
+wiz_identify(VOID_ARGS)
{
if (wizard) {
iflags.override_ID = (int)cmd_from_func(wiz_identify);
/* ^F command - reveal the level map and any traps on it */
STATIC_PTR int
-wiz_map()
+wiz_map(VOID_ARGS)
{
if (wizard) {
struct trap *t;
/* ^G command - generate monster(s); a count prefix will be honored */
STATIC_PTR int
-wiz_genesis()
+wiz_genesis(VOID_ARGS)
{
if (wizard) (void) create_particular();
else pline("Unavailable command '%s'.",
/* ^O command - display dungeon layout */
STATIC_PTR int
-wiz_where()
+wiz_where(VOID_ARGS)
{
if (wizard) (void) print_dungeon(FALSE, (schar *)0, (xchar *)0);
else pline("Unavailable command '%s'.",
/* ^E command - detect unseen (secret doors, traps, hidden monsters) */
STATIC_PTR int
-wiz_detect()
+wiz_detect(VOID_ARGS)
{
if(wizard) (void) findit();
else pline("Unavailable command '%s'.",
/* ^V command - level teleport */
STATIC_PTR int
-wiz_level_tele()
+wiz_level_tele(VOID_ARGS)
{
if (wizard) level_tele();
else pline("Unavailable command '%s'.",
/* #monpolycontrol command - choose new form for shapechangers, polymorphees */
STATIC_PTR int
-wiz_mon_polycontrol()
+wiz_mon_polycontrol(VOID_ARGS)
{
iflags.mon_polycontrol = !iflags.mon_polycontrol;
pline("Monster polymorph control is %s.",
/* #levelchange command - adjust hero's experience level */
STATIC_PTR int
-wiz_level_change()
+wiz_level_change(VOID_ARGS)
{
char buf[BUFSZ];
int newlevel;
/* #panic command - test program's panic handling */
STATIC_PTR int
-wiz_panic()
+wiz_panic(VOID_ARGS)
{
if (yn("Do you want to call panic() and end your game?") == 'y')
panic("crash test.");
/* #polyself command - change hero's form */
STATIC_PTR int
-wiz_polyself()
+wiz_polyself(VOID_ARGS)
{
polyself(1);
return 0;
/* #seenv command */
STATIC_PTR int
-wiz_show_seenv()
+wiz_show_seenv(VOID_ARGS)
{
winid win;
int x, y, v, startx, stopx, curx;
/* #vision command */
STATIC_PTR int
-wiz_show_vision()
+wiz_show_vision(VOID_ARGS)
{
winid win;
int x, y, v;
/* #wmode command */
STATIC_PTR int
-wiz_show_wmodes()
+wiz_show_wmodes(VOID_ARGS)
{
winid win;
int x,y;
/* #terrain command */
STATIC_PTR int
-wiz_map_terrain()
+wiz_map_terrain(VOID_ARGS)
{
winid win;
int x, y, terrain;
/* #wizsmell command - test usmellmon(). */
STATIC_PTR int
-wiz_smell()
+wiz_smell(VOID_ARGS)
{
char out_str[BUFSZ];
struct permonst *pm = 0;
/* #wizrumorcheck command - verify each rumor access */
STATIC_PTR int
-wiz_rumor_check()
+wiz_rumor_check(VOID_ARGS)
{
rumor_check();
return 0;
/* ^X command */
STATIC_PTR int
-doattributes()
+doattributes(VOID_ARGS)
{
if (!minimal_enlightenment())
return 0;
* (shares enlightenment's tense handling)
*/
STATIC_PTR int
-doconduct()
+doconduct(VOID_ARGS)
{
show_conduct(0);
return 0;
}
STATIC_PTR int
-dotravel()
+dotravel(VOID_ARGS)
{
/* Keyboard travel command */
static char cmd[2];