+/* $NetBSD: trap.c,v 1.4 1997/10/12 11:46:09 lukem Exp $ */
+
/*
- * Copyright (c) 1988 The Regents of the University of California.
- * All rights reserved.
+ * Copyright (c) 1988, 1993
+ * The Regents of the University of California. All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* Timothy C. Stoehr.
* SUCH DAMAGE.
*/
+#include <sys/cdefs.h>
#ifndef lint
-/*static char sccsid[] = "from: @(#)trap.c 5.3 (Berkeley) 6/1/90";*/
-static char rcsid[] = "$Id: trap.c,v 1.2 1993/08/01 18:52:09 mycroft Exp $";
+#if 0
+static char sccsid[] = "@(#)trap.c 8.1 (Berkeley) 5/31/93";
+#else
+__RCSID("$NetBSD: trap.c,v 1.4 1997/10/12 11:46:09 lukem Exp $");
+#endif
#endif /* not lint */
/*
"a gush of water hits you on the head"
};
-extern short cur_level, party_room;
-extern char *new_level_message;
-extern boolean interrupted;
-extern short ring_exp;
-extern boolean sustain_strength;
-extern short blind;
-
+short
trap_at(row, col)
-register row, col;
+ int row, col;
{
short i;
return(NO_TRAP);
}
+void
trap_player(row, col)
-short row, col;
+ short row, col;
{
short t;
}
}
+void
add_traps()
{
short i, n, tries = 0;
}
}
+void
id_trap()
{
short dir, row, col, d, t;
}
}
+void
show_traps()
{
short i, j;
}
}
+void
search(n, is_auto)
-short n;
-boolean is_auto;
+ short n;
+ boolean is_auto;
{
short s, i, j, row, col, t;
short shown = 0, found = 0;