+/* $NetBSD: zap.c,v 1.5 1998/11/10 13:01:32 hubertf 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: @(#)zap.c 5.3 (Berkeley) 6/1/90";*/
-static char rcsid[] = "$Id: zap.c,v 1.2 1993/08/01 18:52:07 mycroft Exp $";
+#if 0
+static char sccsid[] = "@(#)zap.c 8.1 (Berkeley) 5/31/93";
+#else
+__RCSID("$NetBSD: zap.c,v 1.5 1998/11/10 13:01:32 hubertf Exp $");
+#endif
#endif /* not lint */
/*
boolean wizard = 0;
-extern boolean being_held, score_only, detect_monster;
-extern short cur_room;
-
+void
zapp()
{
short wch;
object *
get_zapped_monster(dir, row, col)
-short dir;
-short *row, *col;
+ short dir;
+ short *row, *col;
{
short orow, ocol;
}
}
+void
zap_monster(monster, kind)
-object *monster;
-unsigned short kind;
+ object *monster;
+ unsigned short kind;
{
short row, col;
object *nm;
}
}
+void
tele_away(monster)
-object *monster;
+ object *monster;
{
short row, col;
}
}
+void
wizardize()
{
char buf[100];
}
}
+void
wdrain_life(monster)
-object *monster;
+ object *monster;
{
short hp;
object *lmon, *nm;
relight();
}
+void
bounce(ball, dir, row, col, r)
-short ball, dir, row, col, r;
+ short ball, dir, row, col, r;
{
short orow, ocol;
- char buf[DCOLS], *s;
+ char buf[DCOLS];
+ const char *s;
short i, ch, new_dir = -1, damage;
static short btime;