-/* $NetBSD: monster.c,v 1.5 1998/07/21 07:01:55 hubertf Exp $ */
+/* $NetBSD: monster.c,v 1.7 1998/11/10 13:01:32 hubertf Exp $ */
/*
* Copyright (c) 1988, 1993
#if 0
static char sccsid[] = "@(#)monster.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: monster.c,v 1.5 1998/07/21 07:01:55 hubertf Exp $");
+__RCSID("$NetBSD: monster.c,v 1.7 1998/11/10 13:01:32 hubertf Exp $");
#endif
#endif /* not lint */
object level_monsters;
boolean mon_disappeared;
-char *m_names[] = {
+const char *const m_names[] = {
"aquator",
"bat",
"centaur",
int
mon_can_go(monster, row, col)
- object *monster;
+ const object *monster;
short row, col;
{
object *obj;
}
}
-char *
+const char *
mon_name(monster)
- object *monster;
+ const object *monster;
{
short ch;
gr_obj_char()
{
short r;
- char *rs = "%!?]=/):*";
+ const char *rs = "%!?]=/):*";
r = get_rand(0, 8);
boolean
mon_sees(monster, row, col)
- object *monster;
+ const object *monster;
+ int row, col;
{
short rn, rdif, cdif, retval;