-/* $NetBSD: zap.c,v 1.8 2008/01/14 00:23:53 dholland Exp $ */
+/* $NetBSD: zap.c,v 1.9 2008/01/14 03:50:03 dholland Exp $ */
/*
* Copyright (c) 1988, 1993
#if 0
static char sccsid[] = "@(#)zap.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: zap.c,v 1.8 2008/01/14 00:23:53 dholland Exp $");
+__RCSID("$NetBSD: zap.c,v 1.9 2008/01/14 03:50:03 dholland Exp $");
#endif
#endif /* not lint */
#include "rogue.h"
+static object *get_zapped_monster(short, short *, short *);
+static void tele_away(object *);
+static void wdrain_life(object *);
+static void zap_monster(object *, unsigned short);
+
boolean wizard = 0;
void
-zapp()
+zapp(void)
{
short wch;
boolean first_miss = 1;
(void)reg_move();
}
-object *
-get_zapped_monster(dir, row, col)
- short dir;
- short *row, *col;
+static object *
+get_zapped_monster(short dir, short *row, short *col)
{
short orow, ocol;
}
}
-void
-zap_monster(monster, kind)
- object *monster;
- unsigned short kind;
+static void
+zap_monster(object *monster, unsigned short kind)
{
short row, col;
object *nm;
}
}
-void
-tele_away(monster)
- object *monster;
+static void
+tele_away(object *monster)
{
short row, col;
}
void
-wizardize()
+wizardize(void)
{
char buf[100];
}
}
-void
-wdrain_life(monster)
- object *monster;
+static void
+wdrain_life(object *monster)
{
short hp;
object *lmon, *nm;
}
void
-bounce(ball, dir, row, col, r)
- short ball, dir, row, col, r;
+bounce(short ball, short dir, short row, short col, short r)
{
short orow, ocol;
const char *s;
damage = (damage * 3) / 2;
damage -= get_armor_class(rogue.armor);
}
- rogue_damage(damage, (object *)0,
+ rogue_damage(damage, NULL,
((ball == FIRE) ? KFIRE : HYPOTHERMIA));
messagef(0, "the %s hits", s);
}